Page 1 of 1

Recognize emtpy message without termcar

Posted: Tue Feb 24, 2009 11:40 am
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.

IVR platform uses # key to check grammar

Posted: Tue Feb 24, 2009 3:44 pm
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

Posted: Wed Feb 25, 2009 3:52 am
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>            

IVR code for grammar problem

Posted: Wed Feb 25, 2009 9:42 am
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