[sr-dev] git:master:0d869c90: misc/examples: check return code for has_totag() in kemi lua script
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 5 08:57:32 CET 2018
Module: kamailio
Branch: master
Commit: 0d869c90eff536aea0f42c7e368535fec344f2f2
URL: https://github.com/kamailio/kamailio/commit/0d869c90eff536aea0f42c7e368535fec344f2f2
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/0d869c90eff536aea0f42c7e368535fec344f2f2.diff
Patch: https://github.com/kamailio/kamailio/commit/0d869c90eff536aea0f42c7e368535fec344f2f2.patch
---
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
More information about the sr-dev
mailing list