问题描述
我正在使用 Twilio 客户端给我的客户打电话或接听客户的电话.如果 Twilio 客户端参与并与任何其他客户交谈,我想向客户播放繁忙的语音消息.我怎样才能做到这一点.
I am using Twilio client to call my customer or receive the call from customers.I want to play a busy voice message to customer if the Twilio client is engaged and talking to any other customer. how can I achieve that.
推荐答案
Twilio 开发人员布道者在这里.
Twilio developer evangelist here.
您无法从 Twilio 客户端所在页面的外部得知其状态.相反,最好通过 TaskRouter 管理代理的可用性.使用 TaskRouter,传入呼叫可以排队,直到有可用的代理应答.这些呼叫也可以超时、分配到其他队列或重定向以在语音邮件系统中留言.
You can’t tell the status of a Twilio Client from outside the page it is live on. Instead it is best to manage the availability of your agents via TaskRouter. With TaskRouter incoming calls can be queued until there is an available agent to answer. Those calls can also timeout, be assigned to other queues or be redirected to leave messages as in a voicemail system.
我建议您查看 TaskRouter.
I recommend you look into TaskRouter.
这篇关于如何在连接呼叫之前检查 Twilio 客户端的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!