Twilio

Helloworld


You call a number and Twilio says back "Hello World".

This demo is just one static XML file. Just post it on your web server (e.g. Apache), tell Twilio the URL of the file, and next time someone calls, Twilio will fetch the file and read back "Hello World". It's that simple!

For more information on how build applications that handle incoming calls take a look at the TwiML Quickstart.

Concepts

This demos show the usage of the TwiML <Say> verb.

Try it

Call (866) 584-0962 to try the Helloworld demo.

Implementation

Twilio
Twilio does HTTP GET for 'index.xml' Demos Steps 1 Web server response with the static 'index.xml' file Demos Steps 2
Webserver

1

When a call is answered by Twilio, Twilio does an HTTP GET or POST for 'index.xml'

2

The web server responds with index.xml. Twilio parses the XML file, extracts the <Say> verb, and reads back "Hello World" to the caller.

index.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
   <Say>Hello World.</Say>
</Response>

Demo files


Hello World TwiML file index.xml