Configuring TWILIO SMS provider: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Twilio has announced a new API to deliver SMS, but the old RESTful simple API is still working. We are going to use it. Configure a new Provider, type SMS with protocol WEBURL.
Twilio has announced a new API to deliver SMS, but the old RESTful simple API is still working. We are going to use it. Configure a new Provider, type SMS with protocol WEB URL.


[[File:twiliosmsprovider.png|400px]]
[[File:twiliosmsprovider.png|400px]]
Line 14: Line 14:


To=${URIENCODE(${SMSDESTNUM})}&From=${URIENCODE(+18584334434)}&Body=${URIENCODE(${SMSTEXT})}
To=${URIENCODE(${SMSDESTNUM})}&From=${URIENCODE(+18584334434)}&Body=${URIENCODE(${SMSTEXT})}
[[File:twiliosmsproviderbottom.png|400px]]
Once created the provider, create the Routing Profile, type SMS and define the rules, for example as following
[[File:smsroutingprofilereules.png|400px]]

Revision as of 08:46, 20 August 2016

Twilio has announced a new API to deliver SMS, but the old RESTful simple API is still working. We are going to use it. Configure a new Provider, type SMS with protocol WEB URL.

Twiliosmsprovider.png

Use the following link:

https://api.twilio.com/2010-04-01/Accounts/<ACCOUNT SID>/Messages.json

Replacing <ACCOUNT SID> with your Twilio Account SID

Twilioconsole.png

Complete the configuration with the Auth Token and the Post Data like:

To=${URIENCODE(${SMSDESTNUM})}&From=${URIENCODE(+18584334434)}&Body=${URIENCODE(${SMSTEXT})}

Twiliosmsproviderbottom.png

Once created the provider, create the Routing Profile, type SMS and define the rules, for example as following

Smsroutingprofilereules.png