Created
November 18, 2011 19:23
-
-
Save jaboutboul/1377484 to your computer and use it in GitHub Desktop.
Hello Monkey 1.3 - (718) 701-8572
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_REQUEST['Digits'] != '1'){ | |
header("Location: hellomonkey1.3.php"); | |
die; | |
} | |
header("content-type: text/xml"); | |
?> | |
<Response> | |
<Dial>+13105551212</Dial> | |
<Say>The call failed or the remote part hung up. Goodbye.</Say> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$people = array( | |
"+17182493243"=>"Jack" | |
); | |
if(!$name = $people[$_REQUEST['From']]) | |
$name = "Owl"; | |
header("content-type: text/xml"); | |
?> | |
<Response> | |
<Say>Hello <?php echo $name?></Say> | |
<Play>http://demo.twilio.com/hellomonkey/monkey.mp3</Play> | |
<Gather numDigits="1" action="hello-monkey-handle-key.php" method="POST"> | |
<Say>To speak to a real monkey press 1. Press any other key to start over.</Say> | |
</Gather> | |
</Response> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment