[sr-dev] git:master: Add Record-Route for in-dialog NOTIFY as per RFC 6665.

Inaki Baz Castillo ibc at aliax.net
Thu Aug 16 16:18:47 CEST 2012


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

Author: Iñaki Baz Castillo <ibc at aliax.net>
Committer: Iñaki Baz Castillo <ibc at aliax.net>
Date:   Thu Aug 16 16:13:50 2012 +0200

Add Record-Route for in-dialog NOTIFY as per RFC 6665.

---

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

diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 03b5f43..f4eaa4f 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -574,10 +574,14 @@ route[WITHINDLG] {
 				setflag(FLT_ACC); # do accounting ...
 				setflag(FLT_ACCFAILED); # ... even if the transaction fails
 			}
-			if ( is_method("ACK") ) {
+			else if ( is_method("ACK") ) {
 				# ACK is forwarded statelessy
 				route(NATMANAGE);
 			}
+			else if ( is_method("NOTIFY") ) {
+				# Add Record-Route for in-dialog NOTIFY as per RFC 6665.
+				record_route();
+			}
 			route(RELAY);
 		} else {
 			if (is_method("SUBSCRIBE") && uri == myself) {




More information about the sr-dev mailing list