Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log failed call transfers as warnings. #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/sip/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,11 +885,11 @@ func (c *inboundCall) transferCall(ctx context.Context, transferTo string, dialt

err = c.cc.TransferCall(ctx, transferTo)
if err != nil {
c.log.Infow("inbound call failed to transfer", "error", err, "transferTo", transferTo)
c.log.Warnw("inbound call failed to transfer", err, "transferTo", transferTo)
return err
}

c.log.Infow("inbound call tranferred", "transferTo", transferTo)
c.log.Infow("inbound call transferred", "transferTo", transferTo)

// Give time for the peer to hang up first, but hang up ourselves if this doesn't happen within 1 second
time.AfterFunc(referByeTimeout, func() { c.Close() })
Expand Down
4 changes: 2 additions & 2 deletions pkg/sip/outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ func (c *outboundCall) transferCall(ctx context.Context, transferTo string, dial

err = c.cc.transferCall(ctx, transferTo)
if err != nil {
c.log.Infow("outound call failed to transfer", "error", err, "transferTo", transferTo)
c.log.Warnw("outbound call failed to transfer", err, "transferTo", transferTo)
return err
}

c.log.Infow("outbound call tranferred", "transferTo", transferTo)
c.log.Infow("outbound call transferred", "transferTo", transferTo)

// Give time for the peer to hang up first, but hang up ourselves if this doesn't happen within 1 second
time.AfterFunc(referByeTimeout, func() { c.CloseWithReason(CallHangup, "call transferred", livekit.DisconnectReason_CLIENT_INITIATED) })
Expand Down
Loading