I'm trying to send a voice message using boto3's pinpoint-sms-voice client (in Python). My destination number is in India. My AWS Pinpoint project is in sandbox mode.
My use case is, I will be sending an on-call OTP to the user when they request for it from my application.
When tried to send the message through following function, I'm getting an BadRequestException.
Function:
response = sms_voice_client.send_voice_message(
DestinationPhoneNumber=destination_number,
OriginationPhoneNumber=origination_number,
Content={
'SSMLMessage': {
'LanguageCode': language_code,
'VoiceId': voice_id,
'Text': ssml_message}})
Error:
botocore.errorfactory.BadRequestException:
An error occurred (BadRequestException) when calling the SendVoiceMessage operation:
Country IN is not available.
Contact Amazon Pinpoint through Service Limit Increase Form to whitelist SANDBOX for your sending.
- Before raising a service limit raise request from sandbox to production, I would like to know if sending voice message to IN country is supported in production mode.
- If yes, I would like to know, from which country should I request the destination number? (India is not available as a option, while requesting number in AWS Pinpoint Console)