Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created November 21, 2012 15:57
Show Gist options
  • Select an option

  • Save RobSpectre/4125632 to your computer and use it in GitHub Desktop.

Select an option

Save RobSpectre/4125632 to your computer and use it in GitHub Desktop.
Press * at any time for voicemail.
<Response>
<Gather action="handler.php">
<Say>Press 1 to do some stuff.</Say>
<Say>Press 2 to do some more stuff.</Say>
<Say>Press star to leave a voice message</Say>
</Gather>
</Response>
<?php
$digits = $_REQUEST['Digits'];
?>
<Response>
<?php if ($digits == "*") {
echo "\t<Say>Leave a message and someone will call you back.</Say>\n\t<Record />";
} else {
echo "<Say>Other stuff...";
}
?>
</Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment