aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-17 02:59:50 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-17 02:59:50 +0000
commit32ef12ef18ff2013e140ce7b09350210d9c8b292 (patch)
treec08f50aefb34d5152e6d235a33b802ed946b2dc3 /apps
parent3e0babd92c8559b713b2fa97487ae1992407fee4 (diff)
Make the 'i' option of Queue actually work. (issue #8986 reported by utis)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55129 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 22da470cf..7f5e9ca0c 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1929,7 +1929,10 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
if (!ast_strlen_zero(o->chan->call_forward) && !forwardsallowed) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Forwarding %s to '%s' prevented.\n", in->name, o->chan->call_forward);
- winner = o->chan = NULL;
+ numnochan++;
+ do_hang(o);
+ winner = NULL;
+ continue;
} else if (!ast_strlen_zero(o->chan->call_forward)) {
char tmpchan[256];
char *stuff;