function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mansi gupta 30mansi gupta 30 

Twilio JS issue with ringing and connected state

I am using twilio js in softphne to make a call from salesforce where i tried to get the ringing state and when calls picked by the caller to start my timer.

Write now i have set the 'answerOnBridge=true' in Twiml and also set 'enableRingingState' to ture in setup.
But unable to call connection.on('ringing', function(hasEarlyMedia) on state change.

Can anyone help me for this?