Twilio and Asterisk were made for each other!

I have had fun with twilio and this is just the tip of the iceberg.  From unlimited trunk capacity to very inexpensive phone numbers, Twilio is hard to beat.

twilio_helpers

This zip file contains a php scripts that routes text messages received by Twilio to the proper extension on an Asterisk server.  If the extension is on a remote server, mapped by DUNDI, it will call the included remote WEB Service to route it to that server and deliver to the proper extension out of band from the call.  The config file is a collection of variables and is used by both scripts.  Finally, I needed a way to get a Polycom phone to reload its configuration outside of a sip notify from the Asterisk server.  So it is included for fun.

I did not include the support PHP libraries since they are available for download on the web.  I did modify the PAMI library to support MessageSend, so if the newest release does not include this, let me know at edhorton@edwinhorton.com.