mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 22:45:39 +00:00
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
This commit is contained in:
@@ -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)
|
static void set_queue_result(struct ast_channel *chan, enum queue_result res)
|
||||||
{
|
{
|
||||||
int i;
|
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")) {
|
} else if (!strcasecmp(param, "setinterfacevar")) {
|
||||||
q->setinterfacevar = ast_true(val);
|
q->setinterfacevar = ast_true(val);
|
||||||
} else if (!strcasecmp(param, "monitor-join")) {
|
} else if (!strcasecmp(param, "monitor-join")) {
|
||||||
|
monjoin_dep_warning();
|
||||||
q->monjoin = ast_true(val);
|
q->monjoin = ast_true(val);
|
||||||
} else if (!strcasecmp(param, "monitor-format")) {
|
} else if (!strcasecmp(param, "monitor-format")) {
|
||||||
ast_copy_string(q->monfmt, val, sizeof(q->monfmt));
|
ast_copy_string(q->monfmt, val, sizeof(q->monfmt));
|
||||||
|
Reference in New Issue
Block a user