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

How to start IVR integration?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
test.suffescom
Posts: 5
Joined: Tue Sep 29, 2015 4:12 am

How to start IVR integration?

Post by test.suffescom »

Hi,

I got message from support.

To get started, your developer should open a free developers account to begin work and getting familiar with Plum’s platform. We will assign a temporary toll free phone number and apply a $30 credit towards testing. When the free testing reaches zero, you’ll be required to subscribe.

Plum’s DEV platform is based VXML. So you understand, development work takes place in your developers preferred scripting language like PHP or Ruby, etc. Plum’s web interface is a utility to assign phone numbers to IVR application URLs, run reports and test/verify segments of code.

I suggest reviewing the following links to Plum Dev (VXML) platform: Free Developers Account http://www.plumvoice.com/
Documentation http://www.plumvoice.com/docs/dev/
Support Forum http://support.plumgroup.com/viewforum.php?f=2


I have tried to integrate But ,i have some doubt.

My requirement is that how can i test IVR?

I have just create a test file and find some test code but how gonna i checked this.

url: http://demo.suffescom.com/vxml/test.php

in test .php

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

<form>

<block>
<prompt>
Hello. This is a test phone number. Good bye.
</prompt>
</block>
</form>
</vxml>


My requirement when user some cutomer id then how gonna validate this from database then call to customer care,


So please give me idea or provide me some sample php script.so i can integrate it and also send me some steps to test IVR system.


Thanks.

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

Re: How to start IVR integration?

Post by support »

Hi,

You can use the <subdialog> in order to perform validation logic from within your infrastructure. The subdialog tag can take input from the caller and use these as parameters while fetching a script from your server. Your server will then send a VXML script back with the result from the given parameters. Here's an example:

validate.php:

Code: Select all

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

$account_num = $_GET['account_num'];

$valid = $account_num == '1111';
?>

<vxml version="2.0">
  <form>
    <block>
      <var name="valid" expr="'<?= $valid ? 'true' : 'false' ?>'"/>
      <return namelist="valid"/>
    </block>
  </form>
</vxml>
main.php:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
  <var name="account_num" />
  <form id="account_num_form">
    <field name="_account_num" type="digits">
      <prompt> Enter your account number </prompt>
      <filled>
        <assign name="account_num" expr="_account_num" />
        <goto next="#sub_validate" />
      </filled>
    </field>
  </form>
  <form id="sub_validate">
    <subdialog name="validate" src="http://twist.plumgroup.com/~echoi/validate.php" namelist="account_num" />
    <block>
      The result is: <value expr="validate.valid"/>.
    </block>
  </form>
</vxml>
Regards,
Plum Support

Post Reply