【问题标题】:SMS not delivered to India number using AWS SNSSMS 未使用 AWS SNS 发送到印度号码
【发布时间】:2020-05-15 22:14:49
【问题描述】:

您还可以在 AWS 线程中找到此内容:AWS Developer Forums: No SMS delivered on India phone number ...

var sns = new AWS.SNS({ "region": "ap-south-1" }); 

var params = {
        Message: 'this is a test message',
        PhoneNumber: '+91xxx'
      };
sns.setSMSAttributes({
        attributes: {
            DefaultSMSType: 'Transactional'
        }
});
sns.publish(params, function(err, data) {
        if (err) console.log(err, err.stack); // an error occurred
        else     console.log("success "+JSON.stringify(data)); // successful response
 });

我收到了 message-id 作为回应,但 SMS 从未送达。

{
  ResponseMetadata: { RequestId: '1d6dd652-fd57-5f7d-ad7f-XXXXX' },
  MessageId: '431efd91-7356-5e8e-9384-XXXX' 
}

【问题讨论】:

    标签: amazon-web-services amazon-sns


    【解决方案1】:

    在研究过程中,我发现我之前没有在控制台中将“默认消息类型”选择为事务性(见图)。一旦我将它选择为事务性,我就开始接收短信。

    【讨论】:

    • 你是救生员 :)
    • 用户是否需要订阅才能接收短信?
    猜你喜欢
    • 2017-04-11
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-28
    • 1970-01-01
    • 2016-11-30
    相关资源
    最近更新 更多