We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Creating repeating/cyclic menu

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
asr
Posts: 1
Joined: Wed Sep 26, 2012 1:22 am

Creating repeating/cyclic menu

Post 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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Creating repeating/cyclic menu

Post 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

Post Reply