]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Autopause not working for queue members. (#8042 - jmls reported and patch)
authorBJ Weschke <bweschke@btwtech.com>
Thu, 28 Sep 2006 13:24:10 +0000 (13:24 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Thu, 28 Sep 2006 13:24:10 +0000 (13:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43864 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index a8eda768b21db077100a7297a776a221dcbadc88..9741b8715ef1ef1c3acc8fc7de7c67690e37abb8 100644 (file)
@@ -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;