Skip to content

Commit

Permalink
Document Sip TwiML
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Burke committed Feb 14, 2013
1 parent 788b98f commit 2baa9be
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/usage/twiml.rst
Expand Up @@ -147,6 +147,8 @@ Dial
Number
~~~~~~

Dial out to phone numbers easily.

.. code-block:: php
$response = new Services_Twilio_Twiml;
Expand Down Expand Up @@ -214,6 +216,31 @@ Conference
</Dial>
</Response>
Sip
~~~

To dial out to a Sip number, put the Sip address in the `sip()` method call.

.. code-block:: php
require("Services/Twilio.php");
$response = new Services_Twilio_Twiml;
$dial = $response->dial();
$dial->sip('alice@foo.com', array(
"username" => "admin",
"password" => "1234",
));
print $response;
.. code-block:: xml
<?xml version="1.0" encoding="UTF‐8"?>
<Response>
<Dial>
<Sip username='admin' password='1234'>alice@foo.com</Sip>
</Dial>
</Response>


Secondary Verbs
===============
Expand Down

0 comments on commit 2baa9be

Please sign in to comment.