]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adding explicit defaults for missing options to init_queue. This is necessary because
authorMark Michelson <mmichelson@digium.com>
Mon, 14 Jan 2008 16:21:28 +0000 (16:21 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 14 Jan 2008 16:21:28 +0000 (16:21 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@98733 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 1afdd8c7c1959157d0ab3004872fdb345de72366..24b8f2ebdd6d53335344bb7fcecc63a23c2dd656 100644 (file)
@@ -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;