【问题标题】:Bypass personal voicemail to Twilio Voicemail Twimlet绕过个人语音邮件到 Twilio Voicemail Twimlet
【发布时间】:2015-01-12 16:12:26
【问题描述】:

我有一个使用 Twilio 动词的基本呼叫转移,但我遇到了语音邮件问题。我想重新路由到记录语音邮件并通过电子邮件发送的 Twimlet,而不是接收用户的个人语音邮件。使用我当前的代码,我在 3-10 秒之间更改“超时”参数,结果好坏参半。有时 Twimlet 语音邮件会先接听,有时电话会被接听,然后 Twimlet 会在实时通话中启动。是否有某种方法可以检测语音邮件即将接收并一致地重定向到 twimlet?

post '/number/forward/:sid' do
  @number = Number.find_by_twilio_sid(params[:sid])
  @forward = Number.find_by_parent_id(@number.id) 

  if @forward.extension == nil
    Twilio::TwiML.build do |r|
      r.Dial @forward.number, :callerId => @number.number, :timeout => '7', :action => "http://twimlets.com/voicemail?Email=email%40gmail.com&Message=Thank%20you%20for%20calling%2C%20please%20leave%20a%20message.&T", :method => "GET"
    end
  end
end

【问题讨论】:

    标签: ruby twilio


    【解决方案1】:

    这里是 Twilio 开发者宣传员。

    虽然我们确实有实验性的answering machine detection in the REST API,但在 TwiML 中没有提供这种功能。 SO上有另一个问题/答案可以更好地回答这个问题。请看:Use IfMachine in TwiML when using <Dial>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-20
      • 2018-10-20
      • 1970-01-01
      相关资源
      最近更新 更多