Page 1 of 1

A basic app

Posted: Wed Jan 27, 2010 3:08 pm
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>

A basic IVR app

Posted: Wed Jan 27, 2010 4:23 pm
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

Posted: Wed Jan 27, 2010 9:17 pm
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.