From d5c535c02cc307811e0e307e85552b1c46c01c77 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Thu, 20 Jul 2023 15:12:10 +0700 Subject: [PATCH] feat confige record allow SIP custom headers --- specs.json | 3 ++- test/jambonz-verb-test.js | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/specs.json b/specs.json index 52a539c..f077c67 100644 --- a/specs.json +++ b/specs.json @@ -364,7 +364,8 @@ "enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"] }, "recordingID": "string", - "siprecServerURL": "string|array" + "siprecServerURL": "string|array", + "headers": "object" }, "required": [ "action" diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index c128689..f1766d8 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -40,7 +40,11 @@ test("validate correct verbs", async (t) => { "verb": "config", "record": { "action": "startCallRecording", - "siprecServerURL": ["sip:srs@recording.example.com","sip:srs@recording.example.com"] + "siprecServerURL": ["sip:srs@recording.example.com","sip:srs@recording.example.com"], + "headers" : { + "X-Header1": "Value1", + "X-Header2": "Value2" + } } }, {