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" + } } }, {