On 22/02/12 6:05 PM, Sammy Govind wrote:
AFAIK, in simple words if you are forwarding the call to a provider and
if that one provider returns negative response you can reach into any of
the failure_route as per your script.

....
t_on_failure("carrier-fail");
t_relay()
...
then do logic in failure route.

OR

if(!t_relay())
{
            xlog("L_NOTICE","I couldnt send traffic to the destination
now try with other carrier\n");
            $avp(carrier_index) = $avp(carrier_index)  +1;
            route(send_to_carrier);
}

But can I do this with load_balance()?

--
Cheers,

Matt Riddell
_______________________________________________

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/cc.php (Call Centre Solutions)

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to