config with multiple siprecServerURL

This commit is contained in:
Quan HL
2023-06-19 07:26:53 +07:00
parent f472de9638
commit cfd367f185
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -364,7 +364,7 @@
"enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"] "enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"]
}, },
"recordingID": "string", "recordingID": "string",
"siprecServerURL": "string" "siprecServerURL": "string|array"
}, },
"required": [ "required": [
"action" "action"
+14
View File
@@ -36,6 +36,20 @@ test("validate correct verbs", async (t) => {
"actionHook": "/userInput" "actionHook": "/userInput"
} }
}, },
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": ["sip:srs@recording.example.com","sip:srs@recording.example.com"]
}
},
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": "sip:srs@recording.example.com"
}
},
{ {
"verb": "dequeue", "verb": "dequeue",
"name": "support", "name": "support",