简体   繁体   English

我可以使用呼叫SID Ruby On Rails重拨Twilio呼叫吗?

[英]Can I re-dial a Twilio Call using call SID, Ruby On Rails?

I'm trying to make a function for re-dialing a Twilio Call everytime I get a "failed" status. 我正在尝试使每次我获得“失败”状态时都重新拨打Twilio呼叫的功能。

Can I use Call SID or other data to make a re-dialing function? 我可以使用呼叫SID或其他数据进行重拨功能吗? Instead of using the same method as making the first call like: 而不是像第一次拨打电话那样使用相同的方法:

call = client.account.calls.create({ 
:url => xxxxxxxxxx, :to => to_no, 
:from => from_no, 
:method => "GET", 
:if_machine => "Hangup",
:timeout => "60"
}) 

Since, I can get the call.sid and call status via: call_status = client.account.calls.get(call.sid) 因为,我可以通过以下方式获取call.sid和呼叫状态:call_status = client.account.calls.get(call.sid)

Thank you! 谢谢!

Twilio developer evangelist here. Twilio开发人员布道者在这里。

The way to make calls using the REST API is the method you show in your question already. 使用REST API进行调用的方法就是您已经在问题中显示的方法。 There's no way, that I know of, to create a call out of an old Call SID. 据我所知,无法通过旧的Call SID创建呼叫。 Each call you make will have a new SID as that is the unique identifier for objects within our system. 您进行的每个调用都会有一个新的SID,因为它是我们系统中对象的唯一标识符。

Are you looking for some other functionality here? 您还在这里寻找其他功能吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM