0

I am started to learn twilio and currently using it on the local server to make some basic call practices. For the testing purposes i have used twilio code.

$call = $twilio->calls
               ->create("+123",
                        "+123",
                        array("url" => "http://demo.twilio.com/docs/voice.xml")
               );

Problem i am getting is is there any other way i have to redirect the url parameter to local? How can i specify the Say and Play parameters in the url array.

tech_geek
  • 1,624
  • 3
  • 21
  • 44

1 Answers1

0

Twilio developer evangelist here.

Yes, you can direct the call to a URL on your local machine. I recommend you use a tool called ngrok for this. I like using ngrok for a bunch of reasons, but the most important is that it opens up a tunnel from the public internet to a port on your machine. It gives you a public URL for that, which you can use in your Twilio calls.

philnash
  • 70,667
  • 10
  • 60
  • 88