aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-28 13:24:10 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-28 13:24:10 +0000
commitf1d3a0f0d7ca5e83ecddab293932d8842b61fb32 (patch)
tree985b61a768ce2f925d11cef2defc2ca17ccc1ef7 /apps/app_queue.c
parent9c1e6eed95a296c26c681299b7481540ec19d466 (diff)
Autopause not working for queue members. (#8042 - jmls reported and patch)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43864 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index a8eda768b..9741b8715 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1902,9 +1902,11 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
peer = o;
}
} else if (o->chan && (o->chan == winner)) {
+
+ ast_copy_string(on, o->member->interface, sizeof(on));
+ ast_copy_string(membername, o->member->membername, sizeof(membername));
+
if (!ast_strlen_zero(o->chan->call_forward) && !forwardsallowed) {
- ast_copy_string(on, o->member->interface, sizeof(on));
- ast_copy_string(membername, o->member->membername, sizeof(membername));
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;