feat confige record allow SIP custom headers

This commit is contained in:
Quan HL
2023-07-20 15:12:10 +07:00
parent 6e819279d1
commit d5c535c02c
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -364,7 +364,8 @@
"enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"]
},
"recordingID": "string",
"siprecServerURL": "string|array"
"siprecServerURL": "string|array",
"headers": "object"
},
"required": [
"action"
+5 -1
View File
@@ -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"
}
}
},
{