Twilio SMS not being sent with my purchased phone number - twilio

I'm using the code from the documentation to send a SMS to a mexican number and it works.
But the sms is being sent from another phone number other than the one I purchased. I want to be able to send back a reply and visualize it on the Twilio Console. I have tried sending a sms directly to my number and I can see it there, but if I send a reply to the phone number that sent me the sms a get nothing. How can I send an SMS from the number I purchased?

Twilio developer evangelist here.
It is likely that you are sending SMS messages to a country that doesn't support maintaining the sender ID. Check out the SMS guidelines for the country you are sending to to see if this should be supported or not.

Related

Is it possible to use a twilio number for whatsapp verification on BlueStacks?

I installed bluestacks and whatsapp in it on my pc, sent the verification code to my twilio account, however I'm not receiving any confirmation code sms. If I send a normal sms from my phone to the twilio number it is received and displayed normally in the logs, but the whatsapp verification message isn't.
Twilio developer evangelist here.
There are many reasons you may not be receiving SMS messages to your Twilio number. In this case it is likely that WhatsApp are trying to send the message using a short code or alphanumeric sender ID. It's also possible that WhatsApp refuses to send verification codes to VOIP numbers, like Twilio numbers. In general it is not a good practice to use Twilio numbers to receive verification codes.
There is more discussion on this sort of thing on this question.

Twilio: Sending SMS to US numbers is not working

When we are using Twilio SMS programmable interface to send a SMS to a USA number, it is not working. However, if we use the same account and try to send a SMS to an Indian number, the SMS is getting successfully delivered.
Is there are any specific setting to make twilio work successfully for sending a SMS to a USA number?
Thanks
Ahir
Update the SMS geographic permissions - https://support.twilio.com/hc/en-us/articles/223181108-How-International-SMS-Permissions-work

Replying on the same thread of the Twilio number

I have purchased two numbers from twilio one is for UK and the other one is for US.But when I try to send an SMS to that number from an Indian number.I get the response on a different thread.I want to get a response on the same thread so that my bot and the user have conversation on the same thread
Twilio developer evangelist here.
I'm afraid that in the Indian market we are currently forced to work under some restrictions. One of which is:
The sender IDs are changed to the format “XX-NNNNNN”
The sender IDs are altered before SMS messages are delivered to end
users. End users are very likely to see a sender ID composed of 2
letters followed by 6 numbers instead of the Sender ID you specified.
Due to the sender ID change, SMS recipients are unable to send a reply
back to your Twilio phone number.
Unfortunately that means that bot style conversations aren't currently possible in India.

Twilio replying messages with 51465

We have twilio's paid account, using rest api when we are sending messages to Indian mobile number's from twilio's US number in some phone's we are receiving with twilio's number but in some phone's we are getting with 51465.
Any help will be appreciated.
Twilio developer evangelist here.
I recommend checking out the Twilio SMS guidelines for India. We also have a page on limitations on sending SMS to Indian mobile devices.
The key point in these resources is:
The sender IDs are changed to the format “XX-NNNNNN”
The sender IDs are altered before SMS messages are delivered to end
users. End users are very likely to see a sender ID composed of 2
letters followed by 6 numbers instead of the Sender ID you specified.
Due to the sender ID change, SMS recipients are unable to send a reply
back to your Twilio phone number.
India does not support two way messaging because it changes the sender ID. We cannot control that right now.

Twilio Trial SMS 'from' number different from the assigned number

I have got a trial account on Twilio with a free number. When I send an SMS through the Rest API I do receive the SMS, but from a different number than the one I have been assigned.
Is this so because of the trial? Will it be fixed when I upgrade my account?
I need the users to be able to reply back with the message to the same number they received the SMS from.
Twilio developer evangelist here.
My guess is that you are sending messages to a country that doesn't support maintaining the original sender ID. I see from your profile that you're from Pakistan, you can check out the guidelines for sending SMS to Pakistan here.
As you can see from the support table, we can't guarantee that your Long Code (that is the phone number) sender ID is preserved and Two Way SMS is not supported.
So, this is not due to your trial account, but limitations with sending SMS messages into Pakistan.

Resources