From: Leandro Dardini Date: Thu, 13 Oct 2016 19:09:18 +0000 (+0200) Subject: app_queue: Added initialization for "context" parameter X-Git-Tag: 11.25.0-rc1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d63e016fce8ba2eb88421cfb5791ca758b2c00;p=thirdparty%2Fasterisk.git app_queue: Added initialization for "context" parameter When using Asterisk Realtime Architecture, empty fields are skipped and the default values are used. If the "context" parameter in queue was set and then cleared from the database, the old value remains in memory and it continues to be used. This change initialize the "context" parameter with an empty value, allowing clearing the parameter. ASTERISK-26462 #close Change-Id: I64be73d5044ce38dd02408bd0e53de965ef65905 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 4010693d63..991dfd4082 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2120,6 +2120,9 @@ static void init_queue(struct call_queue *q) q->retry = DEFAULT_RETRY; q->timeout = DEFAULT_TIMEOUT; q->maxlen = 0; + + ast_string_field_set(q, context, ""); + q->announcefrequency = 0; q->minannouncefrequency = DEFAULT_MIN_ANNOUNCE_FREQUENCY; q->announceholdtime = 1;