Dear support team,
I need your advice. I implemented dynamic IVR in VXML. At first page it checks the mobile number status using <subdialog> element. It called URI and regarding to return value redirect customers to appropriate flows. Today we faced issue with URI which based on another server. There was timeout several times and application played error announcement. So now I need to assign property which will be checking timeout in URI assigned in <subdialog>. If timeout more than 20 second I need redirect it to other number. Could you please help me with this? Can I use it with error.badfetch?
Thanks beforehand.
Please find my code below:
<?xml version="1.0" ?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US" >
<var name="V_MSISDN" expr="session.telephone.ani"/>
<filled>
<goto next="#sub"/>
</filled>
<form id="sub">
<subdialog name ="sub" src="http://192.168.215.1:8082/ws.aspx?P_LOG ... =GET_GROUP" namelist="V_MSISDN">
<filled>
<if cond="sub.ret == 0">
<goto next="start.vxml"/>
<elseif cond="sub.ret == 1" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 2" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 66" />
<prompt>
<audio src = "black.wav"/>
</prompt>
<exit/>
</if>
</filled>
</subdialog>
</form>
</vxml>
I need to check this URI first: http://192.168.215.1:8082/ws.aspx?P_LOG ... =GET_GROUP
Thank you.
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Checking URI timeout before <subdialog>
Re: Checking URI timeout before <subdialog>
Hi Polad,
You are correct, you can utilize the catch tag with an error.badfetch event to avoid this error.We also noticed that you had a small portion of code that was not necessary:Hope this helps!
Regards,
Plum Support
You are correct, you can utilize the catch tag with an error.badfetch event to avoid this error.
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US" >
<var name="V_MSISDN" expr="session.telephone.ani"/>
<form id="sub">
<subdialog name ="sub" src="nonexistent_file.php" namelist="V_MSISDN">
<filled>
<if cond="sub.ret == 0">
<goto next="start.vxml"/>
<elseif cond="sub.ret == 1" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 2" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 66" />
<prompt>
<audio src = "black.wav"/>
</prompt>
<exit/>
</if>
</filled>
</subdialog>
<catch event="error.badfetch">
<!-- Play technical difficulties message or jump to new form for different processing. -->
</catch>
</form>
</vxml>
Code: Select all
<filled>
<goto next="#sub"/>
</filled>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Re: Checking URI timeout before <subdialog>
Dear support team,
Thank you very much.
Thank you very much.