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 '#'

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
rquant
Posts: 16
Joined: Tue Apr 19, 2011 1:12 pm

Changing terminator Character '#'

Post by rquant »

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 '#'.

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

Re: Changing terminator Character '#'

Post by support »

Hi,

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>
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

Post Reply