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

Author: IƱaki Baz Castillo <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Thu Aug 16 16:13:50 2012 +0200

Add Record-Route for in-dialog NOTIFY as per RFC 6665.
(cherry picked from commit d661028060369e702f5882b6492040bd71fb900a)

---

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

diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index e6f20dc..1dd4b21 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) {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to