]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
wait forever when you call a pickup endpoint by itself
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 20:49:34 +0000 (15:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 20:49:39 +0000 (15:49 -0500)
src/switch_ivr_originate.c

index 0a9c82eff7328b2d71e2c1723be111e84c89ecb3..f2ae8f0f718a4184637bf792efd969c5679472c2 100644 (file)
@@ -753,7 +753,7 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
                }
        }
 
-       if (oglobals->hups + pickups == len) {
+       if (oglobals->hups > 0 && oglobals->hups + pickups == len) {
                rval = 0;
        } else {
                rval = 1;