I am tring to use Twilio SMS gateway to send SMS to clients.Twilio API works good for me but i got struk in setting sender id.
Is there any possibities to set the sender ID as text ie., our business name (ex., Mycompany - i need to receive sms with this name)?
Twilio evangelist here.
The short answer is that today we only allow you to use a Twilio phone number as the caller ID when sending text messages from Twilio. You can read more about setting the caller ID for outgoing SMS messages here.
Hope that helps.
Related
I have implemented twilio Api in PHP and its working fine.
But i am getting SMS on phone with Subject DM-012362.
For Example:
DM-012362
My message....
Could i change DM-012362 to DM-ABCD
Please suggest.
You need to get the Permission From twillio and give him a Sender id DM-ABCD after the approval this is change
I've been trying to build an app that forwards an sms to a URL
with twilio, i.e, a user sends an sms to a twilio number, the sms gets forwarded to a specified url, can't seems to find the resource on that, any experienced person in that area
to give a hint, plus what is the format of the sms forwarded to the url.
Thanks
Twilio evangelist here.
I'd suggest working through the SMS and MMS Messages Quickstart. It will walk you through the PHP needed to receive a text message:
https://www.twilio.com/docs/quickstart/php/sms
Hope that helps.
At last, I was able to find what I was looking for. Phew!
$_REQUEST['Body'] retrieves the body of the sms message and I can do whatever I like with that.
Twilio rocks!
I am trying to create outgoing caller ID dynamically.
But the problem is that Twilio does not create it because it fails to verify it (noone responds and inputs confirmation code).
Why do I need to verify number if I get it from the list of available phone numbers?
Can I emulate response which will send Twilio confirmation code when Twilio dials that number?
Twilio evangelist here.
Not sure what you mean by "from the list of available phone numbers". Do you mean you've purchased a number from Twilio? If thats the case you do not have to verify it, you can use any Twilio number as an outgoing caller ID.
If its not a Twilio number, today the only way to authorize an outgoing phone number is to have Twilio call that number and for someone to answer and enter the correct pin code. The reason is to prevent fraud.
Hope that helps.
I have created a free account in twilio for sending SMS through my website. After my registration I got a twilio number like XXX-XXX-XXXX. I am able to send message to mobile numbers but I don't know how to use this twilio number for receiving SMS. Please help me out on this.
Twilio evangelist here.
The way Twilio notifies you of both incoming SMS message and incoming voice phone calls is by using something called a webhook. This is basically an HTTP request that Twilio makes to a URL that you tell us about. Normally this URL is a web app that you've created and published to a public website.
http://en.wikipedia.org/wiki/Webhook
In your Twilio dashboard, click on the Numbers tab and you will see your trial number.
https://www.twilio.com/user/account/phone-numbers/incoming
Click the phone number and you will see two input fields, one for a Voice URL and one for a SMS url. Just put your URL's there and click the save button.
Now if you send a text message to your number, Twilio will make an HTTP request to the URL you've told us about. You can think of this like a standard Form submit. Twilio will send along parameters like the number the SMS is coming from and the body of the message. The full list of parameters we send to the SMS url is here:
https://www.twilio.com/docs/api/twiml/sms/twilio_request
Your app can grab those parameters and use them however it wants. Your app can also return TwiML instructions to us that tell us to respond to the SMS.
https://www.twilio.com/docs/api/twiml/sms/your_response
You might want to check out our quickstarts for examples of how to receive a text message and and howtos for lots more examples of both sending and receiving SMS messages.
https://www.twilio.com/docs/quickstart/php/sms/hello-monkey
https://www.twilio.com/docs/howto
Hope that helps.
Devin
Suppose i have a twilio number (#AAA), if customer 'C' sends a sms to my twilio number(#AAA) from his number (#DDD). Then my sms app forward this sms to my personal phone number(#BBB) from twilio number(#AAA). Now if i reply this sms, then it send sms to my twilio number(#AAA). now is it possible to identify that my app now send this reply sms to customer number(#DDD).
Also think there are 2 customer 'Alex' and 'tasid'. All sms are forwarded to my personal number, now if i reply both sms then it will go to my twilio number(#AAA), now is there any way to detect which one is the reply sms for alex and which on is for tasid.
is there any other way to do it. Any Idea!!!
Tasiddiqul,
The simplest way to solve this would be to store a little bit of information in cookies:
http://www.twilio.com/docs/api/twiml/sms/your_response#cookies
From the docs:
Twilio will keep cookie state across multiple SMS messages between the
same two phone numbers. This allows you to treat the separate messages
as a conversation, and store data about the conversation, such as a
session identifier, in the cookies for future reference. Twilio will
expire the cookies for that conversation after four hours of
inactivity.
Hope this helps.
Yes you can do that IF you (a) track the incoming messages (and sender's phone number) in a database, and (b) include the sender's phone number when you forward the message to yourself and (c) when you reply, START the reply with the sender's phone number. So when YOU send a reply, your app forwards it to the phone number at the start of your message.
you receive:
from 1234567: Hi Joe how are you doing?
you send:
1234567 I'm doing fine thanks how about you?