Last active
August 29, 2015 14:20
-
-
Save ismaelc/3dbbff92ef63e506fe38 to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<vxml version = "2.1"> | |
<form> | |
<transfer name="result" dest="tel:+16192071673" bridge="true"> | |
<prompt>Please wait while we transfer you.</prompt> | |
<grammar xml:lang="en-US" root = "TOPLEVEL" mode="voice"> | |
<rule id="TOPLEVEL" scope="public"> | |
<one-of> | |
<item> disconnect </item> | |
</one-of> | |
</rule> | |
</grammar> | |
</transfer> | |
<filled> | |
<if cond="result == 'busy'"> | |
<prompt>Sorry, they're busy.</prompt> | |
<elseif cond="result == 'noanswer'" /> | |
<prompt>Sorry, they didn't answer.</prompt> | |
<else /> | |
<prompt>You spoke for <value expr="result$.duration" /> seconds.</prompt> | |
</if> | |
<if cond="result$.inputmode == 'voice'"> | |
You ended the call by saying, <value expr="result$.utterance" />. | |
</if> | |
</filled> | |
<block> | |
Thanks for using the transfer element. | |
</block> | |
</form> | |
</vxml> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment