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

Recognize emtpy message without termcar

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
soso
Posts: 62
Joined: Tue Apr 22, 2008 8:11 am

Recognize emtpy message without termcar

Post by soso »

Hi,

I've also this error:

I would to use the key pound to validate a message, but I would like to recognize if the message is empty.

I want to use the message without the termcar tag.

Is that possible and how?

Actually, when I enter the "#" key, the event noinput is thrown. I would like to separate the noinput event to emtpy var.

Thanks by advance.

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

IVR platform uses # key to check grammar

Post by support »

Hi,

Could you provide us with some IVR code context to help us better understand this IVR issue?

By default, when you press the # key, the IVR platform checks what you have entered against the IVR grammar.

If there is no match, then a nomatch event is thrown.

Regards,
Plum Support
Last edited by support on Wed Feb 17, 2010 11:20 am, edited 3 times in total.

soso
Posts: 62
Joined: Tue Apr 22, 2008 8:11 am

Post by soso »

Hi,

Like this previous message, I would like to make :

1. If the user press only #, I call the page xxx.vxml,
2. If the user press "*#", I call the page yyy.vxml.

This is code:

Code: Select all

<field name="confirm_message">
        
            <catch event="maxspeechtimeout error.maxspeechtimeout">
                <assign name="essai" expr="essai+1" />
                
                <if cond="essai==3">
                    <goto next="#fin" />
                <else />                
                    <reprompt />
                </if> 
            </catch>
        
            <prompt>
              
            </prompt>        
            
            <grammar root="confirm_message" type="application/srgs+xml" mode="dtmf">
                <rule id="confirm_message" scope="public">
                    <one-of>
                        <item>* #</item>
                        <item> # </item>
                    </one-of>
                </rule>
            </grammar>
            
            <filled>            
                <if cond="confirm_message$.utterance==''">
                    <submit next="envoi_msg.aspx" />
                <elseif cond="confirm_message$.utterance=='*#'" />
                    <submit next="Saisie.aspx"  />
                <else /> 
                    <throw event="nomatch" />
                </if>
            </filled>
            
            <noinput>            

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

IVR code for grammar problem

Post by support »

Hi,

You need to place the # and *# in quotation marks in your IVR <grammar>.

So, replace these lines of IVR code:

Code: Select all

                        <item>* #</item>
                        <item> # </item> 
with this:

Code: Select all

                        <item>"* #"</item>
                        <item> "#" </item> 
Regards,
Plum Support

Post Reply