Skip to content

Commit

Permalink
Fix Expires refersh for Register.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Mar 20, 2021
1 parent 7975f69 commit c10e7e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/ua/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func (r *Register) SendRegister(expires uint32) error {
cseq, _ := (*r.request).CSeq()
cseq.SeqNo++
cseq.MethodName = sip.REGISTER

(*r.request).RemoveHeader("Expires")
// replace Expires header.
expiresHeader := sip.Expires(expires)
(*r.request).AppendHeader(&expiresHeader)
}

var authorizer *auth.ClientAuthorizer = nil
Expand Down

0 comments on commit c10e7e9

Please sign in to comment.