aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-15 16:18:08 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-15 16:18:08 +0000
commitc7862d15808fcd1e25d2996eeead5d2377b60bd5 (patch)
treea38f4ae340b18a832be02ebdbceb7f94913dda5e /apps
parent046ccc84f68668abca21a8c78391a7491adcf289 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@114133 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index d35ece846..08e85c02f 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -822,7 +822,6 @@ static void init_queue(struct call_queue *q)
q->reportholdtime = 0;
q->monjoin = 0;
q->wrapuptime = 0;
- q->autofill = 0;
q->joinempty = 0;
q->leavewhenempty = 0;
q->memberdelay = 0;
@@ -1243,7 +1242,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);
+ }
}
if (q->strategy == QUEUE_STRATEGY_ROUNDROBIN)