[OpenSIPS-Devel] [ opensips-Bugs-3349265 ] ERROR:load_balancer:mod_init: cannot parse group avp
SourceForge.net
noreply at sourceforge.net
Thu Jul 7 22:20:33 CEST 2011
Bugs item #3349265, was opened at 2011-07-02 09:57
Message generated for change (Settings changed) made by razvancrainea
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3349265&group_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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Robert Smith (denodaeus)
Assigned to: Razvan Crainea (razvancrainea)
Summary: ERROR:load_balancer:mod_init: cannot parse group avp
Initial Comment:
Using rev 8124 of trunk, I get the following:
Jul 2 01:20:17 atlcwdctrl02 /usr/local/opensips/sbin/opensips[21490]: INFO:load_balancer:mod_init: Load-Balancer module - initializing
Jul 2 01:20:18 atlcwdctrl02 /usr/local/opensips/sbin/opensips[21490]: INFO:db_text:dbt_init: using database at: /usr/local/opensips/data/dbtext
Jul 2 01:20:18 atlcwdctrl02 /usr/local/opensips/sbin/opensips[21490]: ERROR:load_balancer:mod_init: cannot parse group avp
Jul 2 01:20:18 atlcwdctrl02 /usr/local/opensips/sbin/opensips[21490]: ERROR:core:init_mod: failed to initialize module load_balancer
We're using the dbtext driver for the load balancer list, and the file looks as follows:
id(int,auto) group_id(int) dst_uri(string) resources(string) probe_mode(int) description(string)
1:1:sip\:127.0.0.1:handset=30:2:bobbydev
This seems to work on the current opensips 1.6.4, but not on current trunk. I've edited the config to use the new AVP scheme, but the call to load balance looks like this:
avp_db_load("$fu/domain", "$avp(s:group)/$routing_rules");
if(!load_balance("1", "$avp(s:group)")) {
If I remove the $avp(s:group) declaration to be $avp(group); the same problem happens.
----------------------------------------------------------------------
Comment By: Razvan Crainea (razvancrainea)
Date: 2011-07-02 14:47
Message:
Hello Robert,
I have just fixed this bug in svn revision #8125. Please update your code
and try again.
Thanks and regards,
Razvan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3349265&group_id=232389
More information about the Devel
mailing list