From 1ced2ef93932cb28cf97c475cf1baa7d2039fdcc Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Tue, 16 Oct 2007 22:49:10 +0000 Subject: [PATCH] Adding deprecated warning to monitor-join option, since the plan is to no longer support this in favor of monitor-type = mixmonitor (related to issue #10885) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86028 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index b178a9b999..a30ba687fa 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -423,6 +423,15 @@ static void rr_dep_warning(void) } } +static void monjoin_dep_warning(void) +{ + static unsigned int warned = 0; + if (!warned) { + ast_log(LOG_NOTICE, "The 'monitor-join' queue option is deprecated. Please use monitor-type=mixmonitor instead.\n"); + warned = 1; + } +} + static void set_queue_result(struct ast_channel *chan, enum queue_result res) { int i; @@ -901,6 +910,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char } else if (!strcasecmp(param, "setinterfacevar")) { q->setinterfacevar = ast_true(val); } else if (!strcasecmp(param, "monitor-join")) { + monjoin_dep_warning(); q->monjoin = ast_true(val); } else if (!strcasecmp(param, "monitor-format")) { ast_copy_string(q->monfmt, val, sizeof(q->monfmt));