这是我从命令行运行的 python 脚本。它调用 10_DIGIT_NO。如果我不接听电话,它会重复调用。twiml 是通过https://www.twilio.com/labs/twimlets/生成的我的/创建?type=callme。如何避免这种情况??无论是否收到电话,我都希望只拨打一次电话。
谢谢
# Download the library from twilio.com/docs/libraries
from twilio.rest import TwilioRestClient
# Get these credentials from http://twilio.com/user/account
account_sid = "xyz"
auth_token = "abc"
client = TwilioRestClient(account_sid, auth_token)
# Make the call
call = client.calls.create(to="10_DIGIT_NO", # Any phone number
from_="MY_TWILIO_NO", # Must be a valid Twilio number
url="XML_FILE_PATH")
print call.sid