Skip to content

Commit dd142da

Browse files
authored
Disable the second ACK channel as well. (#473)
1 parent 789bca4 commit dd142da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sip/inbound.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ func (c *inboundCall) handleInvite(ctx context.Context, req *sip.Request, trunkI
834834
return psrpc.NewErrorf(psrpc.DeadlineExceeded, "media timeout")
835835
case <-ackReceived:
836836
ackTimeout = nil // all good, disable timeout
837+
ackReceived = nil
837838
case <-ackTimeout:
838839
// Only warn, the other side still thinks the call is active, media may be flowing.
839840
c.log.Warnw("Call accepted, but no ACK received", errNoACK)

0 commit comments

Comments
 (0)