Skip to content

Commit

Permalink
fix: comment that Do on dialog client is not providing CANCEL
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Sep 8, 2024
1 parent ebf26a4 commit 6407933
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dialog_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ func (s *DialogClientSession) ReadRequest(req *sip.Request, tx sip.ServerTransac

// Do sends request and waits final response using Dialog rules
// For more control use TransactionRequest
//
// NOTE:
// It does not provide INVITE CANCEL as it could be REINVITE
// Use WaitAnswer when creating initial INVITE to have CANCEL sending.
func (s *DialogClientSession) Do(ctx context.Context, req *sip.Request) (*sip.Response, error) {
tx, err := s.TransactionRequest(ctx, req)
if err != nil {
Expand Down

0 comments on commit 6407933

Please sign in to comment.