<p></p>
<h3>Description</h3>
<p>Both doc's of master and 5.4 branches mention parameter that is missing from a code <a href="https://kamailio.org/docs/modules/5.4.x/modules/usrloc.html#usrloc.p.ka_logmsg" rel="nofollow">https://kamailio.org/docs/modules/5.4.x/modules/usrloc.html#usrloc.p.ka_logmsg</a></p>
<blockquote>
<p>3.56. ka_logmsg (str)<br>
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.</p>
</blockquote>
<p>but seems it's missing in a code</p>
<pre><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]#
</code></pre>
<h4>Reproduction</h4>
<p>Add</p>
<p><code>modparam("usrloc", "ka_logmsg", " to-uri: [$tu] remote-addr: [$sas]")</code></p>
<p>to kamailio.cfg</p>
<h4>Log Messages</h4>
<pre><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
</code></pre>
<h3>Additional Information</h3>
<pre><code>[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]#
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>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
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2440">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIPCVAIO2E2Z437MG3SAPXELANCNFSM4P6OZHOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMNNESRNUDA4XYAEK3SAPXELA5CNFSM4P6OZHOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KDQQ34Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2440",
"url": "https://github.com/kamailio/kamailio/issues/2440",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>