Module: kamailio
Branch: master
Commit: 1c7fc2feccba9ae1ad1f97e6fdd296f83dd5b097
URL:
https://github.com/kamailio/kamailio/commit/1c7fc2feccba9ae1ad1f97e6fdd296f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-04T13:50:32+02:00
misc/examples/kemi: fixed setting the failure route callback
---
Modified: misc/examples/kemi/kamailio-basic-kemi-jsdt.js
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
Modified: misc/examples/kemi/kamailio-basic-kemi-python.py
Modified: misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
---
Diff:
https://github.com/kamailio/kamailio/commit/1c7fc2feccba9ae1ad1f97e6fdd296f…
Patch:
https://github.com/kamailio/kamailio/commit/1c7fc2feccba9ae1ad1f97e6fdd296f…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
index 3d434893b4..5a051ad19f 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
+++ b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
@@ -102,7 +102,7 @@ function ksr_route_relay()
if (METHOD=="INVITE") {
if (KSR.tm.t_is_set("failure_route")<0) {
- KSR.tm.t_on_failure("MANAGE_FAILURE");
+ KSR.tm.t_on_failure("ksr_failure_manage");
}
}
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index 6a1b8d1f44..e92f4ec995 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -104,7 +104,7 @@ function ksr_route_relay()
if KSR.pv.get("$rm")=="INVITE" then
if KSR.tm.t_is_set("failure_route")<0 then
- KSR.tm.t_on_failure("MANAGE_FAILURE");
+ KSR.tm.t_on_failure("ksr_failure_manage");
end
end
diff --git a/misc/examples/kemi/kamailio-basic-kemi-python.py
b/misc/examples/kemi/kamailio-basic-kemi-python.py
index 00b9bfa9f9..fa3c4707d6 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-python.py
+++ b/misc/examples/kemi/kamailio-basic-kemi-python.py
@@ -131,7 +131,7 @@ def ksr_route_relay(self, msg):
if KSR.pv.get("$rm")=="INVITE" :
if KSR.tm.t_is_set("failure_route")<0 :
- KSR.tm.t_on_failure("MANAGE_FAILURE");
+ KSR.tm.t_on_failure("ksr_failure_manage");
if KSR.tm.t_relay()<0 :
KSR.sl.sl_reply_error();
diff --git a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
index 2e4d44f4fc..9bf6c81f7a 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
+++ b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
@@ -105,7 +105,7 @@ function ksr_route_relay()
if (METHOD=="INVITE") {
if (KSR.tm.t_is_set("failure_route")<0) {
- KSR.tm.t_on_failure("MANAGE_FAILURE");
+ KSR.tm.t_on_failure("ksr_failure_manage");
}
}