无法使用 AWS SNS 向印度 (+91) 发送短信
Unable to send text message to India (+91) using AWS SNS
这是 CloudWatch 响应的样子
{
"notification": {
"messageId": "69f1ef66-3db1-5ed0-bbdf-b8b32c6dbe03",
"timestamp": "2020-09-11 05:48:12.245"
},
"delivery": {
"destination": "+91xxxxxxxxxx",
"smsType": "Promotional",
"providerResponse": "Internal Error",
"dwellTimeMs": 41
},
"status": "FAILURE"
}
我正在使用受支持区域中的区域 ap-south-1 并使用印度 phone 号码 (+91),但仍然出现此错误。除了 AWS CLI,我还尝试 python boto3 库将消息发送到 no avail.This 是我尝试过的 python 代码:
import botot3
client = boto3.client('sns','ap-south-1')
client.publish(PhoneNumber='+91xxxxxxxxxx',Message='Hello')
我认为向印度 phone 号码发送 SMS 消息需要您注册发件人 ID,因为印度对短信有更严格的法律。你有 non-Indian phone 号码可以测试以确认吗?
来自Supported Regions and Countries:
Senders are required to use a pre-registered alphabetic sender ID.
Additional registration steps are required. For more information, see
Special requirements for sending SMS messages to recipients in India.
这是 CloudWatch 响应的样子
{
"notification": {
"messageId": "69f1ef66-3db1-5ed0-bbdf-b8b32c6dbe03",
"timestamp": "2020-09-11 05:48:12.245"
},
"delivery": {
"destination": "+91xxxxxxxxxx",
"smsType": "Promotional",
"providerResponse": "Internal Error",
"dwellTimeMs": 41
},
"status": "FAILURE"
}
我正在使用受支持区域中的区域 ap-south-1 并使用印度 phone 号码 (+91),但仍然出现此错误。除了 AWS CLI,我还尝试 python boto3 库将消息发送到 no avail.This 是我尝试过的 python 代码:
import botot3
client = boto3.client('sns','ap-south-1')
client.publish(PhoneNumber='+91xxxxxxxxxx',Message='Hello')
我认为向印度 phone 号码发送 SMS 消息需要您注册发件人 ID,因为印度对短信有更严格的法律。你有 non-Indian phone 号码可以测试以确认吗?
来自Supported Regions and Countries:
Senders are required to use a pre-registered alphabetic sender ID. Additional registration steps are required. For more information, see Special requirements for sending SMS messages to recipients in India.