Page 1 of 1

Call routing

Posted: Tue Mar 24, 2009 6:48 am
by abhay
Hi
I have query related to 2 different URL's.

Is it possible to use 2 URL's for same toll free number.
because in my application if one URL is not accessible then i want to switch it to other URL for the same toll free number. Is it possible?

Please reply.
Thanks
Abhay

IVR code for call routing

Posted: Tue Mar 24, 2009 9:11 am
by support
Hi Abhay,

You can do this by setting up a scratchpad for your toll-free number and within your scratchpad, you could have this:

applicationurl.vxml:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

<form>
<block>
<goto next="yourapplicationurl1.php"/>
</block>
</form>

<catch event="error">
<goto next="yourapplicationurl2.php"/>
</catch>

</vxml>
From this IVR code, if it fails to go to your first URL, the <catch> would catch an IVR error and attempt to go to your second URL.

Hope this helps.

Regards,
Plum Support

Posted: Tue Mar 24, 2009 11:50 pm
by abhay
Hello,
Thanks for your reply. I want one more thing. Where should I put that scratchpad. Instead of URL of toll free number ?

IVR code for call routing

Posted: Wed Mar 25, 2009 8:42 am
by support
Yes, that's correct.