Module: sip-router
Branch: master
Commit: 8a7a06f4d9c78f6da0558806d988c817fd6d0018
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8a7a06f…
Author: Iñaki Baz Castillo <ibc(a)aliax.net>
Committer: Iñaki Baz Castillo <ibc(a)aliax.net>
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.
---
etc/kamailio.cfg | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index f4eaa4f..efcce99 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