From: Mike Bradeen Date: Sat, 19 Nov 2022 01:24:38 +0000 (-0700) Subject: res_monitor: Remove deprecated module. X-Git-Tag: 21.0.0-pre1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b03d60c7d047c80328e89f0b35dac3530f0f0c7;p=thirdparty%2Fasterisk.git res_monitor: Remove deprecated module. ASTERISK-30303 Change-Id: I0462caefb4f9544e2e2baa23c498858310b52d50 --- diff --git a/README-SERIOUSLY.bestpractices.md b/README-SERIOUSLY.bestpractices.md index f021f9d7d8..fa4b0a6fa2 100644 --- a/README-SERIOUSLY.bestpractices.md +++ b/README-SERIOUSLY.bestpractices.md @@ -83,10 +83,10 @@ the FILTER() dialplan function. The CALLERID(num) and CALLERID(name) values are other commonly used values that are sources of data potentially supplied by outside sources. If you use these -values as parameters to the System(), MixMonitor(), or Monitor() applications -or the SHELL() dialplan function, you can allow injection of arbitrary operating -system command execution. The FILTER() dialplan function is available to remove -dangerous characters from untrusted strings to block the command injection. +values as parameters to the System() or MixMonitor() applications or the SHELL() +dialplan function, you can allow injection of arbitrary operating system command +execution. The FILTER() dialplan function is available to remove dangerous +characters from untrusted strings to block the command injection. ### Strict Pattern Matching diff --git a/apps/Makefile b/apps/Makefile index 02b705ddb2..50b3fccc8f 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -58,6 +58,6 @@ app_voicemail_imap.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DIMAP_STORAGE app_while.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) - LIBS+= -lres_ael_share.so -lres_monitor.so -lres_speech.so + LIBS+= -lres_ael_share.so -lres_speech.so LIBS+= -lres_smdi.so endif diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 812b8176e2..0d5bdc2570 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -3678,7 +3678,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc ast_func_write(chan, "DENOISE(rx)", "on"); } - retrydahdi = (strcasecmp(ast_channel_tech(chan)->type, "DAHDI") || (ast_channel_audiohooks(chan) || ast_channel_monitor(chan)) ? 1 : 0); + retrydahdi = (strcasecmp(ast_channel_tech(chan)->type, "DAHDI") || (ast_channel_audiohooks(chan)) ? 1 : 0); user->dahdichannel = !retrydahdi; dahdiretry: @@ -4196,14 +4196,14 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc if (c) { char dtmfstr[2] = ""; - if (ast_channel_fd(c, 0) != origfd || (user->dahdichannel && (ast_channel_audiohooks(c) || ast_channel_monitor(c)))) { + if (ast_channel_fd(c, 0) != origfd || (user->dahdichannel && ast_channel_audiohooks(c))) { if (using_pseudo) { /* Kill old pseudo */ close(fd); using_pseudo = 0; } ast_debug(1, "Ooh, something swapped out under us, starting over\n"); - retrydahdi = (strcasecmp(ast_channel_tech(c)->type, "DAHDI") || (ast_channel_audiohooks(c) || ast_channel_monitor(c)) ? 1 : 0); + retrydahdi = (strcasecmp(ast_channel_tech(c)->type, "DAHDI") || ast_channel_audiohooks(c) ? 1 : 0); user->dahdichannel = !retrydahdi; goto dahdiretry; } diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index 3ce1a76bb7..332e9b854a 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -183,10 +183,7 @@ function FILTER(). - Monitor StopMixMonitor - PauseMonitor - UnpauseMonitor AUDIOHOOK_INHERIT diff --git a/apps/app_queue.c b/apps/app_queue.c index 4b6b72bad7..c5b7d10162 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -41,7 +41,6 @@ * - Position announcement * - Abandoned/completed call counters * - Failout timer passed as optional app parameter - * - Optional monitoring of calls, started when call is answered * * Patch Version 1.07 2003-12-24 01 * @@ -63,7 +62,6 @@ */ /*** MODULEINFO - res_monitor core ***/ @@ -88,7 +86,6 @@ #include "asterisk/cli.h" #include "asterisk/manager.h" #include "asterisk/config.h" -#include "asterisk/monitor.h" #include "asterisk/utils.h" #include "asterisk/causes.h" #include "asterisk/astdb.h" @@ -222,14 +219,6 @@ - -