Hello,
I have a few gateways with lcr_gw.transport = 1|2|3
The point is that transport is always filled it with some not NULL value.
In config script I do from_any_gw($si, 0). Kamailio version is 3.3.
According to
http://kamailio.org/docs/modules/3.3.x/modules/lcr.html#id2512701 :
0 = ANY so it should match gateway with this IP address no matter what
the transport is.
But in reality that's not what the lcr_mod.c does:
/* Store tag and flags and return result */
if ((res != NULL) &&
((res->transport == transport) ||
((res->transport == PROTO_NONE) && (transport == PROTO_UDP)))) {
LM_DBG("request game from gw\n");
if (tag_avp_param) {
Shouldn't it ignore res->transport if transport == PROTO_NONE?
And what is the last check for: (res->transport == PROTO_NONE) &&
(transport == PROTO_UDP) ?
Thanks in advance.
Does anyone know of any issues running usrloc with DB backing
('location') in a multi-master DB-replicated environment? I am
referring to plain usrloc, not p_usrloc.
I have such an environment set up with db_mode = 1 (immediate
write-through) and have run into a problem where Kamailio occasionally
stops writing to the location table for no apparent reason. I am
wondering if this is because another Kamailio instance bound to the
secondary replica is performing a DB sync as well, and at some point
they collide in some sort of race condition. Would db_mode 2 fix?
Would anything fix? Is this even the problem?
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/