Twilio:将来电者置于保持状态 [英] Twilio: Put caller on hold

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

问题描述

是否可以在 twilio 中将呼叫者置于保持状态,然后代理可以呼叫某人以验证某些内容.然后在验证后座席将返回保持呼叫者.

Is it possible in twilio to put a caller on hold then the agent can call someone to verify something. Then after verifying the agent will get back to the hold caller.

谢谢,

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

我想你会找到你要找的大部分信息此处.但总而言之,使用 REST api 您可以让用户保持/关闭并执行更多操作.

I think you will find most of the information you're looking for here. But in summary, using the REST api you can put users on/off hold and do much more.

使用 CallSid,您可以通过 Rest API 对调用执行任何操作.查看 Twilio 更改呼叫状态 了解更多信息.

Using the CallSid you can do anything with a call via the Rest API. Have a look at Twilio change call state for more information.

您可以等待代理按下 Hold(或您选择的任何按钮,具体取决于您使用的体验 - VOIP 或 PSTN),然后可以使用 REST API 更新该调用,使用 <例如,一个 href="https://www.twilio.com/docs/api/twiml/enqueue" rel="nofollow"> 动词.

You can wait for the agent to press Hold (or any button you choose depending on which experience you're using – VOIP or PSTN) and can then use the REST API to update that call sending it to a queue using the verb for example.

然后您可以使用 CallSid 检索呼叫以更新它并将其发送回代理.

Then you can retrieve the call using the CallSid to update it and send it back to the agent.

下面是一个示例,说明如何将正在运行的调用重定向到将返回消息的不同 URL.您可以将该网址更改为您服务器上的任何内容.

Here's an example of how you could redirect a running call to a different URL that would return a message. you can change that URL to be anything on your server.

var accountSid = '{{ account_sif }}';
var authToken = "{{ auth_token }}";
var client = require('twilio')(accountSid, authToken);

client.calls({{ call_sid }}).update({
    url: "https://demo.twilio.com/docs/voice.xml",
    method: "POST"
}, function(err, call) {
    console.log(call.to);
});

希望能帮到你

这篇关于Twilio:将来电者置于保持状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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