Page 1 of 1

How to start IVR integration?

Posted: Tue Sep 29, 2015 4:33 am
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.

Re: How to start IVR integration?

Posted: Tue Sep 29, 2015 12:59 pm
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