Error "DESTINATION_PHONE_NUMBER_NOT_VERIFIED" while using aws pinpoint-sms-voice-v2 send-voice-message api

0

Hi, I am trying to send a voice message using pinpoint-sms-voice-v2 send-voice-message but getting below error, origination number is a valid long code. Can someone please help with this error. I didn't any document to verify the destination number to send voice message using pinpoint-sms-voice-v2 API Below is the command and its response aws pinpoint-sms-voice-v2 send-voice-message --destination-phone-number ‘+1<my number>’ --origination-identity ‘+15075961998’ --message-body ‘hi, this is a test message ’ --configuration-set-name ‘cs-pp-generac-voice’ --message-body-text-type ‘TEXT’

Sending voice message from +15075961998 to +1<my phone number>. {‘Error’: {‘Message’: ‘Conflict Occurred - Reason=“DESTINATION_PHONE_NUMBER_NOT_VERIFIED”’, ‘Code’: ‘ConflictException’}, ‘ResponseMetadata’: {‘RequestId’: ‘60ae6263-e82c-4a4d-b7bb-25ec4c45fb50’, ‘HTTPStatusCode’: 400, ‘HTTPHeaders’: {‘x-amzn-requestid’: ‘60ae6263-e82c-4a4d-b7bb-25ec4c45fb50’, ‘date’: ‘Thu, 13 Apr 2023 17:44:00 GMT’, ‘content-type’: ‘application/x-amz-json-1.0’, ‘content-length’: ‘194’}, ‘RetryAttempts’: 0}, ‘Message’: ‘Conflict Occurred - Reason=“DESTINATION_PHONE_NUMBER_NOT_VERIFIED”’, ‘Reason’: ‘DESTINATION_PHONE_NUMBER_NOT_VERIFIED’} (edited)

AWS
posta un anno fa857 visualizzazioni
2 Risposte
0

Is your account still in the Sandbox?

From https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-sandbox.html

New Amazon Pinpoint accounts are placed into an SMS sandbox. <...> the following restrictions are in place while your account is in the sandbox: <...> You can only send SMS messages to verified destination phone numbers.

To verify the number:

Sign in to the AWS Management Console and open the Amazon Pinpoint console at https://console.aws.amazon.com/pinpoint/. In the navigation pane, under SMS and voice, choose Overview. In the Destination phone numbers, choose a number that has a verification status of Unverified. Choose Verify phone number. On the Verify destination phone number window, choose Send verification code. In the Verification code field, enter the code that you received, and then choose Verify destination phone number.

dmat
con risposta un anno fa
  • Hi Dmat, Thanks for the response. The answer works for using the pinpoint API for sending SMS but here we are trying to use pinpoint-sms-voice-v2 API to send voice messages and there is no way to verify the destination number using this v2 API. Had a chat with pinpoint support and they suggested to request for prod access since there is no away to verify the number at this point. Now I am able to send the voice message using v2 API after my prod access request is approved.

0

Had a chat with pinpoint support and they suggested to request for prod access since there is no away to verify the number at this point. Now I am able to send the voice message using v2 API after my prod access request is approved.

AWS
con risposta un anno fa
  • did u have to create a pinpoint project and then request it to be moved from sandbox to production? I have a 10DLC approved number that has sms and voice enabled and i am able to send voice from console but the same does not work from a lambda

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande