[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
Wed Jul 1 13:16:16 CEST 2020


To reproduce, i installed a new Kamailio 5.3.5 from http://deb.kamailio.org/kamailio53 on a fresh debian 10 vm and only added:
```
--- kamailio.cfg	2020-06-22 14:21:22.000000000 +0200
+++ /home/kris/kamailio.cfg	2020-07-01 13:07:15.476661500 +0200
@@ -19,7 +19,7 @@
 # Several features can be enabled using '#!define WITH_FEATURE' directives:
 #
 # *** To run in debug mode:
-#     - define WITH_DEBUG
+#!define WITH_DEBUG
 #
 # *** To enable mysql:
 #     - define WITH_MYSQL
@@ -248,6 +248,7 @@
 loadmodule "cfg_rpc.so"
 loadmodule "acc.so"
 loadmodule "counters.so"
+loadmodule "tcpops.so"
 
 #!ifdef WITH_AUTH
 loadmodule "auth.so"
@@ -699,6 +700,11 @@
 		setflag(FLT_ACCMISSED);
 	}
 
+	xlog("L_INFO", "Contact found for user:$rU at $rd:$rp \n");
+	if(tcp_get_conid("$rd:$rp", "$var(conid)")) {
+		xlog("L_INFO", "connection id is: $var(conid)\n");
+	}
+
 	route(RELAY);
 	exit;
 }
root@
```
And $var(conid) is empty.

debug 3 lof file:
[debug3-log.txt](https://github.com/kamailio/kamailio/files/4857454/debug3-log.txt)





-- 
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#issuecomment-652357676
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200701/d0a960fc/attachment-0001.html>


More information about the sr-dev mailing list