Skip to content

Commit

Permalink
sip-ua: dialogs can also be formed with SUBSCRIBE
Browse files Browse the repository at this point in the history
  • Loading branch information
utsl42 authored and kbalt committed Jun 28, 2024
1 parent 78fcffa commit f248824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sip-ua/src/dialog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Dialog {
) -> Result<OutgoingResponse> {
let mut response = self.endpoint.create_response(request, code, reason);

if request.line.method == Method::INVITE {
if request.line.method == Method::INVITE || request.line.method == Method::SUBSCRIBE {
let _ = request
.headers
.clone_into(&mut response.msg.headers, Name::RECORD_ROUTE);
Expand Down

0 comments on commit f248824

Please sign in to comment.