From 4f7122c866005c9313fa3a1efd461878d4172748 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 19 Jul 2012 16:12:06 -0500 Subject: [PATCH] followup --- src/switch_ivr_originate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index f2ae8f0f71..efe855b565 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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) ) { (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) || (oglobals->early_ok && switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_MEDIA)) || (oglobals->ring_ready && oglobals->return_ring_ready && len == 1 &&