Using Twilio Client the Text message sent to India Numbers is not delivered if the message length is more then 20 characters.
sbkrishnan2506 opened this issue · 6 comments
Issue Summary
The Text message sent to India numbers are not delivered, if the message length is more that 20 characters using Twilio Client.
It was working fine till October 2023; it stopped working now.
Steps to Reproduce
- Try to send text message (more than 20 characters) to India number, It may work very first time and try again to the same number.
- There is no failure message
- If reduce the text length to 20 or less characters and try again.
- If the message length is less that 20 characters only it will deliver.
Code Snippet
string _accointSID = "AC2252XXXXXXXXXXXXXXXXXXXXXXXXX";
string _authToken = "bc1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXa";
string _fromNumber = "+185XXXXXXXX";
string _countryCode = "+91";
string _mobileNumber = "900XXXXXX";
string _textMessage = "Twilio test Your account";
TwilioClient.Init(_accointSID, _authToken);
var result = MessageResource.Create(body: _textMessage, from: new PhoneNumber(_fromNumber), to: new PhoneNumber(_countryCode + _mobileNumber));
Exception/Log
No excemption ```
paste exception/log here
### Technical details:
* twilio-csharp version: 6.15.0
* csharp version: visual studio 2022 with console application of web API.
Hi @sbkrishnan2506! I tried to reproduce this error but I am receiving the message every time. I even used an elongated message. It still delivers everything successfully. Can you check once again on your end?
Hi Tiwarishubham635,
I tried again, I am getting the same issue,
If I send text message to India number with more than 20 characters, no error message but the message is not received by the end user.
If I send the text message with in 20 characters, then it will be delivered immediately.
Is it anything related to Twilio account?
Please suggest.
Thanks
Bala
Hi @sbkrishnan2506! I have rechecked on my side and it does not look like an issue on Twilio account side. I tried sending the message using this C# helper library on a mac with apple silicon (M1). I was able to receive the messages successfully. Can you share more details about your environment? Thanks!
ConsoleAppTwilio - Copy.zip
Hi @tiwarishubham635,
I just attached the .Net console application, you can download and update your Twilio accountSid, Authtoken and from phone number and try to send text message to India mobile number from USA.
The message received if the text length is less than 20 characters.
The message is not received if the text length is more than 20 characters and there is no error message also.
I am using the Twilio 6.15.0 version.
Please check & let us know if you have any other workaround.
Thanks
Bala
Any update on the above issue?
I have tried again but I am able to receive the messages, though it takes some time to deliver long messages. Is this still the issue with latest version?