[SR-Users] Registrar, usrloc and duplicate keys

Alex Hermann alex at speakup.nl
Tue Jul 16 21:27:01 CEST 2013


On Tuesday 16 July 2013 15:14:19 Daniel-Constantin Mierla wrote:
> to fix such cases, we added the option to use ruid for updates to database:
> 
> http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.db_obs_ruid

Something seems a bit wonky here. As you could see in my config fragment,
i commented this parameter because it doesn't seem to exist.

This parameter exists in documentation, but not in code: 

 0(14392) ERROR: <core> [modparam.c:152]: set_mod_param_regex: parameter <db_obs_ruid> of type <2> not found in module <usrloc>

This is on 4.0. I grepped through the repository, in the 4.0 branch the
documentation exists, but not the code. In master neither exists.

btw, the documentation conflicts with itself. The parameter is
specified as a "string" value, but the explanation and example
have "integer" values (there are more of these type of errors on
the same page).


$ git show-ref origin/4.0
f8826df994a6baac9cfee219abafa3e1b82ee4f8 refs/remotes/origin/4.0

$ grep -rn db_obs_ruid *
ChangeLog:768:    - new parameter db_obs_ruid - if set to 1, db update/delete operations
modules/usrloc/doc/usrloc_admin.xml:847:        <section id="usrloc.p.db_obs_ruid">
modules/usrloc/doc/usrloc_admin.xml:848:                <title><varname>db_obs_ruid</varname> (string)</title>
modules/usrloc/doc/usrloc_admin.xml:860:                <title>Set <varname>db_obs_ruid</varname> parameter</title>
modules/usrloc/doc/usrloc_admin.xml:863:modparam("usrloc", "db_obs_ruid", 1)
modules/usrloc/README:70:              3.32. db_obs_ruid (string)
modules/usrloc/README:151:   1.32. Set db_obs_ruid parameter
modules/usrloc/README:199:        3.32. db_obs_ruid (string)
modules/usrloc/README:312:   3.32. db_obs_ruid (string)
modules/usrloc/README:734:3.32. db_obs_ruid (string)
modules/usrloc/README:742:   Example 1.32. Set db_obs_ruid parameter
modules/usrloc/README:744:modparam("usrloc", "db_obs_ruid", 1)


> On 7/16/13 2:47 PM, Alex Hermann wrote:
> > #modparam("usrloc", "db_obs_ruid", 0) # param does not really exist


-- 
Alex Hermann



More information about the sr-users mailing list