126 unsigned int mute_direction = 0;
130 if (!strcmp(direction,
"in")) {
132 }
else if (!strcmp(direction,
"out")) {
134 }
else if (!strcmp(direction,
"all")) {
208 snprintf(id_text,
sizeof(id_text),
"ActionID: %s\r\n",
id);
#define ast_channel_lock(chan)
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
void astman_append(struct mansession *s, const char *fmt,...)
Asterisk main include file. File version handling, generic pbx functions.
#define ast_channel_unref(c)
Decrease channel reference count.
static int load_module(void)
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
#define AST_MUTE_DIRECTION_WRITE
int ast_channel_suppress(struct ast_channel *chan, unsigned int direction, enum ast_frame_type frametype)
Suppress passing of a frame type on a channel.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
const char * astman_get_header(const struct message *m, char *var)
Get header from mananger transaction.
#define ast_strlen_zero(foo)
Configuration File Parser.
#define EVENT_FLAG_SYSTEM
#define AST_MUTE_DIRECTION_READ
General Asterisk PBX channel definitions.
Data structure associated with a custom dialplan function.
Asterisk internal frame definitions.
In case you didn't read that giant block of text above the mansession_session struct, the struct mansession is named this solely to keep the API the same in Asterisk. This structure really represents data that is different from Manager action to Manager action. The mansession_session pointer contained within points to session-specific data.
Core PBX routines and definitions.
ast_frame_type
Frame types.
int ast_manager_unregister(const char *action)
Unregister a registered manager command.
The AMI - Asterisk Manager Interface - is a TCP protocol created to manage Asterisk with third-party ...
int attribute_pure ast_true(const char *val)
Make sure something is true. Determine if a string containing a boolean value is "true". This function checks to see whether a string passed to it is an indication of an "true" value. It checks to see if the string is "yes", "true", "y", "t", "on" or "1".
static int mute_channel(struct ast_channel *chan, const char *direction, int mute)
#define ast_channel_unlock(chan)
Module has failed to load, may be in an inconsistent state.
Support for logging to various files, console and syslog Configuration in file logger.conf.
int ast_channel_unsuppress(struct ast_channel *chan, unsigned int direction, enum ast_frame_type frametype)
Stop suppressing of a frame type on a channel.
static int func_mute_write(struct ast_channel *chan, const char *cmd, char *data, const char *value)
Mute dialplan function.
Options provided by main asterisk program.
static int unload_module(void)
static struct ast_custom_function mute_function
#define ast_manager_register_xml(action, authority, func)
Register a manager callback using XML documentation to describe the manager.
#define ASTERISK_GPL_KEY
The text the key() function should return.
struct ast_channel * ast_channel_get_by_name(const char *name)
Find a channel by name.
void astman_send_error(struct mansession *s, const struct message *m, char *error)
Send error in manager transaction.
Asterisk module definitions.
#define ast_custom_function_register(acf)
Register a custom function.
static int manager_mutestream(struct mansession *s, const struct message *m)