首页 > 解决方案 > 特威利奥。Python。分析通话状态

问题描述

我正在使用这样的简单鳕鱼:

import os
from twilio.rest import Client
account_sid = os.environ['TWILIO_ACCOUNT_SID']
auth_token = os.environ['TWILIO_AUTH_TOKEN']
client = Client(account_sid, auth_token)

call = client.calls.create(
                        url='http://demo.twilio.com/docs/voice.xml',
                        to='+14155551212',
                        from_='+15017122661'
                    )

print(call.sid)

并且没有接听,但在日志中任何呼叫的状态都是“已完成”。

我想分析一下,如果有人没有接听我需要回电,但没有实际状态。

标签: python-3.xtwilio

解决方案


推荐阅读