[sr-dev] git:master:10aafffc: misc/examples/kemi: small update to kamailio-basic-kemi-jsdt.js

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 8 08:40:25 CET 2022


Module: kamailio
Branch: master
Commit: 10aafffc86e872de1ad83177529e3a417449b294
URL: https://github.com/kamailio/kamailio/commit/10aafffc86e872de1ad83177529e3a417449b294

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-12-08T08:36:02+01:00

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

---

Modified: misc/examples/kemi/kamailio-basic-kemi-jsdt.js

---

Diff:  https://github.com/kamailio/kamailio/commit/10aafffc86e872de1ad83177529e3a417449b294.diff
Patch: https://github.com/kamailio/kamailio/commit/10aafffc86e872de1ad83177529e3a417449b294.patch

---

diff --git a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
index 9949739d94..ed1e523be5 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
+++ b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
@@ -34,11 +34,6 @@ function ksr_request_route()
 		return;
 	}
 
-	// handle requests within SIP dialogs
-	ksr_route_withindlg();
-
-	// -- only initial requests (no To tag)
-
 	// handle retransmissions
 	if (!KSR.is_ACK()) {
 		if (KSR.tmx.t_precheck_trans()>0) {
@@ -48,6 +43,11 @@ function ksr_request_route()
 		if (KSR.tm.t_check_trans()==0) { return; }
 	}
 
+	// handle requests within SIP dialogs
+	ksr_route_withindlg();
+
+	// -- only initial requests (no To tag)
+
 	// authentication
 	ksr_route_auth();
 
@@ -153,7 +153,7 @@ function ksr_route_reqinit()
 		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.kx.get_srcip() + ":" + KSR.kx.get_srcport() + "\n");
 		KSR.x.exit();




More information about the sr-dev mailing list