Page 1 of 1

Creating repeating/cyclic menu

Posted: Wed Sep 26, 2012 2:13 am
by asr
Hi,

I wanted to create a simple IVR, in which user is given the option to go back to main menu. No limit has been for the number of times he/she can do that. Code is pasted below. IVR below is simple - prompt is played, on 1, menu prompt is to be repeated. On 2, it exits. When IVR starts, the 1st DTMF '1' cycles it back to the main menu. On 2nd DTMF '1' input, an error.badfetch event is thrown. Precise error is "error.badfetch , Duplicate form item name: myblk".

I couldn't figure out what the problem is going through VXML specification, and closest thread I could find in this forum http://support.plumgroup.com/viewtopic. ... c6b97d56c0 didn't help in understanding what wrong I had done.

Any help will be deeply appreciated.

Thanks,
Anshuman

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml http://www.w3.org/TR/voicexml20/vxml.xsd">
<menu id ="main_menu">
<prompt bargein="true" timeout="5000ms">
<audio src="menu.wav"/>
</prompt>
<nomatch count="1" >
<reprompt />
</nomatch>
<nomatch count="4" >
<exit/>
</nomatch>
<noinput count="1" >
<reprompt />
</noinput>
<noinput count="4" >
<exit/>
</noinput>
<choice dtmf="1" next="#ivrdesigner_1_9910100822"/>
<choice dtmf="2" next="#ivrdesigner_1_9910100821"/>
</menu>
<form id ="ivrdesigner_1_9910100822">
<block name="myblk">
<goto next="#main_menu"/>
</block>
</form>
<form id ="ivrdesigner_1_9910100821">
<block>
<exit/>
</block>
</form>
</vxml>

Re: Creating repeating/cyclic menu

Posted: Wed Sep 26, 2012 8:49 am
by support
Hi Anshuman,

We tested the code you had posted and followed your instructions on our end, but were unable to reproduce the issue. Upon dialing the VXML application, we were able to loop back to the main menu multiple times without error.

If you're able to reproduce the issue, could you please provide us with further details on how to reproduce it?

Regards,
Plum Support