From 10aafffc86e872de1ad83177529e3a417449b294 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 7 Dec 2022 14:06:18 +0100 Subject: [PATCH] misc/examples/kemi: small update to kamailio-basic-kemi-jsdt.js --- misc/examples/kemi/kamailio-basic-kemi-jsdt.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js index 9949739d949..ed1e523be5c 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();