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

Ending input using a # sign

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
zone24x7
Posts: 29
Joined: Fri May 19, 2006 7:50 am

Ending input using a # sign

Post by zone24x7 »

Is there are way in plum where using a special character like # can define an end of an input (E.g. to enter the telephone number you type the number and the end it with the # character. If so can you point me to the plum documentation which gives this as an example?

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

Within IVR apps, you can terminate all input via the # key

Post by support »

Hello,

This is already the default behavior. Within your IVR applications, you can terminate all input (speech or dtmf) via the # key. All of the built in grammars support # termination and will strip the # key off if it is pressed. The only reason you might not be able to do this right now would be because your IVR grammar does not expect this as a possible input. If for some reason you are not able to terminate input via the # key please post a sample IVR grammar and we will suggest modifications to allow for # input.

Regards,
Plum Support
Last edited by support on Sat Feb 20, 2010 4:42 pm, edited 3 times in total.

zone24x7
Posts: 29
Joined: Fri May 19, 2006 7:50 am

Post by zone24x7 »

here is our code and we want to use the # sign both for the user name and password

<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<var name="logincount" expr="1"/>
<form id="welcome">
<block>
<prompt>
Welcome to Macy's South System Communication Log paging System.
</prompt>
<goto next="#login"/>
</block>
</form>
<form id="login">
<field name="userid" type="digits">

<prompt>
Now, Please enter your user number.
</prompt>
<noinput>
Sorry! I didn't hear you.
</noinput>
<noinput count="3">
You didn't respond. You'll be disconnected.
Good bye!
<disconnect/>
</noinput>
<nomatch>
Sorry, I didn't understand.
<reprompt/>
</nomatch>
</field>
<field name="pwd" type="digits">

<prompt>
Please enter your password.
</prompt>
<noinput>
Sorry! I didn't hear you.
</noinput>
<noinput count="3">
You didn't respond. You'll be disconnected.
Good bye!
<disconnect/>
</noinput>
<nomatch>
Sorry, I didn't understand.
<reprompt/>
</nomatch>
</field>
<filled>
<prompt>
Please hold, login information is being processed!
</prompt>
<submit next="http://11.54.32.146/ivr/default.asp" namelist="userid logincount pwd" method="get"/>
</filled>
</form>
</vxml>

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

Example of IVR grammar code

Post by support »

So do you wish to have "#" key as part of the input string? For instance, right now, if you have a field of type="digits" and the caller presses "1 2 3 4 #", the IVR will assign "1234" to the field variable. If you want to be able to capture the terminating "#" after a string of digits, you should not use the "digits" type but, instead, declare your own IVR <grammar>:

Code: Select all

<grammar>
(1|2|3|4|5|6|7|8|9|0)+ "#"
</grammar>

Post Reply