在 Twilio 中转接呼叫并向被叫方致以问候 [英] Forward a call in Twilio with a greeting to the called party
问题描述
我有一个 Twilio 应用程序,它接收来自呼叫者的呼叫并根据来电的属性将它们转发给接收者.呼叫接收者时,我想在拨打电话之前播放问候信息 - 有没有办法做到这一点?
I have a Twilio app that receives calls from a Caller and forwards them to a Recipient based on attributes of the incoming call. When calling the recipient, I would like to play a greeting message before making the calls - is there a way to do this?
我的 TwiML 响应目前看起来像这样:
My TwiML response currently looks something like this:
<Response>
<Dial number="+18005551212"/>
</Response>
我想做这样的事情,但不知道如何:
I would like to do something like this, but don't know how:
<Response>
<Dial>
<Number>+18005551212</Number>
<SayToRecipient>This is AwesomeApp. I am forwarding a call from 301-555-1212. BEEP.</SayToRecipient>
<NowConnectTheCalls/>
</Dial>
</Response>
有没有办法做到这一点?
推荐答案
Twilio 布道者在这里.
Twilio evangelist here.
是的.您想要做的称为耳语,我们有一个 How To 向您展示如何构建它:
Yup. What you want to do is called a whisper and we have a How To that shows you how to build this:
https://www.twilio.com/docs/howto/ivrs-call-screening-and-recording
简短版本是
名词具有 URL 属性,允许您将 TwiML 传递给 Twilio,我们将在被叫方应答时但在两个呼叫连接之前执行该属性.
The short version is that the <Number>
noun has a URL attribute that allows you to pass TwiML to Twilio that we will execute when the dialed party answers but before the two calls are connected.
希望有所帮助.
这篇关于在 Twilio 中转接呼叫并向被叫方致以问候的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!