php - twilio javascript api through get call sid is that possible? -
php - twilio javascript api through get call sid is that possible? -
i have trying found phone call javascript client:
function call() { // phone number or client connect phone call params = {"phonenumber": $("#number").val()}; twilio.device.connect(params); }
in incoming phone call api got phone call sid
twilio.device.incoming(function (conn) { alert(conn.parameters.callsid); });
and outgoing phone call api not phone call sid:
twilio.device.connect(function (conn) { alert(conn.parameters.callsid); // not working undefine $("#log").text("successfully established call"); });
how phone call sid when twilio device connect call(outgoing call)
thanks
i have asked twilio exact same question, , reply got don't on client. on server side outgoing phone call in query params voice request url.
javascript php jquery twilio twiml
Comments
Post a Comment