Module: kamailio
Branch: master
Commit: 0d869c90eff536aea0f42c7e368535fec344f2f2
URL:
https://github.com/kamailio/kamailio/commit/0d869c90eff536aea0f42c7e368535f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-05T08:17:01+01:00
misc/examples: check return code for has_totag() in kemi lua script
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff:
https://github.com/kamailio/kamailio/commit/0d869c90eff536aea0f42c7e368535f…
Patch:
https://github.com/kamailio/kamailio/commit/0d869c90eff536aea0f42c7e368535f…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index 295d502aa1..3c67942cf0 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/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