Преглед изворни кода

misc/examples/kemi: make reply code integer everywhere

Daniel-Constantin Mierla пре 5 година
родитељ
комит
28be94ea97

+ 2 - 2
misc/examples/kemi/kamailio-basic-kemi-jsdt.js

@@ -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();
 		}
 	}

+ 2 - 2
misc/examples/kemi/kamailio-basic-kemi-lua.lua

@@ -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

+ 2 - 2
misc/examples/kemi/kamailio-basic-kemi-sqlang.sq

@@ -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();
 		}
 	}