AWS re:Post을(를) 사용하면 다음에 동의하게 됩니다. AWS re:Post 이용 약관

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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인