Browse Source

misc/examples/kemi: small update to kamailio-basic-kemi-jsdt.js

Daniel-Constantin Mierla 2 years ago
parent
commit
10aafffc86
1 changed files with 6 additions and 6 deletions
  1. 6 6
      misc/examples/kemi/kamailio-basic-kemi-jsdt.js

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

@@ -34,11 +34,6 @@ function ksr_request_route()
 		return;
 		return;
 	}
 	}
 
 
-	// handle requests within SIP dialogs
-	ksr_route_withindlg();
-
-	// -- only initial requests (no To tag)
-
 	// handle retransmissions
 	// handle retransmissions
 	if (!KSR.is_ACK()) {
 	if (!KSR.is_ACK()) {
 		if (KSR.tmx.t_precheck_trans()>0) {
 		if (KSR.tmx.t_precheck_trans()>0) {
@@ -48,6 +43,11 @@ function ksr_request_route()
 		if (KSR.tm.t_check_trans()==0) { return; }
 		if (KSR.tm.t_check_trans()==0) { return; }
 	}
 	}
 
 
+	// handle requests within SIP dialogs
+	ksr_route_withindlg();
+
+	// -- only initial requests (no To tag)
+
 	// authentication
 	// authentication
 	ksr_route_auth();
 	ksr_route_auth();
 
 
@@ -153,7 +153,7 @@ function ksr_route_reqinit()
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 
-	if (KSR.sanity.sanity_check(1511, 7)<0) {
+	if (KSR.sanity.sanity_check(17895, 7)<0) {
 		KSR.err("Malformed SIP message from "
 		KSR.err("Malformed SIP message from "
 				+ KSR.kx.get_srcip() + ":" + KSR.kx.get_srcport() + "\n");
 				+ KSR.kx.get_srcip() + ":" + KSR.kx.get_srcport() + "\n");
 		KSR.x.exit();
 		KSR.x.exit();