Place a Twilio call on hold and retrieve it later

前端 未结 2 1436
星月不相逢
星月不相逢 2021-01-03 04:25

I am creating a Twilio application using JavaScript SDK.

I want to implement call hold functionality but I am having trouble implementing it.

What is the pr

2条回答
  •  被撕碎了的回忆
    2021-01-03 04:55

    Twilio evangelist here.

    There are different ways to place a call on "hold". Normally it does not matter whether the call originated from Client or from a PSTN number, the process is generally the same:

    1. Provide Twilio some TwiML that places the call into "hold" then
    2. when you are ready, use that calls CallSid and the REST API to redirect the live call to a new experience.

    Now, for placing the call on "hold" there are a couple of options I can suggest:

    One is to use the verb and set the loop attribute to zero, which will tell Twilio to loop over that audio indefinitely. When you are ready to move the call out from "hold", you simply redirect the call.

    Another option is to use the verb and place the call into a call queue. Then when you are ready simply redirect that call back out of the queue to a new experience.

    Hope that helps.

提交回复
热议问题