Ver código fonte

misc/examples: fixed condition to check method UPDATE

Daniel-Constantin Mierla 8 anos atrás
pai
commit
c736091237

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

@@ -89,7 +89,7 @@ function ksr_route_relay()
 	// - serial forking, RTP relaying handling, a.s.o.
 	var METHOD = KSR.pv.get("$rm");
 	if (METHOD=="INVITE" || METHOD=="BYE" || METHOD=="SUBSCRIBE"
-			|| METHOD="UPDATE") {
+			|| METHOD=="UPDATE") {
 		if (KSR.tm.t_is_set("branch_route")<0) {
 			KSR.tm.t_on_branch("ksr_branch_manage");
 		}

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

@@ -90,7 +90,7 @@ function ksr_route_relay()
 	// - serial forking, RTP relaying handling, a.s.o.
 	local METHOD = KSR.pv.get("$rm");
 	if (METHOD=="INVITE" || METHOD=="BYE" || METHOD=="SUBSCRIBE"
-			|| METHOD="UPDATE") {
+			|| METHOD=="UPDATE") {
 		if (KSR.tm.t_is_set("branch_route")<0) {
 			KSR.tm.t_on_branch("ksr_branch_manage");
 		}