Description

Both doc's of master and 5.4 branches mention parameter that is missing from a code https://kamailio.org/docs/modules/5.4.x/modules/usrloc.html#usrloc.p.ka_logmsg

3.56. ka_logmsg (str)
The formatted log specification to be added to the message printed when the keepalive is received and roundtrip time is computed. The log message starts with "keepalive roundtrip: %u.%06u sec - ruid [%.*s]", then concatenates the value of this parameter and the end of line.

but seems it's missing in a code

[root@v0p1356-dispatcher kamailio]# kamailio -c
 0(18199) ERROR: <core> [core/modparam.c:165]: set_mod_param_regex(): parameter <ka_logmsg> of type <1:string> not found in module <usrloc>
 0(18199) CRITICAL: <core> [core/cfg.y:3592]: yyerror_at(): parse error in config file kamailio-my.cfg, line 73, column 69: Can't set module parameter
ERROR: bad config file (1 errors)
 0(18199) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
[root@v0p1356-dispatcher kamailio]# 

Reproduction

Add

modparam("usrloc", "ka_logmsg", " to-uri: [$tu] remote-addr: [$sas]")

to kamailio.cfg

Log Messages

[root@v0p1356-dispatcher kamailio]# kamailio -c
 0(18199) ERROR: <core> [core/modparam.c:165]: set_mod_param_regex(): parameter <ka_logmsg> of type <1:string> not found in module <usrloc>
 0(18199) CRITICAL: <core> [core/cfg.y:3592]: yyerror_at(): parse error in config file kamailio-my.cfg, line 73, column 69: Can't set module parameter
ERROR: bad config file (1 errors)
 0(18199) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized

Additional Information

[root@v0p1356-dispatcher kamailio]#  kamailio -v
version: kamailio 5.4.0 (x86_64/linux) 6c4fce
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 6c4fce
compiled on 17:15:32 Jul 29 2020 with gcc 4.8.5
[root@v0p1356-dispatcher kamailio]#

Centos 7
Linux v0p1356-dispatcher 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.