【问题标题】:How do I make a call using Twillo on my Korea number?如何在我的韩国号码上使用 Twilio 拨打电话?
【发布时间】:2018-02-23 08:16:25
【问题描述】:

如果发件人是美国电话号码,而收件人是韩国电话号码,则发送字符的代码使用以下代码成功。

from twilio.rest import Client

account_sid = "~~~"
auth_token = "~~~"
client = Client(account_sid, auth_token)

call = client.messages.create(
    to="+821012341234",# korea phone number : 010-1234-1234
    from_="+18442414836", # United States phone number :(844) 241-4836
    body="    this is message text contents    "
)

但是,当呼叫者拨打美国电话号码而收件人拨打韩国电话号码时,会发生同样的错误。

from twilio.rest import Client

account_sid = "~~~"
auth_token = "~~~"
client = Client(account_sid, auth_token)

call = client.calls.create(
    to="+821012341234",# korea phone number : 010-1234-1234
    from_="+18442414836", # United States phone number :(844) 241-4836
    url="http://demo.twilio.com/docs/voice.xml"
)

print(call.sid)

twilio.base.exceptions.TwilioRestException: HTTP 400 error: Unable to create record: Account not authorized to call +821012341234. Perhaps you need to enable some international permissions: https://www.twilio.com/user/account/settings/international

如何拨打韩国电话号码?

我想知道是不是免费版,而且发送测试到韩国电话号码是有限制的。

【问题讨论】:

    标签: twilio twilio-programmable-voice


    【解决方案1】:

    这里是 Twilio 开发者宣传员。

    您的帐户目前似乎不允许拨打韩国电话。但是,您可以通过转到geographic permissions for voice calls in your Twilio console 并检查您希望能够呼叫的正确国家/地区来解决此问题。那个链接,只是为了确认,是https://www.twilio.com/console/voice/settings/geo-permissions/low-risk

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多