Created
February 16, 2012 02:10
-
-
Save mheadd/1840982 to your computer and use it in GitHub Desktop.
This file contains hidden or 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($currentCall->initialText) { | |
_log("*** User sent: " . $currentCall->initialText . " ***"); | |
$result = ask("", array("choices" => "[ANY]")); | |
} | |
else { | |
call($numberToCall, array("timeout" => 60, "channel" => "TEXT", "network" => "SMS")); | |
$result = ask("Respond with a digit, any digit.", array("choices" => "[1 DIGIT]")); | |
} | |
say("You entered, " . $result->value); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial outbound with call to Tropo Session API: