我有一个应用程序,我将呼叫转接到使用 Twilio 号码的号码,如下所示,
@client = Twilio::REST::Client.new twilio_sid, twilio_token
@call = @client.account.calls.create(
from: twilio_number,
to: to_number,
method: 'GET',
url: "http://some_url",
:status_callback => "http://some_url/webhook-callback",
:status_callback_method => 'POST',
:status_callback_event => ['initiated', 'ringing', 'answered', 'completed']
)
"url:http://some_url"
生成用于呼叫转移的TwiML ,例如,
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Response>
<Pause length=\"10\"></Pause>
<Play digits=\"#{from_number}#wwwwwwww1234#wwwwwww*72#wwwwww1#wwwwww#{to_number}#1#wwwwww\"></Play>
</Response>
所以现在我想使用另一个 Twilio 号码而不是“to_number”,然后将呼叫转发到多个号码。
我现在在做什么, 1. 使用 Twilio 号码拨打 RACF 号码。2. 提供 TwiML 将电话从 Phone1 转移到 Phone2。
我想要做什么, 1. 使用 Twilio 号码拨打 RACF 号码。2. 提供 TwiML 将电话从 Phone1 转移到第二个 twilio 号码。3. 将第二个 twilio 号码的来电转接至多个号码。