javascript - Getting CallSid from Twilio in ougoing calls using js -
i know if there way retrieve callsid using twiliojs library outgoing call done browser phone. think i'm not able post client server since don't have id of call.
i've tried find out parameters of connection object:
var connection = twilio.device.connect() but no callsid appears there. know how can parameter, or lets me identify ougoing call i've done js library?
thanks :d
as seen in https://www.twilio.com/docs/client/connection, connection should twilio.connection object have property named parameters callsid attribute both incoming , outgoing connections.
it available after connection made, should use event handler connect event:
twilio.device.connect(function(connection) { var callsid = connection.parameters.callsid; });
Comments
Post a Comment