Hi, I tried to debug, and found that after some calls resources for both the sip servers are to be 0 (selected for LB set with free=0 (max=0)) though max resource should be 5 and 4 respectively as set in database
mysql> select * from load_balancer; +----+----------+---------------------------+-----------+------------+-------------+ | id | group_id | dst_uri | resources | probe_mode | description | +----+------------+---------------------------------------+-----------+-----------------------+-----------------+ | 1 | 2 | sip:OpenSIPs@x.x.x.1 | sip=5 | 2 | SW#1 | | 2 | 2 | sip:OpenSIPs@x.x.x.2 | sip=4 | 2 | SW#2 | +----+----------+---------------------------+-----------+------------+-------------+ 2 rows in set (0.00 sec) Logs of a call when the user get service full message- -------------------------------------------------------------------------------------- Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:load_balancer:do_load_balance: found requested (0) resource sip Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:dialog:build_new_dlg: new dialog 0xaf3a30e0 (c=b572b37109405e2cZTQ4M2IyNWE0MDhmNjIwZTJlNzdiYTJiZjA5NWM3Yzc.,f=sip:1000@x.x.x.x ,t=sip:12127773456@OpenSIPs,ft=654b3f0e) on hash 2221 Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:core:parse_headers: flags=ffffffffffffffff Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:dialog:init_leg_info: route_set , contact sip:1000@x.x.x.x:62516, cseq 1 and bind_addr udp:x.x.x.x:5060 Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:dialog:dlg_add_leg_info: set leg 0 for 0xaf3a30e0: tag=<654b3f0e> rcseq=<1> Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:dialog:link_dlg: ref dlg 0xaf3a30e0 with 3 -> 3 Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:rr:add_rr_param: adding (;did=da8.8b87f721) 0x81b5c24 Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:load_balancer:do_load_balance: destination <sip:OpenSIPs@x.x.x.1> selected for LB set with free=0 (max=0) Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:load_balancer:do_load_balance: destination <sip:OpenSIPs@x.x.x.2> selected for LB set with free=0 (max=0) Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:load_balancer:do_load_balance: no destination found Jun 13 13:19:39 opensips /sbin/opensips[28951]: DBG:core:comp_scriptvar: int 26 : -2 / 0 Please let me know how to make the LB work effectively -- Regards Tushar Jain "two roads diverged in a wood, and I - I took the one less traveled by, and that has made all the difference" --Robert Frost "
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users