2
0
Эх сурвалжийг харах

misc/examples: check return code for has_totag() in kemi lua script

Daniel-Constantin Mierla 6 жил өмнө
parent
commit
0d869c90ef

+ 1 - 1
misc/examples/kemi/kamailio-basic-kemi-lua.lua

@@ -299,7 +299,7 @@ function ksr_route_natmanage()
 	KSR.rtpproxy.rtpproxy_manage("co");
 
 	if KSR.siputils.is_request()>0 then
-		if not KSR.siputils.has_totag() then
+		if KSR.siputils.has_totag()<0 then
 			if KSR.tmx.t_is_branch_route()>0 then
 				KSR.rr.add_rr_param(";nat=yes");
 			end