Unable to send AWS Pinpoint Voice message to a destination number in India

0

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.
  1. 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.
  2. 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)
1 個回答
0

There is a special requirement to send voice message to india number. If you didnt complete this then above error is valid. Please check following url https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-senderid-india.html

Raghav
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南