|
@@ -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);
|