misc/examples/kemi: fixed setting the failure route callback
authorDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 4 Aug 2017 11:50:05 +0000 (13:50 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 4 Aug 2017 11:50:32 +0000 (13:50 +0200)
misc/examples/kemi/kamailio-basic-kemi-jsdt.js
misc/examples/kemi/kamailio-basic-kemi-lua.lua
misc/examples/kemi/kamailio-basic-kemi-python.py
misc/examples/kemi/kamailio-basic-kemi-sqlang.sq

index 3d43489..5a051ad 100644 (file)
@@ -102,7 +102,7 @@ function ksr_route_relay()
 
        if (METHOD=="INVITE") {
                if (KSR.tm.t_is_set("failure_route")<0) {
 
        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");
                }
        }
 
                }
        }
 
index 6a1b8d1..e92f4ec 100644 (file)
@@ -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
 
        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
 
                end
        end
 
index 00b9bfa..fa3c470 100644 (file)
@@ -131,7 +131,7 @@ class kamailio:
 
         if KSR.pv.get("$rm")=="INVITE" :
             if KSR.tm.t_is_set("failure_route")<0 :
 
         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();
 
         if KSR.tm.t_relay()<0 :
             KSR.sl.sl_reply_error();
index 2e4d44f..9bf6c81 100644 (file)
@@ -105,7 +105,7 @@ function ksr_route_relay()
 
        if (METHOD=="INVITE") {
                if (KSR.tm.t_is_set("failure_route")<0) {
 
        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");
                }
        }
 
                }
        }