From: Matthew Jordan Date: Fri, 13 Jan 2012 16:57:33 +0000 (+0000) Subject: Realtime queues failed to load queue information without queue member table X-Git-Tag: 1.8.10.0-rc1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a364b1e068a8944b4d7a89480ab241d8fa70b2c2;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350552 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 4db586e290..30c81ec8cc 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2346,9 +2346,8 @@ static struct call_queue *load_realtime_queue(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) {