mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
fix queues properly (issue #5300, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -761,7 +761,9 @@ static struct ast_call_queue *reload_queue_rt(const char *queuename, struct ast_
|
||||
return q;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (!member_config)
|
||||
/* Not found in the list, and it's not realtime ... */
|
||||
return NULL;
|
||||
|
||||
/* Check if queue is defined in realtime. */
|
||||
if (!queue_vars) {
|
||||
@@ -872,13 +874,13 @@ static int join_queue(char *queuename, struct queue_ent *qe, enum queue_result *
|
||||
Thus we might see an empty member list when a queue is
|
||||
deleted. In practise, this is unlikely to cause a problem. */
|
||||
queue_vars = ast_load_realtime("queues", "name", queuename, NULL);
|
||||
if(queue_vars)
|
||||
if (queue_vars) {
|
||||
member_config = ast_load_realtime_multientry("queue_members", "interface LIKE", "%", "queue_name", queuename, NULL);
|
||||
|
||||
if (!member_config) {
|
||||
ast_log(LOG_ERROR, "no queue_members defined in your config (extconfig.conf).\n");
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
ast_mutex_lock(&qlock);
|
||||
q = reload_queue_rt(queuename, queue_vars, member_config);
|
||||
|
Reference in New Issue
Block a user