Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending SMS notification for Indian mobile numbers from AWS SNS

I am trying to send sms notifications to my indian number from AWS SNS service. While searching about this on the internet many people have mentioned in their post that SMS service is available only for US based mobile phones.

But while reading the SNS documentation i found India in the supported region.

I created a topic in SNS and created SMS subscription for my mobile number but i didnt get the subscription link.

I don't know whether my understanding is correct. Any thoughts about this ?

i tried sending it through AWS Cli commands and boto3 as well.. I got success code but i didnt get any sms.. >>> sns.publish(PhoneNumber = number, Message='example text message' ) {'ResponseMetadata': {'HTTPStatusCode': 200, 'RequestId': '96d0fd74-0657-5dd6-ba6d-adb783076e26', 'HTTPHeaders': {'x-amzn-requestid': '96d0fd74-0657-5dd6-ba6d-adb783076e26', 'date': 'Thu, 08 Dec 2016 15:58:08 GMT', 'content-length': '294', 'content-type': 'text/xml'}}, u'MessageId': '2b7ed463-2698-53ff-8b85-84a0a3c8c00f'}

Thanks in Advance

like image 761
Raj Avatar asked Nov 28 '16 09:11

Raj


People also ask

Is SNS available in India?

By default, when you send messages to recipients in India, Amazon SNS uses International Long Distance Operator (ILDO) connections to transmit those messages. When recipients see a message that's sent over an ILDO connection, it appears to be sent from a random numeric ID.

Can AWS SNS receive SMS?

You can use Amazon Simple Notification Service (Amazon SNS) to send and receive Short Message Service (SMS) notifications to SMS-enabled mobile phones and smart phones. SMS notifications are currently supported for phone numbers in the United States.

Which AWS service can be used to send promotional text messages?

With Amazon SNS, you can also mark your SMS messages as Transactional or Promotional based on the use-case and content of your messages. To learn more about message types, visit the FAQs.


1 Answers

I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit https://www.trai.gov.in/.

like image 66
Yash Avatar answered Oct 28 '22 20:10

Yash