Module: kamailio
Branch: master
Commit: cfc9d69435b4bbc53dbe6748e0d22603760c48fd
URL:
https://github.com/kamailio/kamailio/commit/cfc9d69435b4bbc53dbe6748e0d2260…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2025-01-21T18:15:19+01:00
etc/kamailio.org: do record route for REFER
- it creates a subscription dialog
-
https://datatracker.ietf.org/doc/html/rfc3515#section-2
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/cfc9d69435b4bbc53dbe6748e0d2260…
Patch:
https://github.com/kamailio/kamailio/commit/cfc9d69435b4bbc53dbe6748e0d2260…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index ea0aa10ca7e..a61227d4173 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -578,7 +578,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();
}
@@ -700,8 +700,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);