From 64079331eaaa8fddd8bb8b83a88d64b147fdf0f3 Mon Sep 17 00:00:00 2001 From: Emir Aganovic Date: Sun, 8 Sep 2024 14:01:01 +0200 Subject: [PATCH] fix: comment that Do on dialog client is not providing CANCEL --- dialog_client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dialog_client.go b/dialog_client.go index ecd062b..e1fdcc0 100644 --- a/dialog_client.go +++ b/dialog_client.go @@ -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 {