Răsfoiți Sursa

etc/kamailio.org: do record route for REFER

- it creates a subscription dialog
- https://datatracker.ietf.org/doc/html/rfc3515#section-2

(cherry picked from commit cfc9d69435b4bbc53dbe6748e0d22603760c48fd)
Daniel-Constantin Mierla 7 luni în urmă
părinte
comite
132e5324bf
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      etc/kamailio.cfg

+ 3 - 3
etc/kamailio.cfg

@@ -561,7 +561,7 @@ request_route {
 	# record routing for dialog forming requests (in case they are routed)
 	# record routing for dialog forming requests (in case they are routed)
 	# - remove preloaded route headers
 	# - remove preloaded route headers
 	remove_hf("Route");
 	remove_hf("Route");
-	if (is_method("INVITE|SUBSCRIBE")) {
+	if (is_method("INVITE|SUBSCRIBE|REFER")) {
 		record_route();
 		record_route();
 	}
 	}
 
 
@@ -678,8 +678,8 @@ route[WITHINDLG] {
 		} else if ( is_method("ACK") ) {
 		} else if ( is_method("ACK") ) {
 			# ACK is forwarded statelessly
 			# ACK is forwarded statelessly
 			route(NATMANAGE);
 			route(NATMANAGE);
-		} else if ( is_method("NOTIFY") ) {
-			# Add Record-Route for in-dialog NOTIFY as per RFC 6665.
+		} else if ( is_method("NOTIFY|REFER") ) {
+			# Add Record-Route for in-dialog NOTIFY and REFER (RFC6665, RFC3515)
 			record_route();
 			record_route();
 		}
 		}
 		route(RELAY);
 		route(RELAY);