Created
October 6, 2009 00:50
-
-
Save cloudvoxcode/202663 to your computer and use it in GitHub Desktop.
Answer call with Perl & Asterisk (more at help.cloudvox.com)
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
$call->exec("Swift", "Thank you for calling Cloudvox. Enter a 6 digit number."); | |
$call->exec("Read", 'pin||6|2|10'); | |
$pin = $call->get_variable("pin"); | |
$call->exec("Swift", "You entered "); | |
if (length($pin) > 0) { | |
$call->exec("SayDigits", $pin); | |
else { | |
$call->exec("Playback", "nothing-at-all"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment