Please help with the following
Posted: Fri Oct 16, 2009 4:14 pm
I need to accomplish two more things.
1. In the code below when I play the machine message I need to implement a "finalsilence" somehow so that I leave the message on a machine.
2. In the code below when I play the regular message I need to learn how to do a transer to another number. Like a press 1 to transfer to xxx-xxx-xxxx or press 2 to transfer to xxx-xxx-xxxx.
I appreciate the help. It's important for me to figure this out by Monday.
-Bill
<?xml version="1.0" ?>
<vxml version="2.0">
<form>
<field name="myprompt" type="digits">
<grammar type="application/x-jsgf" mode="dtmf">(0|1|2|3|4|5|6|7|8|9|"#"|"*")</grammar>
<prompt timeout="4s" bargein="false">Hello you have an important message from Contractor Management Services. Please press 1 to continue.</prompt>
<filled>
<if cond="myprompt==0 || myprompt==1 || myprompt==2 || myprompt==3 || myprompt==4 || myprompt==5 || myprompt==6 || myprompt==7 || myprompt==8 || myprompt==9 || myprompt=='*' || myprompt=='#'">
This is the Regular Message
<else />
This is the Machine Message
</if>
</filled>
<noinput>This is the Machine Message</noinput>
</field>
</form>
</vxml>
1. In the code below when I play the machine message I need to implement a "finalsilence" somehow so that I leave the message on a machine.
2. In the code below when I play the regular message I need to learn how to do a transer to another number. Like a press 1 to transfer to xxx-xxx-xxxx or press 2 to transfer to xxx-xxx-xxxx.
I appreciate the help. It's important for me to figure this out by Monday.
-Bill
<?xml version="1.0" ?>
<vxml version="2.0">
<form>
<field name="myprompt" type="digits">
<grammar type="application/x-jsgf" mode="dtmf">(0|1|2|3|4|5|6|7|8|9|"#"|"*")</grammar>
<prompt timeout="4s" bargein="false">Hello you have an important message from Contractor Management Services. Please press 1 to continue.</prompt>
<filled>
<if cond="myprompt==0 || myprompt==1 || myprompt==2 || myprompt==3 || myprompt==4 || myprompt==5 || myprompt==6 || myprompt==7 || myprompt==8 || myprompt==9 || myprompt=='*' || myprompt=='#'">
This is the Regular Message
<else />
This is the Machine Message
</if>
</filled>
<noinput>This is the Machine Message</noinput>
</field>
</form>
</vxml>