mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@98733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user