Hi,
Kamailio 1.5: When having gw.tag column set to NULL in db (which seems to be allowed according to db schema), then next_gw() prefixes the R-URI user with the string "NULL". Setting it to empty string (''), nothing is prefixed. I'd expect that from a value of NULL as well. Could anyone please confirm this?
Also, in http://kamailio.org/docs/modules/1.5.x/lcr.html the parameter prefix_mode is missing. It's available in README.lcr though, so probably the page is out of date?
Andreas
Andreas Granig writes:
Kamailio 1.5: When having gw.tag column set to NULL in db (which seems to be allowed according to db schema), then next_gw() prefixes the R-URI user with the string "NULL". Setting it to empty string (''), nothing is prefixed. I'd expect that from a value of NULL as well. Could anyone please confirm this?
andreas,
i just tested with sip-router lcr module and no "NULL" prefix was inserted when taga in db was NULL. there should not be any change in this regard to k 1.5.
Also, in http://kamailio.org/docs/modules/1.5.x/lcr.html the parameter prefix_mode is missing. It's available in README.lcr though, so probably the page is out of date?
what is prefix_mode supposed to do? i don't find it in source code.
-- juha
Hi Juha,
Juha Heinanen wrote:
i just tested with sip-router lcr module and no "NULL" prefix was inserted when taga in db was NULL. there should not be any change in this regard to k 1.5.
Also, in http://kamailio.org/docs/modules/1.5.x/lcr.html the parameter prefix_mode is missing. It's available in README.lcr though, so probably the page is out of date?
what is prefix_mode supposed to do? i don't find it in source code.
Uh, sorry, its Kamailio 1.4.3, my fault :)
Anyways, there it says:
1.3.24. prefix_mode (integer)
Defines the prefix mode: string or regular expression. When set to 0, the prefix mode is set to string and matching is implemented as a simple string comparison. When set to 1, the prefix mode is set to regex and matching is implemented as regular expression match.
Has this feature been removed from 1.5?
Andreas
Andreas Granig writes:
Has this feature been removed from 1.5?
yes, and it has been documented on page:
http://www.kamailio.org/dokuwiki/doku.php/features:new-in-1.5.x
-- juha