Page 1 of 1

Ending input using a # sign

Posted: Thu Sep 14, 2006 12:30 pm
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?

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

Posted: Thu Sep 14, 2006 1:48 pm
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

Posted: Fri Sep 15, 2006 9:52 am
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>

Example of IVR grammar code

Posted: Fri Sep 15, 2006 10:06 am
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>