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

Key pound problem

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

Key pound problem

Post by soso »

Hi,

I try to create an application like this:

Code: Select all

    <property name="timeout"           value="10s"/>
    <property name="inputmodes"        value="dtmf"/>
    <property name="bargin"            value="false" />

<field name="saisie_msg">
        
        <grammar root="saisie_msg" type="application/srgs+xml" mode="dtmf">
            
                <rule id="digit" scope="public">
                    <one-of>
                        <item> 0 </item>
                        <item> 1 </item>
                        <item> 2 </item>
                        <item> 3 </item>
                        <item> 4 </item>
                        <item> 5 </item>
                        <item> 6 </item>
                        <item> 7 </item>
                        <item> 8 </item>
                        <item> 9 </item>
                    </one-of>
                </rule>
  
                <rule id="saisie_msg" scope="public">
                    <one-of>
                        <item>
                            <item repeat="0-255">
                                <ruleref uri="#digit" />
                            </item>
                        </item>                        
                    </one-of>
                </rule>
            </grammar>

 <filled>
                    <if cond="saisie_msg$.utterance=='#'">
...
</if>

</filled>
But the code doesn't work. The problem is that use the special key pound character. I try to use termchar with blank option, and interdigitimeout at 0.5s but the delay is too long between the user press "#" and the answer.

I would like to call a submit command immediately after the user press # pound, or other choice (like numerics chars).

Can you help me?

Thanks By advance.

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

IVR code that uses # key

Post by support »

Hi,

Have you tried adding the "#" character explicitly into your IVR code? Looking through your IVR code, we noticed that there is no mention of the "#" character in your IVR <grammar>.

The following IVR code should help:

Code: Select all

    <property name="timeout"           value="10s"/>
    <property name="inputmodes"        value="dtmf"/>
    <property name="bargin"            value="false" />

<field name="saisie_msg">
       
        <grammar root="saisie_msg" type="application/srgs+xml" mode="dtmf">
           
                <rule id="digit" scope="public">
                    <one-of>
                        <item> 0 </item>
                        <item> 1 </item>
                        <item> 2 </item>
                        <item> 3 </item>
                        <item> 4 </item>
                        <item> 5 </item>
                        <item> 6 </item>
                        <item> 7 </item>
                        <item> 8 </item>
                        <item> 9 </item>
                        <item> "#" </item>
                    </one-of>
                </rule>
 
                <rule id="saisie_msg" scope="public">
                    <one-of>
                        <item>
                            <item repeat="0-255">
                                <ruleref uri="#digit" />
                            </item>
                        </item>                       
                    </one-of>
                </rule>
            </grammar>

 <filled>
                    <if cond="saisie_msg$.utterance=='#'">
...
</if>

</filled> 
Regards,
Plum Support

Post Reply