Twilio 呼叫忙状态 [英] Twilio call busy status

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

问题描述

我正在集成 twilio 调用.我的要求是当 twilio 呼叫状态为忙碌"时,将向用户发送一封电子邮件.但是我没有收到忙状态.我在以下情况下收到无应答"状态.

I am integrating twilio call. My requirement is when twilio call status is 'busy' an email will be sent to user. But I didn't receive the busy status. I received 'no-answer' as status on following cases.

  1. Twilio 打了个电话,我取消了电话.
  2. Twilio 在电话已在通话中时拨打电话.

每次我收到无应答"状态时.谁能解释一下我什么时候会收到忙碌"状态?

every time I received 'no-answer' status. Can anyone explain when I will receive 'busy' status?

推荐答案

来自 Twilio 的 Megan 在这里.

Megan from Twilio here.

您可以使用 status 参数中的 busy 属性来确定满足此条件的调用.我不确定为什么在第二种情况下,呼叫者不会收到忙音.

You can use the busy property in the status parameter to determine the calls that meet this criteria. I'm not sure why in the second scenario, the caller would not be receiving a busy signal.

这是一个 Python 示例,您可以通过调用多个号码进行测试,以确定这是否可能是运营商问题.您还可以阅读有关状态参数的更多信息在文档中.

Here's an example in Python you could test with calling more than one number to determine if this might be a carrier issue. You can also read more about the status parameters in the docs.

from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = YOUR_ACCOUNT_SID
auth_token  = YOUR_AUTH_TOKEN
client = TwilioRestClient(account_sid, auth_token)

# A list of call objects with the status property busy
calls = client.calls.list(status="busy")

这篇关于Twilio 呼叫忙状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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