Hello Miha,

Need to run some tests on my side - please send me off list the simplified (only LB related part) script + the DB content.

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 07/01/2013 04:41 PM, Miha wrote:
Hi Bogdan,

i tried with two resources and still the same:

Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: DBG:load_balancer:do_load_balance: found requested (0) resource test
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: DBG:load_balancer:do_load_balance: found requested (1) resource bla
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: DBG:load_balancer:do_load_balance: sequential call of LB - previous selected dst is 1
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: DBG:load_balancer:do_load_balance: skipping destination <sip:xxx.xxx.xxx.xxx:5060> (used=1 , disabled=0)
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: CRITICAL:load_balancer:get_dst_load: bug - cannot find request resource in dst
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: DBG:load_balancer:do_load_balance: destination <sip:yyy.yyy.yyy.yyy:5060> selected for LB set with free=0 (max=0)
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: ERROR:load_balancer:do_load_balance: failed to remove from profile
Jul  1 15:37:05 opensips /usr/sbin/opensips[26998]: ERROR:load_balancer:do_load_balance: failed to remove from profile


Dne 7/1/2013 8:29 AM, piše Miha:
Hi Bogdan,

no, I was just trying to do load_balance with different destinations and resources in failure route as the same as in route[] did not work. I am doing it in failure route as I am trying to implement CFWD after some period of time (408) but load balance with different resources also did not work.

What would be causing problems?

tnx!

Miha

Dne 6/28/2013 11:37 AM, piše Bogdan-Andrei Iancu:
Hello Miha,

So you actually do not want to do failover for first LB (to try to find next less loaded destination on set 1), but rather do a completely different LB (if the first one failed) - different one as set of destinations and resources.

Is this correct ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06/26/2013 09:37 AM, Miha wrote:
Hello Bogdan,

no, fisrt one is route[] is using (!load_balance("1","tran")) and second one in failoure route is using (!load_balance("2","test")) parameteres. So, they are using different resources.

BR,
Miha

Dne 6/24/2013 4:44 PM, piše Bogdan-Andrei Iancu:
Hello Miha,

The CRITICAL error says that the the destinations previously selected (on first LB) do not have the resources requested by the second LB function.

So, my first question is : when doing LB (first and second time in failure route), are you using the same set of resources ?

Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06/24/2013 04:54 PM, Miha wrote:
HI,

I need a little help regarding load_balance issue. I am doing load_balance, for 408 responses I am doing again in failure_route as I would like to implement callforward after some periad of time.

Fist time load_balance from route[] works like it should but when I am doing it in failure_route I am getting this:

DBG:load_balancer:do_load_balance: found requested (0) resource test
DBG:load_balancer:do_load_balance: sequential call of LB - previous selected dst is 1
DBG:load_balancer:do_load_balance: skipping destination <sip:xxx.xxx.xxx.xxx:5060> (used=1 , disabled=0)
CRITICAL:load_balancer:get_dst_load: bug - cannot find request resource in dst
DBG:load_balancer:do_load_balance: destination <sip:xxx.xxx.xxx.xxx:5060> selected for LB set with free=0 (max=0)
 ERROR:load_balancer:do_load_balance: failed to remove from profile



I tried with different resource and id group in failure_route as in route[] but still the same.

not working:
failure_route[CFW_NR]
{
         if(t_check_status("408")){
        xlog("Zgodi se CFW_NR po $avp(cfw_nr_timeout) sekundah, cfwnr stevilka: $avp(cfw_nr)");
        $rU=$avp(cfw_nr);
        route(number_translation_to_sbc);
        if (!load_balance("2","test")) {
                        xlog("gre v !load_balance");
                        send_reply("503","Service Unavailable");
                        exit;
                }

        #route(from_sbc_slo);


        }
}



works:
route[from_sbc_slo]{
        xlog("from_sbc_slo load balancing");
        if (!load_balance("1","tran")) {
                        xlog("gre v !load_balance");
                        send_reply("503","Service Unavailable");
                        exit;
                }
        xlog("doing load balancing");
        route(group_calls);
        t_relay();
        exit;
}


id group_id dst_uri resources probe_mode description
Uredi Izbriši 1 1 sip:xxx.xxx.xxx.xxx:5060 tran=20;test=30 2 FS
Uredi Izbriši 2 1 sip:xxx.xxx.xxx.xxx:5060 tran=20 2 FS2
Uredi Izbriši 3 2 sip:xxx.xxx.xxx.xxx2:5060 test=30 2 FS2 test
Uredi Izbriši 4 2 sip:xxx.xxx.xxx.xxx:5060 test=20 2 test





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




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

Reply via email to