diff --git a/apps/app_queue.c b/apps/app_queue.c index fd6d3b27ddad87e8fafb02a727175e7356ce1c2e..166237f91d599fc8c6bea95b25f002b0b9e17a47 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2494,6 +2494,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce char vars[2048]; int forwardsallowed = 1; int callcompletedinsl; + int noption = 0; memset(&bridge_config, 0, sizeof(bridge_config)); time(&now); @@ -2526,12 +2527,16 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce (*go_on)++; else *go_on = qe->parent->membercount; + noption = 1; break; case 'i': forwardsallowed = 0; break; } + if(!noption) + *go_on = -1; + /* Hold the lock while we setup the outgoing calls */ if (use_weight) AST_LIST_LOCK(&queues);