Can i use different files in the application attribute of the vxml tag? something like:
<vxml version="2.0" application="root.aspx?id=1">
thanx
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Application attribute in vxml tag
Able to use different files in IVR app attribute of vxml tag
Hi,
Yes, it is possible to use different files in the IVR application attribute of the <vxml> tag. For IVR example:
Root.php:
Page1.vxml:
Page2.vxml:
Hope this helps.
Regards,
Plum Support
Yes, it is possible to use different files in the IVR application attribute of the <vxml> tag. For IVR example:
Root.php:
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<var name="username"/>
<var name="age"/>
<property name="interdigittimeout" value="3s"/>
<catch event="noinput">
Please enter an input.
</catch>
<catch event="nomatch">
Your input does not make sense.
</catch>
</vxml>
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0" application="Root.php">
<form>
<block>
<assign name="username" expr="'Big Dog'"/>
</block>
<field name="userage" type="digits">
<prompt>
<value expr="username"/>,
please enter the digits of your age.
</prompt>
<filled>
You entered <value expr="userage"/>.
<assign name="age" expr="userage"/>
<goto next="Page2.vxml"/>
</filled>
</field>
</form>
</vxml>
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0" application="Root.php">
<form>
<block>
<prompt bargein="false">
Your name is <value expr="username"/>.
Your age is <value expr="age"/>.
</prompt>
</block>
</form>
</vxml>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com