Strange, looked further in the code and seems all ok, no error messages -- I will try to troubleshoot when I get a chance to test with tcp phones.
Meanwhile, can you test the following variant and see what is printed:

	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");
                $var(conidx) = 10 + $var(conid);
		xlog("L_INFO", "connection id added with 10 is: $var(conidx)\n");
	}

Want to see if it is set initially to empty string or an integer value that is not properly converted to string in the xlog. This time you can paste here the three log messages printed from script along with the one from the source code which looks like:

Jul  1 13:10:20 debian10 kamailio[5445]: 12(5459) DEBUG: {1 1 INVITE 1c6ffc5e1998-0pcb8iktd8rw@snomSoft} <core> [core/tcp_main.c:1670]: _tcpconn_find(): found connection by peer address (id: 1)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.