Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Already in production but can't use sms voice v2 api
0
Can't use sms voice v2 API, but can use sms voice v1. When using v2 API, always error, such as DESTINATION_PHONE_NUMBER_NOT_VERIFIED or INVALID_IDENTITY_FOR_DESTINATION_COUNTRY.
I cannot find documentation on this error either and I have the same issue.
I'm using pinpoint voice service in us-east-1 region.
I'm using sample python code published here: https://docs.aws.amazon.com/pinpoint/latest/developerguide/sms-voice-v2-messages.html#sms-voice-v2-messages-voice
This is my error message: An error occurred (ValidationException) when calling the SendVoiceMessage operation: Validation Error Occurred - Reason="INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" Fields="destinationPhoneNumber"
if my OriginationIdentity (phone number) country matches destinationPhoneNumber country, then I don't get this error and my voice message gets sent successfully.
If my OriginationIdentity number country doesn't match destinationPhoneNumber, I get the INVALID_IDENTITY_FOR_DESTINATION_COUNTRY error.
From this menu: https://us-east-1.console.aws.amazon.com/pinpoint/home?region=us-east-1#/sms-account-settings/phoneNumbers I can only request a phone number from a list of only 32 countries.
There are 195 countries (according to https://www.worldometers.info/geography/how-many-countries-are-there-in-the-world/ ) - the countries that I need to send voice messages to are not on the list (e.g. Thailand, Pakistan, Belize, Cameroon, etc.)
This PinPoint pricing page has a per minute price for every country in the world https://aws.amazon.com/pinpoint/pricing/
The AWS support team should publish documentation on the restriction rules of OriginationIdentity, which countries can it call?
I cannot find documentation on this error either and I have the same issue. I'm using pinpoint voice service in us-east-1 region. I'm using sample python code published here: https://docs.aws.amazon.com/pinpoint/latest/developerguide/sms-voice-v2-messages.html#sms-voice-v2-messages-voice This is my error message: An error occurred (ValidationException) when calling the SendVoiceMessage operation: Validation Error Occurred - Reason="INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" Fields="destinationPhoneNumber" if my OriginationIdentity (phone number) country matches destinationPhoneNumber country, then I don't get this error and my voice message gets sent successfully. If my OriginationIdentity number country doesn't match destinationPhoneNumber, I get the INVALID_IDENTITY_FOR_DESTINATION_COUNTRY error. From this menu: https://us-east-1.console.aws.amazon.com/pinpoint/home?region=us-east-1#/sms-account-settings/phoneNumbers I can only request a phone number from a list of only 32 countries. There are 195 countries (according to https://www.worldometers.info/geography/how-many-countries-are-there-in-the-world/ ) - the countries that I need to send voice messages to are not on the list (e.g. Thailand, Pakistan, Belize, Cameroon, etc.) This PinPoint pricing page has a per minute price for every country in the world https://aws.amazon.com/pinpoint/pricing/
The AWS support team should publish documentation on the restriction rules of OriginationIdentity, which countries can it call?