将 Twilio 呼叫置于保持状态并稍后取回 [英] Place a Twilio call on hold and retrieve it later

查看:34
本文介绍了将 Twilio 呼叫置于保持状态并稍后取回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JavaScript SDK 创建一个 Twilio 应用程序.

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 process to put a call on hold, when it is initiated by the soft-phone? Also, what is the process when the soft-phone is receiving the call?

推荐答案

当软电话用户按下 Hold 时,您可以使用 REST API 更新该呼叫,将呼叫发送到队列.

When the user of the soft phone press Hold you can use the REST API to update that call, sending the call to a queue.

您可以使用 < 将调用重定向到 TML 文件.入队> 标签.

You can do that redirecting the call to a TML file with the <Enqueue> tag.

要检索到软电话的呼叫,您可以使用 CallSid 更新呼叫并将其发送回软电话用户.

To retrieve the call to the soft phone you can use the CallSid to update the call and sending it back to the soft phone user.

我已经在我的应用中实现了该功能,如果您需要帮助,请告诉我.

I already implemented that feature in my app, so let me know if you need some help.

这篇关于将 Twilio 呼叫置于保持状态并稍后取回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆