aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-14 16:33:06 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-14 16:33:06 +0000
commit6483a12b944307e563be3199733a1cb5e4c9aa4b (patch)
tree0f2ea69d576375850b5fc6152e45faf90be03599
parent3c9cd5c5b5e8df8123b759b50b5a0c7aeda1d584 (diff)
Merged revisions 98733 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r98733 | mmichelson | 2008-01-14 10:21:28 -0600 (Mon, 14 Jan 2008) | 8 lines Adding explicit defaults for missing options to init_queue. This is necessary because if a user either removes or comments one of these options and reloads their queues, the option will not reset to its default, instead maintaining the value from prior to the reload. Thanks to John Bigelow for pointing this error out to me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98735 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_queue.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index da7fd0ee0..a40cddbad 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -899,6 +899,17 @@ static void init_queue(struct call_queue *q)
q->autofill = autofill_default;
q->montype = montype_default;
q->monfmt[0] = '\0';
+ q->reportholdtime = 0;
+ q->monitorjoin = 0;
+ q->wrapuptime = 0;
+ q->autofill = 0;
+ q->joinempty = 0;
+ q->leavewhenempty = 0;
+ q->memberdelay = 0;
+ q->maskmemberstatus = 0;
+ q->eventwhencalled = 0;
+ q->weight = 0;
+ q->timeoutrestart = 0;
q->periodicannouncefrequency = 0;
if (!q->members) {
if (q->strategy == QUEUE_STRATEGY_LINEAR)