From: Jason Parker Date: Tue, 15 Apr 2008 16:18:38 +0000 (+0000) Subject: Merged revisions 114133 via svnmerge from X-Git-Tag: 1.6.2.0-beta1~2477 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6cfccbc072b6e66f712659c50d6bed3eed2636d;p=thirdparty%2Fasterisk.git Merged revisions 114133 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114133 | qwell | 2008-04-15 11:18:08 -0500 (Tue, 15 Apr 2008) | 8 lines Allow autofill to work in the general section of queues.conf. Additionally, don't try to (re)set options when they have empty values in realtime (all unset columns would have an empty value). (closes issue #12445) Reported by: atis Patches: 12445-autofill.diff uploaded by qwell (license 4) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114134 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index aef06aa2d6..9842111c89 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -939,7 +939,6 @@ static void init_queue(struct call_queue *q) q->monfmt[0] = '\0'; q->reportholdtime = 0; q->wrapuptime = 0; - q->autofill = 0; q->joinempty = 0; q->leavewhenempty = 0; q->memberdelay = 0; @@ -1532,7 +1531,11 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as *tmp++ = '-'; } else tmp_name = v->name; - queue_set_param(q, tmp_name, v->value, -1, 0); + + if (!ast_strlen_zero(v->value)) { + /* Don't want to try to set the option if the value is empty */ + queue_set_param(q, tmp_name, v->value, -1, 0); + } } /* Temporarily set realtime members dead so we can detect deleted ones.