PDA

View Full Version : can’t get my ivr script to work.



DialekTelecom
07-19-2006, 10:59 PM
Hello there,

I'm trying to do a not so difficult IVR. But after a lot of tries i can't even get the first menu to work. There's surely something i missed. Here's the first part of it.

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<form id="mainmenu">
<noinput count="1">
<goto next="#frenchext"/>
</noinput>
<field name="languageChoose" type="digits?length=1" modal="true">
<link dtmf="9" next="#englishext"/>
<prompt bargein="true" timeout="10s">
<audio src="bienvenue.wav" />
</prompt>
<filled>
<goto nextitem="choiceEnglish"/>
</filled>
</field>
<object name="choiceEnglish" classid="connect">
<param name="extension" expr="languageChoose"/>
<filled>
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</filled>
<nomatch>
<goto next="#frenchext"/>
</nomatch>
</object>
</form>
<form id="frenchext">
<field name="french_ext" type="digits?length=3" modal="false">
<noinput count="1">
<goto next="#french_menu"/>
</noinput>
<prompt timeout="5s">
<audio src="510_choix.wav" />
</prompt>
<option dtmf="779" value="79" />
<option dtmf="778" value="78" />
<option dtmf="777" value="77" />
<option dtmf="776" value="76" />
<filled>
<goto nextitem="transfertToExtFr"/>
</filled>
</field>
<object name="transfertToExtFr" classid="connect">
<param name="extension" expr="french_ext"/>
<filled>
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</filled>
<nomatch>
<goto nextitem="french_ext"/>
</nomatch>
</object>
</form>
<form id="englishext">
<noinput count="1">
<goto next="#english_menu"/>
</noinput>
<field name="english_ext" type="digits?length=3" modal="false">
<prompt timeout="5s">
<audio src="english_ext.wav" />
</prompt>
<option dtmf="779" value="79" />
<option dtmf="778" value="78" />
<option dtmf="777" value="77" />
<option dtmf="776" value="76" />
<filled>
<goto nextitem="transfertToExtEn"/>
</filled>
</field>
<object name="transfertToExtEn" classid="connect">
<param name="extension" expr="english_ext"/>
<filled>
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</filled>
<nomatch>
<goto nextitem="english_ext"/>
</nomatch>
</object>
</form>
</vxml>

When I get in, i hear the bienvenue.wav message and no matter what i press or do not press after that i get disconnected. The first noinput doesn't bring me to the french extension menu and the 9 doesn't bring me to the english extension menu.

Can someone point me out what i'm doing wrong.

Thank you

arsen
07-26-2006, 06:37 PM
Hi,
Generally your script seems to be correct, except for
<noinput> event handler in<field> named french_ext.
So event
handlers like <noinput>, <nomatch>, <filled> should be placed
after the initial <prompt> element of <field>.
<form
id="frenchext">
<field name="french_ext" type="digits?length=3"
modal="false">
<prompt timeout="5s">

<audio src="510_choix.wav" />
</prompt>

<option dtmf="779" value="79" />
<option dtmf="778"
value="78" />
<option dtmf="777" value="77" />

<option dtmf="776" value="76" />

<filled>
<goto
nextitem="transfertToExtFr"/>
</filled>

<noinput count="1">
<goto
next="#french_menu"/>
</noinput>

</field>
<object name="transfertToExtFr"
classid="connect">
<param name="extension"
expr="french_ext"/>
<filled>

<prompt> <audio src="timeover.wav" /> </prompt>

<exit/>
</filled>

<nomatch>
<goto nextitem="french_ext"/>

</nomatch>
</object>

</form>

From the other hand, I guess that initial filed should
be
<field name="languageChoose" type="digits?length=2"
modal="false">

Hope it'll help.

________
Honda cr125m (http://www.honda-wiki.org/wiki/Honda_CR125M)
________
Prilosec Lawsuit Settlements (http://www.classactionsettlements.org/lawsuit/prilosec/)