diff options
author | Matthew Jordan <mjordan@digium.com> | 2012-01-13 17:00:12 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2012-01-13 17:00:12 +0000 |
commit | 9c4821f4683232103e9882a73cbe48da52ede002 (patch) | |
tree | 5995c2ab4d437c747d5d6cc04b0f300af5c0e396 | |
parent | a8276fe8efbca7e14862c469c0c95df71b506947 (diff) |
Realtime queues failed to load queue information without queue member table
Previously, realtime queues could be loaded without defining the queue member
table. This allowed for queue members to be dynamic, while the realtime
queue definitions could exist in some backing storage. Revision 342223 broke
this when it changed the return value for realtime_multientry to return NULL
when no results are returned. Previously, an empty ast_config object was
expected.
(closes issue ASTERISK-19170)
Reported by: Rene Mendoza
Tested by: Rene Mendoza
Patches:
rt_queue_member_patch.diff uploaded by Matt Jordan (license 6283)
........
Merged revisions 350552 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 350553 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@350554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_queue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index ec9ad3966..c7dc14100 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2432,9 +2432,8 @@ static struct call_queue *find_load_queue_rt_friendly(const char *queuename) if (queue_vars) { member_config = ast_load_realtime_multientry("queue_members", "interface LIKE", "%", "queue_name", queuename, SENTINEL); if (!member_config) { - ast_log(LOG_ERROR, "no queue_members defined in your config (extconfig.conf).\n"); - ast_variables_destroy(queue_vars); - return NULL; + ast_debug(1, "No queue_members defined in config extconfig.conf\n"); + member_config = ast_config_new(); } } if (q) { |