Skip to content

Instantly share code, notes, and snippets.

@ismaelc
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismaelc/3dbbff92ef63e506fe38 to your computer and use it in GitHub Desktop.
Save ismaelc/3dbbff92ef63e506fe38 to your computer and use it in GitHub Desktop.
<?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