mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
res_monitor: Remove deprecated module.
ASTERISK-30303 Change-Id: I0462caefb4f9544e2e2baa23c498858310b52d50
This commit is contained in:
committed by
George Joseph
parent
cbaba132a7
commit
6b03d60c7d
@@ -90,12 +90,6 @@ enum ast_bridge_builtin_feature {
|
||||
* parking slot to which it was parked.
|
||||
*/
|
||||
AST_BRIDGE_BUILTIN_PARKCALL,
|
||||
/*!
|
||||
* DTMF one-touch-record toggle using Monitor app.
|
||||
*
|
||||
* \note Only valid on two party bridges.
|
||||
*/
|
||||
AST_BRIDGE_BUILTIN_AUTOMON,
|
||||
/*!
|
||||
* DTMF one-touch-record toggle using MixMonitor app.
|
||||
*
|
||||
@@ -305,19 +299,14 @@ struct ast_bridge_features_attended_transfer {
|
||||
};
|
||||
|
||||
enum ast_bridge_features_monitor {
|
||||
/*! Toggle start/stop of Monitor/MixMonitor. */
|
||||
/*! Toggle start/stop of MixMonitor. */
|
||||
AUTO_MONITOR_TOGGLE,
|
||||
/*! Start Monitor/MixMonitor if not already started. */
|
||||
/*! Start MixMonitor if not already started. */
|
||||
AUTO_MONITOR_START,
|
||||
/*! Stop Monitor/MixMonitor if not already stopped. */
|
||||
/*! Stop MixMonitor if not already stopped. */
|
||||
AUTO_MONITOR_STOP,
|
||||
};
|
||||
|
||||
struct ast_bridge_features_automonitor {
|
||||
/*! Start/Stop behavior. */
|
||||
enum ast_bridge_features_monitor start_stop;
|
||||
};
|
||||
|
||||
struct ast_bridge_features_automixmonitor {
|
||||
/*! Start/Stop behavior. */
|
||||
enum ast_bridge_features_monitor start_stop;
|
||||
|
@@ -4033,21 +4033,6 @@ enum AST_MONITORING_STATE {
|
||||
AST_MONITOR_PAUSED
|
||||
};
|
||||
|
||||
/*! Responsible for channel monitoring data */
|
||||
struct ast_channel_monitor {
|
||||
struct ast_filestream *read_stream;
|
||||
struct ast_filestream *write_stream;
|
||||
char read_filename[FILENAME_MAX];
|
||||
char write_filename[FILENAME_MAX];
|
||||
char filename_base[FILENAME_MAX];
|
||||
char beep_id[64];
|
||||
int filename_changed;
|
||||
char *format;
|
||||
int joinfiles;
|
||||
enum AST_MONITORING_STATE state;
|
||||
int (*stop)(struct ast_channel *chan, int need_lock);
|
||||
};
|
||||
|
||||
/* ACCESSOR FUNCTIONS */
|
||||
|
||||
#define DECLARE_STRINGFIELD_SETTERS_FOR(field) \
|
||||
@@ -4168,8 +4153,6 @@ struct ast_channel *ast_channel_masq(const struct ast_channel *chan);
|
||||
void ast_channel_masq_set(struct ast_channel *chan, struct ast_channel *value);
|
||||
struct ast_channel *ast_channel_masqr(const struct ast_channel *chan);
|
||||
void ast_channel_masqr_set(struct ast_channel *chan, struct ast_channel *value);
|
||||
struct ast_channel_monitor *ast_channel_monitor(const struct ast_channel *chan);
|
||||
void ast_channel_monitor_set(struct ast_channel *chan, struct ast_channel_monitor *value);
|
||||
struct ast_filestream *ast_channel_stream(const struct ast_channel *chan);
|
||||
void ast_channel_stream_set(struct ast_channel *chan, struct ast_filestream *value);
|
||||
struct ast_filestream *ast_channel_vstream(const struct ast_channel *chan);
|
||||
|
@@ -185,7 +185,6 @@ Some examples of modules that provide C APIs (potentially among other things) ar
|
||||
- res_crypto.c
|
||||
- res_curl.c
|
||||
- res_xmpp.c
|
||||
- res_monitor.c
|
||||
- res_smdi.c
|
||||
- res_speech.c
|
||||
- provides a speech recognition engine interface.
|
||||
|
@@ -28,9 +28,9 @@ struct ast_channel;
|
||||
*/
|
||||
struct ast_features_general_config {
|
||||
AST_DECLARE_STRING_FIELDS(
|
||||
/*! Sound played when automon or automixmon features are used */
|
||||
/*! Sound played when automixmon features are used */
|
||||
AST_STRING_FIELD(courtesytone);
|
||||
/*! Sound played when automon or automixmon features fail when used */
|
||||
/*! Sound played when automixmon features fail when used */
|
||||
AST_STRING_FIELD(recordingfailsound);
|
||||
);
|
||||
/*! Milliseconds allowed between digit presses when entering feature code */
|
||||
@@ -170,8 +170,6 @@ struct ast_featuremap_config {
|
||||
AST_STRING_FIELD(blindxfer);
|
||||
/*! Disconnect DTMF code */
|
||||
AST_STRING_FIELD(disconnect);
|
||||
/*! Automon DTMF code */
|
||||
AST_STRING_FIELD(automon);
|
||||
/*! Attended Transfer DTMF code */
|
||||
AST_STRING_FIELD(atxfer);
|
||||
/*! One-touch parking DTMF code */
|
||||
|
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Asterisk -- An open source telephony toolkit.
|
||||
*
|
||||
* Copyright (C) 1999 - 2005, Digium, Inc.
|
||||
*
|
||||
* Mark Spencer <markster@digium.com>
|
||||
*
|
||||
* See http://www.asterisk.org for more information about
|
||||
* the Asterisk project. Please do not directly contact
|
||||
* any of the maintainers of this project for assistance;
|
||||
* the project provides a web site, mailing lists and IRC
|
||||
* channels for your use.
|
||||
*
|
||||
* This program is free software, distributed under the terms of
|
||||
* the GNU General Public License Version 2. See the LICENSE file
|
||||
* at the top of the source tree.
|
||||
*/
|
||||
|
||||
/*! \file
|
||||
* \brief Channel monitoring
|
||||
*/
|
||||
|
||||
#ifndef _ASTERISK_MONITOR_H
|
||||
#define _ASTERISK_MONITOR_H
|
||||
|
||||
#include "asterisk/channel.h"
|
||||
#include "asterisk/optional_api.h"
|
||||
|
||||
/* Streams recording control */
|
||||
#define X_REC_IN 1
|
||||
#define X_REC_OUT 2
|
||||
#define X_JOIN 4
|
||||
|
||||
/* Start monitoring a channel */
|
||||
AST_OPTIONAL_API(int, ast_monitor_start,
|
||||
(struct ast_channel *chan, const char *format_spec,
|
||||
const char *fname_base, int need_lock, int stream_action,
|
||||
const char *beep_id),
|
||||
{ return -1; });
|
||||
|
||||
/* Stop monitoring a channel */
|
||||
AST_OPTIONAL_API(int, ast_monitor_stop,
|
||||
(struct ast_channel *chan, int need_lock),
|
||||
{ return -1; });
|
||||
|
||||
/* Change monitoring filename of a channel */
|
||||
AST_OPTIONAL_API(int, ast_monitor_change_fname,
|
||||
(struct ast_channel *chan, const char *fname_base,
|
||||
int need_lock),
|
||||
{ return -1; });
|
||||
|
||||
AST_OPTIONAL_API(void, ast_monitor_setjoinfiles,
|
||||
(struct ast_channel *chan, int turnon),
|
||||
{ return; });
|
||||
|
||||
/* Pause monitoring of a channel */
|
||||
AST_OPTIONAL_API(int, ast_monitor_pause,
|
||||
(struct ast_channel *chan),
|
||||
{ return -1; });
|
||||
|
||||
/* Unpause monitoring of a channel */
|
||||
AST_OPTIONAL_API(int, ast_monitor_unpause,
|
||||
(struct ast_channel *chan),
|
||||
{ return -1; });
|
||||
|
||||
#endif /* _ASTERISK_MONITOR_H */
|
@@ -584,22 +584,6 @@ struct stasis_message_type *ast_channel_fax_type(void);
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_hangup_handler_type(void);
|
||||
|
||||
/*!
|
||||
* \since 12
|
||||
* \brief Message type for starting monitor on a channel
|
||||
*
|
||||
* \return A stasis message type
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_monitor_start_type(void);
|
||||
|
||||
/*!
|
||||
* \since 12
|
||||
* \brief Message type for stopping monitor on a channel
|
||||
*
|
||||
* \return A stasis message type
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_monitor_stop_type(void);
|
||||
|
||||
/*!
|
||||
* \since 18
|
||||
* \brief Message type for starting mixmonitor on a channel
|
||||
|
Reference in New Issue
Block a user