I am sending SMS to Indian mobile numbers using SNS production account(not configured SenderId) in ap-south-1 region with boto3 api using below code
sns = boto3.client('sns',region_name='us-east-1')
number = "+91"+user_mobile_number
content = sns.publish(PhoneNumber=number, Message="Dear Customer, Use this to verify your mobile:"+verification_code+"")
SMS logs shows success status for all but only first SMS is delivered correctly and all other SMS are not delivered. SMS delivered correctly at random times.
As per aws documentation, to send SMS to India using AWS SNS suggests to register with TRAI,
Trying to debug but cannot find why the SMS are not delivered, is there any restrictions in sending SMS to indian numbers ? Is it mandatory to register TRAI to send SMS to Indian number?