[sr-dev] git:3.3: Process CANCEL before in-dialog requests. This prevents issues with some devices sending buggy CANCEL with To-tag when cancelling an initial INVITE .

Daniel-Constantin Mierla miconda at gmail.com
Sun Sep 2 15:02:29 CEST 2012


Module: sip-router
Branch: 3.3
Commit: 20dacf5225e63fc8ff573272f41572f452272c7d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=20dacf5225e63fc8ff573272f41572f452272c7d

Author: Iñaki Baz Castillo <ibc at aliax.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Aug 16 16:17:51 2012 +0200

Process CANCEL before in-dialog requests. This prevents issues with some devices sending buggy CANCEL with To-tag when cancelling an initial INVITE.
(cherry picked from commit 8a7a06f4d9c78f6da0558806d988c817fd6d0018)

---

 etc/kamailio.cfg |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 1dd4b21..619f9ad 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -452,11 +452,6 @@ request_route {
 	# NAT detection
 	route(NATDETECT);
 
-	# handle requests within SIP dialogs
-	route(WITHINDLG);
-
-	### only initial requests (no To tag)
-
 	# CANCEL processing
 	if (is_method("CANCEL"))
 	{
@@ -465,6 +460,11 @@ request_route {
 		exit;
 	}
 
+	# handle requests within SIP dialogs
+	route(WITHINDLG);
+
+	### only initial requests (no To tag)
+
 	t_check_trans();
 
 	# authentication




More information about the sr-dev mailing list