Skip to content

Commit

Permalink
fix: ACK request does not convert the Record-Route headers into Route…
Browse files Browse the repository at this point in the history
… headers

Signed-off-by: hateeyan <[email protected]>
  • Loading branch information
hateeyan authored and emiago committed Jun 19, 2024
1 parent c3a66e2 commit cbd22c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sip/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ func NewAckRequest(inviteRequest *Request, inviteResponse *Response, body []byte
// https://datatracker.ietf.org/doc/html/rfc2543#section-6.29
hdrs := inviteResponse.GetHeaders("Record-Route")
for i := len(hdrs) - 1; i >= 0; i-- {
h := hdrs[i].headerClone()
ackRequest.AppendHeader(h)
recordRoute := hdrs[i]
ackRequest.AppendHeader(NewHeader("Route", recordRoute.Value()))
}
}

Expand Down

0 comments on commit cbd22c0

Please sign in to comment.