I'm using AWS AmazonSimpleNotificationServiceClient (AWS SDK for .NET) to send an SMS according to their documentation at https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html#sms_publish_sdk
Presently the messages send/receive beautifully, with this exception:
In my AWS Pinpoint account, I have two long codes. (for example, lets say: +1 (111) 111-1111 and +1 (999) 999-9999). AWS seems to arbitrarily decide which long code to use as the "Sender ID". I am specifying the long code in the publish request like this:
pubRequest.MessageAttributes["AWS.SNS.SMS.SenderID"] =
new MessageAttributeValue{ StringValue = "11111111111", DataType = "String"};
The expected result is that the recipient will receive the message from +1 (111) 111-1111 however, in many cases, the recipient actually receives the message from +1 (999) 999-9999.
How can make sure that these SMS messages use the long code that I specify?
Thanks!