[SR-Users] Multiple LCR instances with LCR module

DanB danb.lists at gmail.com
Fri Mar 25 09:15:56 CET 2016


Hey Guys,

I was wondering if any of you use multiple LCR instances with LCR module
since I could see that the documentation allows it, however for some
reason the queries to load data (both on restart or kamcmd lcr.reload)
somehow hardcode the value of 1 inside:
"""
select
`gw_name`,`ip_addr`,`port`,`uri_scheme`,`transport`,`params`,`hostname`,`strip`,`prefix`,`tag`,`flags`,`defunct`,`id`
from `lcr_gw` where `lcr_id`=0
select
`gw_name`,`ip_addr`,`port`,`uri_scheme`,`transport`,`params`,`hostname`,`strip`,`prefix`,`tag`,`flags`,`defunct`,`id`
from `lcr_gw` where `lcr_id`=1
select `id`,`prefix`,`from_uri`,`stopper`,`enabled`,`request_uri` from
`lcr_rule` where `lcr_id`=1
select `rule_id`,`gw_id`,`priority`,`weight` from `lcr_rule_target`
where `lcr_id`=1
"""

My kamailio version:
"""
# kamailio -V
version: kamailio 4.3.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.9.2
"""

Many thanks in advance for any kind of tip!

DanB






More information about the sr-users mailing list