This commit is contained in:
Anthony Minessale 2012-07-19 16:12:06 -05:00
parent c55ac6c900
commit 4f7122c866
1 changed files with 3 additions and 0 deletions

View File

@ -701,6 +701,9 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
!switch_channel_test_flag(originate_status[i].peer_channel, CF_ORIGINATING) !switch_channel_test_flag(originate_status[i].peer_channel, CF_ORIGINATING)
) { ) {
(oglobals->hups)++; (oglobals->hups)++;
if (switch_channel_test_flag(originate_status[i].peer_channel, CF_PICKUP)) {
pickups--;
}
} else if ((switch_channel_test_flag(originate_status[i].peer_channel, CF_ANSWERED) || } else if ((switch_channel_test_flag(originate_status[i].peer_channel, CF_ANSWERED) ||
(oglobals->early_ok && switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_MEDIA)) || (oglobals->early_ok && switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_MEDIA)) ||
(oglobals->ring_ready && oglobals->return_ring_ready && len == 1 && (oglobals->ring_ready && oglobals->return_ring_ready && len == 1 &&