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

Help with VoiceXML bug

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
bravo585
Posts: 8
Joined: Tue Aug 07, 2007 3:37 pm

Help with VoiceXML bug

Post by bravo585 »

I'm making a web-based employee time clock program, where employees can clock in and out of work. I have the application built and it runs fine on a Voxeo account, but when i transferred it over to PlumVoice, there are some slight bugs. The bug is in my menu code. For some reason when you select a choice (DTMF), it doesn't recognize it. Here is the code:

<form>
<var name='userID' expr='$userID'/>
<var name='password' expr='$_POST[password]'/>
<var name='callerID' expr='session.callerid'/>
<field name='menuChoice'>
<grammar type='text/gsl'>
[dtmf-1 dtmf-2 dtmf-3]
</grammar>

<prompt bargein='true'>
Press 1 to clock $clockText.
Press 2 to check to do list.
Press 3 to check messages.
</prompt>

<noinput>
<prompt bargein='true'>
Please select a number from the menu.
</prompt>
<reprompt/>
</noinput>

<nomatch>
<prompt bargein='true'>
Please select a number from the menu.
</prompt>
<reprompt/>
</nomatch>
</field>

<filled namelist='menuChoice' mode='all'>
<if cond='menuChoice==1'>
<submit next='clockInOut.php' method='post' namelist='userID password callerID'/>
<elseif cond='menuChoice==2'/>
<submit next='checkTasks.php' method='post' namelist='userID password'/>
<elseif cond='menuChoice==3'/>
<submit next='checkMessages.php' method='post' namelist='userID password'/>
</if>
</filled>
</form>


I've been trying to debug it, but I'm not really sure where I'm going wrong. Can anyone help me with this?

Thanks so much,
Jason

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

IVR platform supports JSGF and SRGS grammars

Post by support »

Hi,

This is not a bug in the VoiceXML. We do not support gsl grammars in our IVR applications. We only support JSGF and ABNF(SRGS) grammars, which are documented in the VoiceXML Specification:

http://www.w3.org/TR/speech-grammar/

For more details, you can also read about our IVR grammar formats here in the Plum IVR Programmer Reference Manual:

http://www.plumvoice.com/docs/dev/devel ... ce:grammar

So, you would have to replace:

Code: Select all

<grammar type='text/gsl'> 
with either:

Code: Select all

<grammar type="application/srgs+xml"> 
or this IVR code:

Code: Select all

<grammar type="application/x-jsgf">
Regards,
Plum Support

Post Reply