From: Anthony Minessale Date: Thu, 19 Jul 2012 21:12:06 +0000 (-0500) Subject: followup X-Git-Tag: v1.2.0~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f7122c866005c9313fa3a1efd461878d4172748;p=thirdparty%2Ffreeswitch.git followup --- 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 &&