Reputation: 11
We are using twilio API for hold call process but we are facing problem :
If we connect the call from A to B, then our call connecting successfully but when we are update the call for hold(Using updating method) then B putting on hold success, but A call disconnecting. I want to put B on hold but should not disconnect the A call.
Please give me suitable suggestion for this hold process.
Thanks.
Upvotes: 1
Views: 408
Reputation: 372
Firstly ,Its important to understand that putting a call on hold in the Twilio environment is not a native function rather it works like all updates to a call to connect the call to something else, which could be dialing a number,play an audio, place in queue etc..What you choose to implement the On Hold idiom is up to you.
Make sure you are updating the child sid not the parent sid. I suggest reading this article What-is-a-Call-SID
If you update the parentsid the child will automatically be lost. If you update the child sid , the parent call will be disconnected and continue with the original twiml that bridged the call in the first place. You have the option of leaving default fallthrough twiml to go to a queue etc.. Another method of implementing hold , is calling out using theAgent Outbund Conference Api
Upvotes: 1