summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Dardini <ldardini@gmail.com>2016-10-13 21:09:18 +0200
committerKevin Harwell <kharwell@digium.com>2016-10-14 17:49:36 -0500
commit0306869399c519fd6f1b35332aa639a8db4b86fb (patch)
tree98430d2ef2ddcacb620ceae9ad7986a3411a995b
parent3633c7926cdc102570a5f179aae8a9017bd0a034 (diff)
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
-rw-r--r--apps/app_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 45b5683ed..0d1c1e7a4 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2646,6 +2646,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;