...
The example may be tested at thia this URL:
https://host:8888/client2/examples/demo/sip/sip-as-rtmp-2/sip-as-rtmp-2.html
...
10. Hangup the SIP call with /call/terminate RES REST query.
Code Block | ||||
---|---|---|---|---|
| ||||
function hangup() { var url = field("restUrl") + "/call/terminate"; var currentCallId = { callId: callId }; var data = JSON.stringify(currentCallId); sendREST(url, data); } |