Autopause not working for queue members. (#8042 - jmls reported and patch)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
BJ Weschke
2006-09-28 13:24:10 +00:00
parent 89e23aa040
commit 669bbb6784

View 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;