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

Barge in Question

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
tk1860m
Posts: 5
Joined: Tue Sep 04, 2012 8:39 am

Barge in Question

Post by tk1860m »

We point Plum directly to our VXML pages. Our VXML pages are dynamicly created so not easy to change. We notice that by default Barge in is enabled . We want it to be by default disabled and only enabled if we send the <property value="true" name="bargein"/>. Is that configurable with plum?

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

Re: Barge in Question

Post by support »

Hi,

Yes, it should be possible for you to do this. You can declare for your VXML page for bargein to be "false" and then declare explicitly where you want bargein to be "true".

Here's a code example that may help you:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<property name="bargein" value="false"/>
  <form id="form1">
    <field name="pinnumber" type="digits?length=4">
      <prompt>
        Please enter your first login code.
      </prompt>
      <filled>
        <if cond="pinnumber==8210">
          <prompt>
            That's the correct pin.
          </prompt>
        <else/>
          <prompt>
            That pin is incorrect.
          </prompt>
          <clear namelist="pinnumber"/>
          </if>
      </filled>
      <nomatch>
          You have entered an invalid number of digits. Try again.
          <reprompt/>
      </nomatch>
    </field>

    <field name="pinnumber2" type="digits?length=4">
      <property name="bargein" value="true"/>
      <prompt>
        Please enter your second login code.
      </prompt>
      <filled>
        <if cond="pinnumber2==1365">
          <prompt>
            That's the correct pin.
          </prompt>
        <else/>
          <prompt>
            That pin is incorrect.
          </prompt>
          <clear namelist="pinnumber2"/>
          </if>
      </filled>
      <nomatch>
          You have entered an invalid number of digits. Try again.
          <reprompt/>
      </nomatch>
    </field>

    <field name="pinnumber3" type="digits?length=4">
      <prompt>
        Please enter your third login code.
      </prompt>
      <filled>
        <if cond="pinnumber3==9358">
          <prompt>
            That's the correct pin.
          </prompt>
        <else/>
          <prompt>
            That pin is incorrect.
          </prompt>
          <clear namelist="pinnumber3"/>
          </if>
      </filled>
      <nomatch>
          You have entered an invalid number of digits. Try again.
          <reprompt/>
      </nomatch>
    </field>
  </form>
</vxml>
From this example, we've set our VXML page to have bargein set to "false", so you wouldn't be able to bargein for the first field and the third field, but in field 2, we have bargein set to true, which will allow you to bargein with your input.

Hope this helps.

Regards,
Plum Support

tk1860m
Posts: 5
Joined: Tue Sep 04, 2012 8:39 am

Re: Barge in Question

Post by tk1860m »

We were actually wondering if in the overal plum configuration whether it can be set to be disabled by default. Our application works with other IVRs and by default in their IVRs the barge ins are disabled.

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

Re: Barge in Question

Post by support »

Hi,

Be default, bargein is enabled. You will want to include a property tag within the root document to disable bargein throughout your entire IVR application.

root.php:

Code: Select all

<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>";
?>

<vxml version="2.0">
  <property name="bargein" value="false"/>
</vxml>
Other global IVR properties/variables can be set within the page as well.

main.php

Code: Select all

<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>";
?>

<vxml version="2.0" application="root.php">
  <form>
    <field name="test_field" type="digits">
      <prompt> This prompt is not bargeable. </prompt>
    </field>
  </form>
</vxml>
Regards,
Plum Support

Post Reply