[OpenSIPS-Users] 1.9.0 lb_count_call issue

Seth Schultz sschultz at scholarchip.com
Sun Feb 10 01:27:18 CET 2013


I have opened a ticket.

https://sourceforge.net/tracker/?func=detail&aid=3603973&group_id=232389&atid=1086410

Thanks,
Seth

On 2/9/2013 7:18 PM, Muhammad Shahzad wrote:
> humm, then its most likely a bug. Please report it in tracker. :-(
>
> Thank you.
>
>
> On Sun, Feb 10, 2013 at 1:04 AM, Seth Schultz 
> <sschultz at scholarchip.com <mailto:sschultz at scholarchip.com>> wrote:
>
>     Muhammad,
>
>     Thank you for the reply.  I also tried a hard coded value with the
>     same result.
>
>     Thanks,
>     Seth
>
>     On 2/9/2013 6:50 PM, Muhammad Shahzad wrote:
>>     I think both group and resource parameters can not be variables.
>>     Can you check with hard coded values?
>>
>>     Thank you.
>>
>>
>>     On Sat, Feb 9, 2013 at 9:58 PM, Seth Schultz
>>     <sschultz at scholarchip.com <mailto:sschultz at scholarchip.com>> wrote:
>>
>>         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.
>>
>>         On a side note, I am having trouble getting the "group"
>>         parameter to accept variable input (i.e. $dlg_val(group)).
>>
>>         Thanks,
>>         Seth
>>
>>         _______________________________________________
>>         Users mailing list
>>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>>     -- 
>>     Muhammad Shahzad
>>     -----------------------------------
>>     CISCO Rich Media Communication Specialist (CRMCS)
>>     CISCO Certified Network Associate (CCNA)
>>     Cell: +49 176 99 83 10 85
>>     MSN: shari_786pk at hotmail.com <mailto:shari_786pk at hotmail.com>
>>     Email: shaheryarkh at googlemail.com
>>     <mailto:shaheryarkh at googlemail.com>
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: shari_786pk at hotmail.com <mailto:shari_786pk at hotmail.com>
> Email: shaheryarkh at googlemail.com <mailto:shaheryarkh at googlemail.com>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130209/a934c74f/attachment-0001.htm>


More information about the Users mailing list