Skip to content

Commit

Permalink
DEV-4021
Browse files Browse the repository at this point in the history
  • Loading branch information
i.navrotskyj committed Jul 12, 2024
1 parent a82a857 commit 29b1c2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions queue/call_predict.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ func (queue *PredictCallQueue) runOfferingAgents(attempt *Attempt, mCall call_ma
}
}

// todo
if attempt.BridgedAt() == 0 && agentCall.HangupAt() == 0 {
attempt.Log("agent call is active")
agentCall.Hangup(model.CALL_HANGUP_ORIGINATOR_CANCEL, false, nil)
}

if agentCall.BridgeAt() == 0 {
agentCause := agentCall.HangupCause()
if agentCause == model.CALL_HANGUP_ORIGINATOR_CANCEL || agentCause == model.CALL_HANGUP_LOSE_RACE {
Expand Down

0 comments on commit 29b1c2d

Please sign in to comment.