I'm trying to change the value of the terminatorChar from '#' to '*' but the platform refuses it.
I need the use of # as I am expecting it from different prompts.
M EDT GrammarManager::GetRecProperties - Unable to set vxi.rec.terminatorChar from value "'*'". Defaulting to '#'.
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Changing terminator Character '#'
Re: Changing terminator Character '#'
Hi,
To change the terminating character, you can use the "termchar" property within your code. For example:
termchar.php
From this example, when you are prompted to enter some digits, you can enter "*" on your keypad to terminate your entry.
Hope this helps.
Regards,
Plum Support
To change the terminating character, you can use the "termchar" property within your code. For example:
termchar.php
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form>
<property name="termtimeout" value="7s"/>
<property name="termchar" value="*"/>
<field name="myfield">
<grammar type="application/x-jsgf" mode="dtmf">
( 1 | 2 )+
</grammar>
<prompt>
Enter any number of the digits one or two. You may press the star key to indicate when you've finished.
</prompt>
<filled>
You entered <value expr="myfield"/>.
</filled>
<nomatch>
You entered a number that does not match one or two.
<reprompt/>
</nomatch>
<noinput>
You did not enter anything.
<reprompt/>
</noinput>
</field>
</form>
</vxml>
Hope this helps.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com