]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
followup
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 21:12:06 +0000 (16:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 21:12:33 +0000 (16:12 -0500)
src/switch_ivr_originate.c

index f2ae8f0f718a4184637bf792efd969c5679472c2..efe855b565d1ed8624cf26553e8a77aa3a220a94 100644 (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)
                        ) {
                        (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 &&