Plivo - How to get call_uuid in web sdk

Please explain to me how to get a uuid call. When I join the call. https://www.plivo.com/docs/getting-started/web-sdk/make-outgoing-calls/

// Make outgoing calls
        function call() {
            if ($('#make_call').text() == "Call") {
                // The destination phone number to connect the call to
                var dest = $("#to").val();
                if (isNotEmpty(dest)) {
                    $('#status_txt').text('Calling..');
                    // Connect the call
                    Plivo.conn.call(dest);
                    $('#make_call').text('End');
                }
                else{
                    $('#status_txt').text('Invalid Destination');
                }
            }
            else if($('#make_call').text() == "End") {
                $('#status_txt').text('Ending..');
                // Hang up the call
                Plivo.conn.hangup();
                $('#make_call').text('Call');
                $('#status_txt').text('Ready');
            }
        }
+4
source share
2 answers

WEB-SDK does not support uuid call

 set callback url in xml and get both call uuid (DialALegUUID,DialBLegUUID)

 https://www.plivo.com/docs/xml/dial/#callbackurl-request-parameters
+1
source

The WEB-SDK does not provide a UUID, however it calls your Answer URLendpoint specified in the application. From there, you can redirect the call to where it should and use the provided UUID to start recording and playing voice messages, etc.

0
source

All Articles