diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-16 22:49:10 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-16 22:49:10 +0000 |
commit | 69c5b3c5b614a1847cbd9541b5ae81f9b4008145 (patch) | |
tree | ab87e6c307f4e23b9552ce6d41d05572dfc027f9 /apps/app_queue.c | |
parent | 5cf0c5a9a1dbc27b356869147d92e4a3f146c61c (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@86028 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b178a9b99..a30ba687f 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)); |