[sr-dev] [kamailio/kamailio] Function "tcp_get_conid" from tcpops module does not write the conid into given target variable (#2382)

kvrban notifications at github.com
Tue Jun 30 16:38:14 CEST 2020


Function "tcp_get_conid" from tcpops module does not write the conid into target variable

I followed the documentation on https://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_get_conid

And with debug enabled, you see the connection is found:

`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)`

But the given variable $var(conid) is always empty.

After a lookup("location") the code is like: 

```
if(tcp_get_conid("$dd:$dp", "$var(conid)")) {
		xlog("connection id is: $var(conid)\n");
}
```
But the given variable $var(conid) is always empty.

Version used: kamailio 5.3.5 (x86_64/linux) 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200630/3f71486a/attachment-0001.html>


More information about the sr-dev mailing list