Module: kamailio
Branch: master
Commit: 6035c30aea72d06bf08883677d45f4eb0019f189
URL:
https://github.com/kamailio/kamailio/commit/6035c30aea72d06bf08883677d45f4e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-23T13:48:01+01:00
misc/examples/kemi: fixed function name to get From-URI
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff:
https://github.com/kamailio/kamailio/commit/6035c30aea72d06bf08883677d45f4e…
Patch:
https://github.com/kamailio/kamailio/commit/6035c30aea72d06bf08883677d45f4e…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index 0ddfc82c1e..bddabbaa89 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -163,13 +163,13 @@ function ksr_route_reqinit()
if KSR.htable.sht_match_name("ipban", "eq", srcip) > 0 then
-- ip is already blocked
KSR.dbg("request from blocked IP - " .. KSR.kx.get_method()
- .. " from " .. KSR.kx.gete_furi() .. " (IP:"
+ .. " from " .. KSR.kx.get_furi() .. " (IP:"
.. srcip .. ":" .. KSR.kx.get_srcport() .. ")\n");
KSR.x.exit();
end
if KSR.pike.pike_check_req() < 0 then
KSR.err("ALERT: pike blocking " .. KSR.kx.get_method()
- .. " from " .. KSR.kx.gete_furi() .. " (IP:"
+ .. " from " .. KSR.kx.get_furi() .. " (IP:"
.. srcip .. ":" .. KSR.kx.get_srcport() .. ")\n");
KSR.htable.sht_seti("ipban", srcip, 1);
KSR.x.exit();