[OpenSIPS-Devel] SF.net SVN: opensips:[9778] trunk/modules/load_balancer/lb_data.c

2013-02-10 Thread Liviu Chircu
Revision: 9778
  http://opensips.svn.sourceforge.net/opensips/?rev=9778view=rev
Author:   liviuchircu
Date: 2013-02-10 11:16:46 + (Sun, 10 Feb 2013)
Log Message:
---
- fixed a bug in the lb_count_call() function

Modified Paths:
--
trunk/modules/load_balancer/lb_data.c

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] SF.net SVN: opensips:[9779] branches/1.9/modules/load_balancer/lb_data.c

2013-02-10 Thread Liviu Chircu
Revision: 9779
  http://opensips.svn.sourceforge.net/opensips/?rev=9779view=rev
Author:   liviuchircu
Date: 2013-02-10 11:18:42 + (Sun, 10 Feb 2013)
Log Message:
---
backport from trunk (rev #9778)
- fixed a bug in the lb_count_call() function

Revision Links:
--
http://opensips.svn.sourceforge.net/opensips/?rev=9778view=rev

Modified Paths:
--
branches/1.9/modules/load_balancer/lb_data.c

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [ opensips-Bugs-3603973 ] lb_call_count

2013-02-10 Thread SourceForge . net
Bugs item #3603973, was opened at 2013-02-09 16:26
Message generated for change (Comment added) made by liviuchircu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3603973group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Seth Schultz (sethschultz)
Assigned to: Nobody/Anonymous (nobody)
Summary: lb_call_count

Initial Comment:
Hello,

I am having trouble with the new function in 1.9.0 lb_count_call.  Please look 
at the snippet below.

failure_route[1]
{
...

xlog(L_WARN, trying to count call ip=$dlg_val(route) port=$dp 
group=$dlg_val(balance_pool) resource=$dlg_val(balance_resource)\n);

if ($dlg_val(balance_pool) = 1)
{
if (lb_is_destination($dlg_val(route), $dp, 1, 1))
{
xlog(L_WARN, counting call!\n);
if (lb_count_call($dlg_val(route), $dp, 1, 
$dlg_val(balance_resource)))
{
xlog(L_WARN, call counted on sip:$du:$dp\n);
}
}
}

...
}

Here is the output I see in my log file:

Feb  9 15:53:07 opensips-vm /sbin/opensips[16562]: trying to count call 
ip=xxx.xxx.xxx.xxx port=5060 group=1 resource=pstn
Feb  9 15:53:07 opensips-vm /sbin/opensips[16562]: counting call!
Feb  9 15:53:07 opensips-vm /sbin/opensips[16562]: 
ERROR:load_balancer:lb_count_call: no destination to match the given IP and 
port (xxx.xxx.xxx.xxx:5060)

Notice that it gets a positive result when calling lb_is_destination, however, 
lb_count_call is throwing an error message indicating it can't match a 
destination.  I have tried hard coding values, however, this resulted in the 
same error.

On a side note, I am having trouble getting the group parameter to accept 
variable input (i.e. $dlg_val(group)).

Thanks,
Seth

--

Comment By: Liviu Chircu (liviuchircu)
Date: 2013-02-10 03:36

Message:
Hello Seth,

A fix for this has been commited both on trunk and 1.9

Regards,
Liviu

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3603973group_id=232389

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [ opensips-Bugs-3604060 ] b2b_logic: $du and $ru

2013-02-10 Thread SourceForge . net
Bugs item #3604060, was opened at 2013-02-10 21:57
Message generated for change (Tracker Item Submitted) made by nikbyte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3604060group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Nobody/Anonymous (nobody)
Summary: b2b_logic: $du and $ru

Initial Comment:
b2b_logic should respect $du and $ru in scripting mode like it respects $du and 
$ru in topology hiding mode.


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=3604060group_id=232389

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel