Twilio will invoke the url you set up on the first step. Handle twilio's requests and return TwiML The first thing you need to do is add a device on your sip.conf file Īnd then, on your nf just use it (I'm using prefix 88 for twilio. Set up your Asterisk so that when you dial a number, it reaches twilio On the third step I'll show you exactly what it should return. but it can def be a cheap one) to a URL that can handle their request. I'm going to assume you called your domain "example" so I'll talk about the domain Īs Voice URL, you should put a URL that points to your web server (yeah, you need one. If you have static IP, I'd totally use that. I have a dynamic ip, so I used a credential list (and will use that in the 2nd step). Assuming you have a twilio account, just go to and set up a domain. They have SDKs for almost any language, but I'll keep this response language-agnostic and deal only with TwiML Handle twilio's requests and return TwiML (a special kind of XML that's extremely well documented on their site).Set up your Asterisk so that when you dial a number, it reaches twilio.Create a domain at twilio and set up the users.You will need an HTTP server to return the XMLs Twilio requires. However, nothing prevents you from building an app that lets you place outgoing calls through Twilio and receive calls from them on asterisk. it's aimed at developers who want to build applications over their services. THIS IS DEPRECATED!!! YOU SHOULD BE USING TWILIO's OWN SIP TRUNKING. As it was well pointed out below, Twilio now DOES WORK as a SIP trunk, you can visit for more information.
0 Comments
Leave a Reply. |