瀏覽代碼

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 月之前
父節點
當前提交
132e5324bf
共有 1 個文件被更改,包括 3 次插入3 次删除
  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)
 	# - remove preloaded route headers
 	remove_hf("Route");
-	if (is_method("INVITE|SUBSCRIBE")) {
+	if (is_method("INVITE|SUBSCRIBE|REFER")) {
 		record_route();
 	}
 
@@ -678,8 +678,8 @@ route[WITHINDLG] {
 		} else if ( is_method("ACK") ) {
 			# ACK is forwarded statelessly
 			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();
 		}
 		route(RELAY);