This must be done using Lync Management Shell.
$w = New-CsRgsPrompt -TextToSpeechPrompt "Announcement to caller"
$y = New-CsRgsCallAction -Prompt $w -Action Terminate
$z = Get-CsRgsQueue -Identity service:ApplicationServer:<pool-FQDN> -Name "<Queue-name>"
$z.OverflowAction = $y
$z.OverflowCandidate = "NewestCall"
$z.OverflowThreshold = "2"
Set-CsRgsQueue -Instance $z
Speaking of this, giving an announcement to callers before timeout disconnect can be done this way.
$w = New-CsRgsPrompt -TextToSpeechPrompt "Announcement to caller"Happy shell'ing
$y = New-CsRgsCallAction -Prompt $w -Action Terminate
$z = Get-CsRgsQueue -Identity service:ApplicationServer:<pool-FQDN> -Name "<Queue-name>"
$z.TimeoutAction = $y
$z.TimeoutThreshold = "60"
Set-CsRgsQueue -Instance $z