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

Sammy Govind govoiper at gmail.com
Wed Feb 22 06:22:39 CET 2012


>
> I can take care of the logic of changing the DB and resizing the load
> balancing rules but don't see how I can log the failures/failure codes for


Yes why not, give it a try. If the carrier is already down in load-balancer
list then it won't even try the itsp but if its available and return
congestion you can definitely lock the response.

hmmm..give it a try first. Why don';t you try the LCR module for this !
usually load_balancer is used for distributed load to internal servers, but
you are using inverse..
see this:  http://www.opensips.org/html/docs/modules/1.7.x/drouting.html


On Wed, Feb 22, 2012 at 10:08 AM, Matt Riddell <lists at venturevoip.com>wrote:

> 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<http://www.venturevoip.com/news.php>(Daily Asterisk News)
> http://www.venturevoip.com/**pabx_on_disk.php<http://www.venturevoip.com/pabx_on_disk.php>(PABX on a Disk)
> http://www.venturevoip.com/**exchange.php<http://www.venturevoip.com/exchange.php>(Full ITSP Solution)
> http://www.venturevoip.com/cc.**php <http://www.venturevoip.com/cc.php>(Call Centre Solutions)
>
> ______________________________**_________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-**bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120222/801d43d0/attachment.htm>


More information about the Users mailing list