aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 14:07:31 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 14:07:31 +0000
commitfa7a5cce0ad37e5c7b3f6228d8480895506d979f (patch)
tree6dc993b701be97eac55766e0062a40cd86665ce7
parent604ae9f07738a826c3e26c820dc3dbc6ecf53b0f (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@25561 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_queue.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 763febfa1..a35a3ee19 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1184,7 +1184,9 @@ static int say_position(struct queue_ent *qe)
/* Set our last_pos indicators */
qe->last_pos = now;
qe->last_pos_said = qe->pos;
- ast_moh_start(qe->chan, qe->moh);
+ /* Don't restart music on hold if we're about to exit the caller from the queue */
+ if (res)
+ ast_moh_start(qe->chan, qe->moh);
return res;
}
@@ -2989,7 +2991,7 @@ check_turns:
/* Make a position announcement, if enabled */
if (qe.parent->announcefrequency && !ringing)
res = say_position(&qe);
- if (res && valid_exit(&qe, res)) {
+ if (res) {
ast_queue_log(queuename, chan->uniqueid, "NONE", "EXITWITHKEY", "%s|%d", qe.digits, qe.pos);
break;
}
@@ -3523,13 +3525,13 @@ static int manager_queues_status( struct mansession *s, struct message *m )
}
ast_mutex_unlock(&q->lock);
}
- ast_mutex_unlock(&qlock);
ast_cli(s->fd,
"Event: QueueStatusComplete\r\n"
"%s"
"\r\n",idText);
+ ast_mutex_unlock(&qlock);
return RESULT_SUCCESS;
}