User avatar
Bjorn_Andersson
GpsGate
Posts: 466
Joined: Wed Jun 28, 2006 5:20 pm
Location: Sweden
Contact: Website

Plugin: Twilio (SMS)

Thu Jun 25, 2015 4:33 pm

Twilio SMS - two way (International)

This plugin enables SMS for GpsGate Server using Twilio SMS Gateway. https://www.twilio.com/

Follow these steps to install:
1. Login to SiteAdmin
2. Go to Plugins
3. Change the repository to beta.gpsgate.com
4. Download and install Twilio plugin.

Configure GpsGate Server
1. Login to SiteAdmin
2. Go to "Settings -> SMS"
3. Select "TwilioSmsProvider" in drop down.
4. "Name" can be anything.

5. "AccoundSid" The Account ID supplied by Twilio
6. "AuthToken" The AuthToken supplied by Twilio

AccountSid and AuthToken can be found under "Account Settings" in your Twilio account.

7. "From Number or Sender ID" Originating number. A Twilio phone number or alphanumeric sender ID.

9. Click Save

Now your server is enabled for outgoing SMS!

If you want 2-way SMS continue with those steps:

10. Click on Edit again on the Twilio provider you just added.
11. In the field "Listener URL" you find the URL you should enter into your Twilio account.

12. Login to your Twilio account.
13. Go to "Programmable SMS" > "Messaging Services".
14. Click in "+" to add a new messaging service and put a Friendly name too. In "Use case" select "Notifications, 2-Way"
15. In "Inbound Settings" > "Request URL" paste the URL generated in GpsGate Platform (step 11) and leave the option "HTTP Post".
16. Save
17. After adding this service, you need to apply it to the service default phone number. You can do this by clicking in the new service generated > "Add an existing number"

Recommendation: check that your phone number is authorized to send SMS to the desired country. In most cases only some countries are enabled by default. Check with Twillio's support if your country is enabled by default.

Now your server is enabled for incoming SMS too!

Troubleshooting
You can use the "Send Test SMS" feature under "Settings" in SiteAdmin.

All sent and received SMS can be monitored in the Terminal. You can also send SMS directly from the Terminal. More info:
http://forum.gpsgate.com/topic.asp?TOPIC_ID=10740

Check "ErrorLog" for errors. More info under "LogFile" plugin:
http://forum.gpsgate.com/topic.asp?TOPIC_ID=12886

Regards,
GpsGate Support
Bjorn Andersson

Return to “GpsGate Server - How to setup and use”