Hi Rocio,

How do you script the fallback to the next destination ? I guess via failure route, but could you post here the exact call of lb_next() ? also how the initial LB triggering looks like ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 02/28/2019 09:16 AM, Rocio Walias wrote:

Hello,

I need a little help regarding a load balancer issue.
I have two destinations (A.X.X.X and B.X.X.X) in the load balancer group. A.X.X.X is working fine but sometimes B.X.X.X is not responding in time and a 408 response is received. In that case I am doing a lb_next() and load balancer send it to A.X.X.X but in “opensips fifo lb_list“ is showing that B.X.X.X load is 1 and I think it must be 0 because in A.X.X.X load is 2 and there is only 2 dialogs.
//

Destination:: sip:33@A.X.X.X:5080 id=96 group=1 enabled=yes auto-reenable=on

Resources::

Resource:: channel max=10 *load*=2

Destination:: sip:33@B.X.X.X:5080 id=98 group=1 enabled=yes auto-reenable=on

Resources::

Resource:: channel max=10 *load=*1

I’m trying to remove that “load=1”  but if I use lb_count_call to undo :

if (lb_is_destination(“B.X.X.X", "5080", "1","1"))

{

lb_count_call("B.X.X.X","5080","1","channel","1");

}

This error happens:

Feb 21 13:05:18 [11033] ERROR:load_balancer:lb_route: sequential call of LB - failed to remove from profile [lbXchannel]->[62]

Is there any way to decrease the load of B.X.X.X or how can it not be considered in load count in afailure_route? I’m saving load data to statistics purpose and it doesn’t match with the number of dialogues.
I’m using Opensips 2.4.2
Thank you very much.



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to