I have just found out about Twilio so I don't know much about it what is possible or not. What I want to do is whenever a user sends an SMS to Twilio number I want to reply with an IVR (Interactive voice response). I have been able to reply to the incoming SMS with an SMS but not able to find how to reply with an IVR call. Any help would be appreciated.
Thanks.
You can use a product like Twilio Studio to do this with very little to no code. You associate a Studio flow to your Twilio number (which becomes your source of Twilio Markup Language / TwiML) and can handle both inbound messages and inbound/outbound voice calls via the Trigger Widget which initiates the Studio flow (a top down run through your logic composed of widgets).
You can send an inbound SMS which can be responded to with a Send Message Widget for an SMS response and then a Make Outgoing Call Widget to connect that party to your IVR, also created in Studio using the Gather Input on Call Widget.
Twilio Studio You Tube Play List
Related
I'm developing a Java application that will send a sms to the user when a specific event happens. This part is perfectly working, I'm using Twilio to do this. Now I would like to know the steps to follow if I want to send a reply to the received message, for example, when I get a message with the event on my phone, I'd like to send a message to be able to execute some code in my application, i.e. send 1 to kill a process, or send 2 to shut down the computer. I can't find documentation for this specific case. Anyone?
You can use session data (like cookies) to track the back and forth between a specific phone number and their requests.
https://www.twilio.com/docs/quickstart/java/sms/tracking-conversations
You can use this to store information about the senders previous requests. If you want it to execute some code based off their message (i.e. if they send the number 1 it does some code) you can use a case statement.
Twilio's FAQ says:
When an SMS message is received by one of your Twilio numbers,
Twilio makes an HTTP request to the SMS Request URL configured for that number
Configure your twilio phone number to send a request to your app when an in-bound SMS is received. You can set the url for in-bound SMS messages through the twilio console.
I am developing an application in android (Twilio Android Client) using Twilio, which consumes the Rest API.
I can successfully send the SMS using the rest API. However, when someone replies to SMS/MMS, the server will get that message because Twilio will hit that URL.
But on the other hand, I don't understand how to update the client device when we receive an SMS/MMS using Twilio.
Is there any way to update or send the message (SMS/MMS) to the client device when a server receives an incoming message(SMS/MMS)?
You can configure a URL for SMS/MMS in your twilio number. Now, when the user replies to this number, this script in this URL will be executed. In this script, write code to forward SMS/MMS to your android device's phone number.
If you want to handle replies solely via your app, (ie, not by conventional SMS and MMS) then store reply SMS and MMS in server. Then write an API in server to get these messages. Now write code in android to periodically query this API and retrieve these messages.
I want to implement push notification for Android and IOS, we have our own app for android and ios from that app user can send various request and after request completion user will get notification by using push notification.
So my question is
1. How I can detect the device to which i need to send notification.
2. I am new to GCM so can somebody help me from how to start this.
3. Every where I have found GCM send RegId to server, so whenever request comes every time I need to generate RegId or I need to check whether that user is registered or not if not register it first and then sends notification.
Thank You.
You don't need to regenerate the Registration ID every time.
In simple terms:
Client registers with GCM and client gets a registration ID.
You need to store the registration ID in your server.
Your server will need to send a list of registration ids with message content to GCM. GCM will respond with a list of successful and unsucessful messages to
the server.
The push events that are successful will go to the corresponding device. Note that the push notification will only show if you have
code on the client that receives it in addition you need to have the
app installed.
The client and server code example on the documentation is easy to implement. Have fun :)
My idea: have an hook to force Android to call a function of my App before an SMS will be sent.
What I want to do is to ask the user (that wrote the SMS using an arbitrary App or the standard App) if he wants to send the SMS using GSM (= normal way) or an other provider over Internet.
Is it possible? I found some information about ContentObserver, but I'm not sure how I can cancel the send of the "normal GSM send" after I sent the SMS via Internet...
Thanks for any help!
Luca
There is no such hook available to call your app function before sending the SMS. You may have to customise Android framework to achieve this.
We use a MM7 to send the request to MMSC for sending MMS.
Receiving user has an Android phone and He doesn't get the MMS.
But when Receiving user has a feature phone he gets the MMS.
Confusing here. please help.
There is nothing you should specially handle on your MM7 message to make it work with Android.
What do you mean with "But when Receiving user has a feature phone he gets the MMS"? You can check following steps to troubleshoot.
Check if phone can receive multimedia messages from other sources, try to send a multimedia message to your android phone from another phone. If not, check MMS settings on your android phone.
Check status of message on MMSC side. If you can access server you can check network dump and extract your message.
Request for delivery reports while submitting your MM7 message