[OpenSIPS-Users] Record congestion/failure rates per load balanced provider

Matt Riddell lists at venturevoip.com
Wed Feb 22 06:08:55 CET 2012


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)



More information about the Users mailing list