#395 ERROR:load_balancer:mod_init: cannot parse group avp

trunk
closed-fixed
modules (454)
5
2011-07-07
2011-07-02
Robert Smith
No

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.

Discussion

  • Razvan Crainea
    Razvan Crainea
    2011-07-02

    Hello Robert,

    I have just fixed this bug in svn revision #8125. Please update your code and try again.

    Thanks and regards,
    Razvan

     
    • assigned_to: nobody --> razvancrainea
     
  • Razvan Crainea
    Razvan Crainea
    2011-07-07

    • status: open --> closed-fixed