Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Code Block
languagejs
themeRDark
function hangup() {
    var url = field("restUrl") + "/call/terminate";
    var currentCallId = { callId: callId };
    var data = JSON.stringify(currentCallId);
    sendREST(url, data);
}