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

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.

Related

I'm unable to use a Twilio phone number for Apple Two Factor authentication

I am trying to use a Twilio phone number for Apple's two factor authentication, but when I set up the phone number on Apple's site the initial verification SMS is never received by the Twilio number. I have confirmed that Apple is able to send the text to a Google Voice number. I have also confirmed with Apple support that the message sent is a standard SMS. Is there something on Twilio's side preventing receiving the message?
This is actually by design. By default, Twilio long code numbers can't receive SMS messages from short code numbers. Look for the section titled "Are you expecting to receive SMS from a short code?" at the following link. https://support.twilio.com/hc/en-us/articles/223133447-Not-Receiving-Incoming-SMS-and-MMS-Messages-on-Twilio-Phone-Number
When I asked this question the functionality wasn't available at all, but now the feature can be requested. There are caveats. https://support.twilio.com/hc/en-us/articles/223181668-Can-Twilio-numbers-receive-SMS-from-a-short-code-
As a followup to ryechus' answer, I requested this functionality and was still not able to receive 2fa codes from apple in Twilio. Their support said:
the unfortunate limitation you're likely facing is that I have know
Apple to prevent verification codes from being sent to virtual phone
numbers.
Some services review the offered number and only send verification SMS
to phone numbers associated with genuine handsets as a measure to
protect against fraud.
Unfortunately, regardless of the Twilio configuration, in my
experience Apple will not delivery verification messages to Twilio.
Interestingly, it does work with google voice.

Twilio Question: Building subscription thru SMS

Im planning to build a console application. My plan is to build a subscription base thru sms. For example text SUBSCRIBE to 2600 then after application received sms the user will become subscriber. It will send news, announcement, events etc to user with senderID sms.
Is it possible in Twilio ? receiving sms in shortcode and notifying with sender id. Is it possible having 2 type of number in 1 account ?
Twilio developer evangelist here.
You can absolutely use more than one type of number across an account, from local, national, short code and toll free numbers as well as using alphanumeric sender IDs in supported countries.

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 SMS not being sent with my purchased phone number

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.

Resources