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
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev