Sending SMSs using Pinpoint with SenderID in INDIA

0

I have successfully registered for SenderID with AWS and now I'm trying to send the SMSs using the Pinpoint API 'send_messages' using boto3. But I'm unable to get the SMS on the mobile no that I'm trying to send, and on the console of Pinpoint it's showing 'TTL_EXPIRE', and I don't know how to proceed from here.

I also try by providing EntityID and TemplateID in the in same API but it didn't work either.

Please help in the implementation of sending SMSs using the registered sender ID.

Thanks a lot!!

2 Answers
1

When an SMS is sent from Pinpoint, Pinpoint forwards the messages to the aggregators, which in turn forwards it to the Phone carrier. The phone carrier is then responsible for sending the message to the mobile endpoint (end user device). The provider response in logs is given by the phone carrier for that particular message. So issues inside certain mobile carriers can sometimes cause SMS failures to certain destination phone numbers. After we hand off the message, each carrier has their own TTL timer which starts ticking and will try to publish the message until it doesn't expire. For any reasons if the carrier is unable to send messages to the endpoint within the TTL, it will error out with "The delivery TTL has expired" provider response.

These messages failed because the TTL (Time To Live) for the message expired before the mobile carrier could deliver it to the device endpoint within the TTL. Possible reasons could be:

  • The device is unable to receive the messages. For example, the network unavailability/out of coverage or roaming or device doesn’t have space left to receive new messages

  • The device is offline (switched off)

Please find below answers to the questions you have asked

To mitigate the issue:

  • Ensure that the end-user device is not offline (switched off).
  • The device is able to receive the messages. For example, the network availability/in of coverage or roaming.
  • The device does have space left to receive new messages.

If you are still facing issue after following the above steps, kindly try to send SMS to different carrier number or different destination number.

AWS
answered 7 months ago
0

Hi Hemendra.

Have you tried sending a test SMS message from the Pinpoint Console? I would recommend doing that first to determine whether the configuration is correct or not. To send a test message:

  1. Open the Amazon Pinpoint console at https://console.aws.amazon.com/pinpoint/.
  2. On the All projects page, choose the project that you want to send a test message for.
  3. In the navigation pane, choose Test messaging.
  4. On the Test messaging page, under Channel, choose SMS.
  5. For Destination type, choose one of the following destinations for your message:
  • Phone numbers – Each destination is a recipient's phone number.
  • Endpoint IDs – Each destination is a unique ID that's assigned to an endpoint for the project.
  1. Depending on your selection for Destination type, enter one or more Endpoint IDs or Phone numbers. You can enter up to 15 values. Use commas to separate multiple values. If you use phone numbers as the destination type, specify each number in E.164 format. E.164 is a standard for the phone number structure that's used for international telecommunication. Phone numbers that follow this format typically have up to 15 digits, and they are prefixed with the plus character (+) and the country code. For example, a US phone number in E.164 format appears as +12065550100.
  2. (Optional) For the Origination phone number, select a phone number to send the message from. This list contains all of the dedicated phone numbers that are associated with your account. If your account contains multiple dedicated phone numbers, and you don't choose an origination number, Amazon Pinpoint looks for a short code in your account; if it finds one, it uses that short code to send the message. If a short code isn't found in your account, then it looks for a 10DLC number (US recipients only), and then a toll-free number (US recipients only), and then a long code.
  3. For Message type, choose one of the following:
  • Promotional – Noncritical messages, such as marketing messages. If you choose this option, Amazon Pinpoint optimizes the message delivery to incur the lowest cost.
  • Transactional – Critical messages that support customer transactions, such as one-time passwords for multi-factor authentication. If you choose this option, Amazon Pinpoint optimizes the message delivery to achieve the highest reliability.
  1. Under Message, for Message content, choose whether you want to Create a new message or Use an existing template. If you choose to use an existing template, choose the template from the Template list. After you choose a template from the list, Amazon Pinpoint displays a preview of the active version of the template. (The active version is typically the version of a template that's been reviewed and approved for use, depending on your workflow.) When you finish choosing a template, skip to step 10. If you choose to create a new message, specify the content of the message in the Message field.
  2. (Optional) For Sender ID, enter a custom ID that contains up to 11 alphanumeric characters, including at least one letter, and no spaces. The sender ID is displayed as the message sender on the recipient's device. For example, you can use your business brand to make the message source easier to recognize. Support for sender IDs varies by country and/or region. For more information, see Supported countries and regions (SMS channel). This message-level sender ID overrides your default sender ID, which you chose on the Settings page for the project.
  3. When you finish, choose Send message.

I hope this helps.

profile pictureAWS
EXPERT
answered 8 months ago
  • I tried this, but this was also not working, I was not receiving any SMSs through Pinpoint, but before registering with SenderID, I was able to receive but after registering, I was not

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions