Browse code

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

IƱaki Baz Castillo authored on 16/08/2012 14:13:50
Showing 1 changed files
... ...
@@ -574,10 +574,14 @@ route[WITHINDLG] {
574 574
 				setflag(FLT_ACC); # do accounting ...
575 575
 				setflag(FLT_ACCFAILED); # ... even if the transaction fails
576 576
 			}
577
-			if ( is_method("ACK") ) {
577
+			else if ( is_method("ACK") ) {
578 578
 				# ACK is forwarded statelessy
579 579
 				route(NATMANAGE);
580 580
 			}
581
+			else if ( is_method("NOTIFY") ) {
582
+				# Add Record-Route for in-dialog NOTIFY as per RFC 6665.
583
+				record_route();
584
+			}
581 585
 			route(RELAY);
582 586
 		} else {
583 587
 			if (is_method("SUBSCRIBE") && uri == myself) {