From 40c8540186d0ceec07c8031648f841c99755c031 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 May 2006 16:07:43 +0000 Subject: automerge commit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@28674 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 2 ++ apps/app_voicemail.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/app_queue.c b/apps/app_queue.c index a35a3ee19..61cf45617 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -431,6 +431,8 @@ static enum queue_member_status get_member_status(const struct ast_call_queue *q enum queue_member_status result = QUEUE_NO_MEMBERS; for (member = q->members; member; member = member->next) { + if (member->paused) continue; + switch (member->status) { case AST_DEVICE_INVALID: /* nothing to do */ diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 214c7aff3..b595944f2 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5310,7 +5310,7 @@ static int vm_execmain(struct ast_channel *chan, void *data) case '5': /* Leave VoiceMail */ if (ast_test_flag(vmu, VM_SVMAIL)) { - cmd = forward_message(chan, context, vms.curdir, vms.curmsg, vmu, vmfmts, 1, record_gain); + cmd = forward_message(chan, vmu->context, vms.curdir, vms.curmsg, vmu, vmfmts, 1, record_gain); if (cmd == ERROR_LOCK_PATH) { res = cmd; goto out; @@ -5391,7 +5391,7 @@ static int vm_execmain(struct ast_channel *chan, void *data) case '8': if (vms.lastmsg > -1) { - cmd = forward_message(chan, context, vms.curdir, vms.curmsg, vmu, vmfmts, 0, record_gain); + cmd = forward_message(chan, vmu->context, vms.curdir, vms.curmsg, vmu, vmfmts, 0, record_gain); if (cmd == ERROR_LOCK_PATH) { res = cmd; goto out; -- cgit v1.2.3