<p></p>
<p>Function "tcp_get_conid" from tcpops module does not write the conid into target variable</p>
<p>I followed the documentation on <a href="https://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_get_conid" rel="nofollow">https://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_get_conid</a></p>
<p>And with debug enabled, you see the connection is found:</p>
<p><code>Jun 30 14:13:47 kamailio-dev-2 /usr/sbin/kamailio[121285]: DEBUG: <core> [core/tcp_main.c:1670]: _tcpconn_find(): found connection by peer address (id: 14)</code></p>
<p>But the given variable $var(conid) is always empty.</p>
<p>After a lookup("location") the code is like:</p>
<pre><code>if(tcp_get_conid("$dd:$dp", "$var(conid)")) {
xlog("connection id is: $var(conid)\n");
}
</code></pre>
<p>But the given variable $var(conid) is always empty.</p>
<p>Version used: kamailio 5.3.5 (x86_64/linux)</p>
<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/2382">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNSOE7ZPHDQK7F2W5DRZH2FNANCNFSM4OMJVS2Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNPTNZHPLBLNBXFKEDRZH2FNA5CNFSM4OMJVS22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JVDHGXQ.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/2382",
"url": "https://github.com/kamailio/kamailio/issues/2382",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>