Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Mar 11, 2021
1 parent a1f1bfe commit f1d0f9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ func (s *Session) Accept(statusCode sip.StatusCode) {
}

response.AppendHeader(s.localURI.AsContactHeader())
response.SetBody(s.answer, true)

s.response = response
tx.Respond(response)

Expand All @@ -335,6 +337,7 @@ func (s *Session) Provisional(statusCode sip.StatusCode, reason string) {
} else {
sip.CopyHeaders("Content-Type", request, response)
}
response.SetBody(s.answer, true)
} else {
response = sip.NewResponseFromRequest(request.MessageID(), request, statusCode, reason, "")
}
Expand Down

0 comments on commit f1d0f9f

Please sign in to comment.