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

A basic app

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
Tracy
Posts: 2
Joined: Wed Jan 27, 2010 12:48 pm

A basic app

Post by Tracy »

Hi, there -

Just trying to get a basic call going.

At the moment - we don't have cURL enabled. Can I test from a html form? I get the response xml that my call is queued:


<queuecall status="queued" call_id="869431">
<login>xxxxxxxx@xxxx.edu</login>
<pin>xxxxxxx</pin>
<phone_number>tel:+1xxxxxxxxxx</phone_number>
<start_url>http://xxxxx/~xxxx/voicexml.php</start_url>

<result_url>
http://xxxxxx/~xxxx/callresponse.php
</result_url>
</queuecall>

But - I don't get the call - obviously there is room for error in voicexml.php or in callresponse.php

Here's voicexml.php:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vxml SYSTEM "http://www.w3.org/TR/voicexml20/vxml.dtd">

<vxml version = "2.0">

<form>
<block>
<prompt>
<?php
echo "Hello ";
?>
World.
</prompt>
</block>
</form>
</vxml>

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

A basic IVR app

Post by support »

Hi Tracy,

You should be able to test from any html form. We did notice some mistakes within the voicexml.php file. You need to echo the xml version 1.0 before you start the vxml portion of the IVR application. Your voicexml.php should look more like this:

Code: Select all

<?php echo "<?xml version=\"1.0\"?>\n"; ?>

<!DOCTYPE vxml SYSTEM "http://www.w3.org/TR/voicexml20/vxml.dtd">

<vxml version = "2.0">
  <form>
    <block>
      <prompt>
	     <?php echo "Hello "; ?> World.
      </prompt>
    </block>
  </form>
</vxml>
We've also noticed that when you queue the IVR call into the outbound IVR system you should enter the telephone number as "1xxxxxxxxxx" as opposed to the "tel:+1xxxxxxxxxx".

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:21 am, edited 1 time in total.

Tracy
Posts: 2
Joined: Wed Jan 27, 2010 12:48 pm

Post by Tracy »

Thank you!

My major fix - my "default" service was paused - I must have done that when I was playing with the survey tool. Oops.

One successful call under my belt - onward and upward.

Post Reply