misc/examples/kemi: make reply code integer everywhere
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 13 Apr 2020 10:14:52 +0000 (12:14 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 13 Apr 2020 10:14:52 +0000 (12:14 +0200)
misc/examples/kemi/kamailio-basic-kemi-jsdt.js
misc/examples/kemi/kamailio-basic-kemi-lua.lua
misc/examples/kemi/kamailio-basic-kemi-sqlang.sq

index 040af86..7cc880f 100644 (file)
@@ -219,10 +219,10 @@ function ksr_route_location()
        if (rc<0) {
                KSR.tm.t_newtran();
                if (rc==-1 || rc==-3) {
-                       KSR.sl.send_reply("404", "Not Found");
+                       KSR.sl.send_reply(404, "Not Found");
                        KSR.x.exit();
                } else if (rc==-2) {
-                       KSR.sl.send_reply("405", "Method Not Allowed");
+                       KSR.sl.send_reply(405, "Method Not Allowed");
                        KSR.x.exit();
                }
        }
index b28eea0..4be9b13 100644 (file)
@@ -220,10 +220,10 @@ function ksr_route_location()
        if rc<0 then
                KSR.tm.t_newtran();
                if rc==-1 or rc==-3 then
-                       KSR.sl.send_reply("404", "Not Found");
+                       KSR.sl.send_reply(404, "Not Found");
                        KSR.x.exit();
                elseif rc==-2 then
-                       KSR.sl.send_reply("405", "Method Not Allowed");
+                       KSR.sl.send_reply(405, "Method Not Allowed");
                        KSR.x.exit();
                end
        end
index b1c3ae4..4926ec8 100644 (file)
@@ -223,10 +223,10 @@ function ksr_route_location()
        if (rc<0) {
                KSR.tm.t_newtran();
                if (rc==-1 || rc==-3) {
-                       KSR.sl.send_reply("404", "Not Found");
+                       KSR.sl.send_reply(404, "Not Found");
                        KSR.x.exit();
                } else if (rc==-2) {
-                       KSR.sl.send_reply("405", "Method Not Allowed");
+                       KSR.sl.send_reply(405, "Method Not Allowed");
                        KSR.x.exit();
                }
        }