diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-14 16:21:28 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-14 16:21:28 +0000 |
commit | 1f4ccb3190d0dbe11fea323842d38a16c0ef69a5 (patch) | |
tree | 639a8e33ebeea3bebbfa139f2990d28b81de42b2 /apps | |
parent | e9ac52e3ff08cc8c3edd3104c442d5805bf8adb5 (diff) |
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/branches/1.4@98733 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 1afdd8c7c..24b8f2ebd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -795,6 +795,17 @@ static void init_queue(struct call_queue *q) q->context[0] = '\0'; q->monfmt[0] = '\0'; q->periodicannouncefrequency = 0; + q->reportholdtime = 0; + q->monitorjoin = 0; + q->wrapuptime = 0; + q->autofill = 0; + q->joinempty = 0; + q->leavewhenempty = 0; + q->memberdelay = 0; + q->eventmemberstatus = 0; + q->eventwhencalled = 0; + q->weight = 0; + q->timeoutrestart = 0; if (!q->members) q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); q->membercount = 0; |