PDA

View Full Version : Two Stage IVR Problems



danielkelly
10-28-2008, 10:20 PM
Hi Im hoping that someone can assist me in creating the IVR I need. Basically what I am after is as follows :-

Call enters the AA and plays a message saying "Welcom to XYZ. If you know the party you wish to call please dial it now otherwise please hold"

The system them waits and if nothing is dialled goes into a second IVR. Press 1 for sales etc et with a no dial option to a specifi extension.

What i thought may be better is to create 2 seperate autho attendant and direct the first one on timeout to the second one. This worked fine however it plays a single ring between the IVRs. My support rep suggested I upload a blank wav file which I did but I keep getting the ringing between the AA's.

My initial attempt to create the AA in a single stage was unsuccessful.

Can anyone suggest whether it should be possible to create this type of AA in a single file? Or how I can stop the ringing between the two AA's.

Thanks in advance
Daniel.

P.S I have attached below my attempt at a single IVR in case this helps.

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">

<form id="mainform">
<noinput count="1">
<assign name="field2" expr="''"/>
<goto nextitem="field1" />
</noinput>

<block>
<prompt bargein="true"> <audio src="blank.wav" /> </prompt>
<goto nextitem="field1"/>
</block>

<field name="field1" type="digits?length=2" modal="false">
<prompt timeout="5s">
<audio src="WelcomeToBluFi.wav" />
</prompt>
<option dtmf="11" value="11" />
<option dtmf="12" value="12" />
<option dtmf="13" value="13" />
<filled>
<goto nextitem="field2"/>
</filled>
</field>

<object name="field2" classid="connect">
<param name="extension" expr="field1"/>
<filled>
<prompt> <audio src="blank.wav" /> </prompt>
<exit/>
</filled>
<nomatch>
<goto nextitem="field3"/>
</nomatch>
</object>

<field name="field3" type="digits?length=1" modal="false">
<prompt timeout="10s">
<audio src="JtechIVR.wav" />
</prompt>
<option dtmf="1" value="11" />
<option dtmf="2" value="12" />
<option dtmf="3" value="13" />
<filled>
<goto nextitem="field4"/>
</filled>
</field>

<object name="field4" classid="connect">
<param name="extension" expr="field3"/>
<filled>
<prompt> <audio src="blank.wav" /> </prompt>
<exit/>
</filled>
<nomatch>
<goto nextitem="field3"/>
</nomatch>
</object>



</form>

</vxml>

davrays
11-03-2008, 01:36 PM
Hello Daniel,

I am no expert in VXML scripting, so this script may not be perfect, but I believe it does what you need:

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">

<form id="mainform">
<noinput count="1">
<assign name="field2" expr="''"/>
<goto nextitem="field1" />
</noinput>

<field name="field1" type="digits?length=2" modal="false">
<prompt timeout="5s">
<audio src="WelcomeToBluFi.wav" />
</prompt>
<filled>
<goto nextitem="field2"/>
</filled>
<noinput count="1">
<goto nextitem="field3" />
</noinput>
</field>

<object name="field2" classid="connect">
<param name="extension" expr="field1"/>
<nomatch>
<goto nextitem="field3"/>
</nomatch>
</object>

<field name="field3" type="digits?length=1" modal="false">
<prompt timeout="10s">
<audio src="JtechIVR.wav" />
</prompt>
<option dtmf="1" value="11" />
<option dtmf="2" value="12" />
<option dtmf="3" value="13" />
<filled>
<goto nextitem="field4"/>
</filled>
<noinput>
<goto nextitem="field3"/>
</noinput>
</field>

<object name="field4" classid="connect">
<param name="extension" expr="field3"/>
<nomatch>
<goto nextitem="field3"/>
</nomatch>
</object>

</form>

</vxml>

Please try that and tell me if that works ok for your needs.

Best regards,
David