Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Enumerations | Functions | Variables
app_broadcast.c File Reference

Channel audio broadcasting. More...

#include "asterisk.h"
#include <ctype.h>
#include <errno.h>
#include "asterisk/channel.h"
#include "asterisk/audiohook.h"
#include "asterisk/app.h"
#include "asterisk/utils.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/options.h"
#include "asterisk/autochan.h"
#include "asterisk/format_cache.h"
#include "asterisk/cli.h"

Go to the source code of this file.

Data Structures

struct  multi_autochan
 
struct  multi_autochan_list
 
struct  multi_spy
 

Enumerations

enum  {
  OPTION_READONLY = (1 << 0), OPTION_BARGE = (1 << 1), OPTION_LONG_QUEUE = (1 << 2), OPTION_WHISPER = (1 << 3),
  OPTION_SPY = (1 << 4), OPTION_REVERSE_FEED = (1 << 5), OPTION_ANSWER_WARN = (1 << 6)
}
 

Functions

static int attach_barge (struct ast_autochan *spyee_autochan, struct ast_autochan **spyee_bridge_autochan, struct ast_audiohook *bridge_whisper_audiohook, const char *spyer_name, const char *name, struct ast_flags *flags)
 
static int broadcast_exec (struct ast_channel *chan, const char *data)
 
static int do_broadcast (struct ast_channel *chan, struct ast_flags *flags, const char *channels)
 
static void multi_autochan_free (struct multi_autochan *mac)
 
static void * spy_alloc (struct ast_channel *chan, void *data)
 
static int spy_generate (struct ast_channel *chan, void *data, int len, int samples)
 
static void spy_release (struct ast_channel *chan, void *data)
 
static int start_spying (struct ast_autochan *autochan, const char *spychan_name, struct ast_audiohook *audiohook, struct ast_flags *flags)
 

Variables

static const char app_broadcast [] = "Broadcast"
 
static const struct ast_app_option spy_opts [128] = { [ 'b' ] = { .flag = OPTION_BARGE }, [ 'l' ] = { .flag = OPTION_LONG_QUEUE }, [ 'o' ] = { .flag = OPTION_READONLY }, [ 'r' ] = { .flag = OPTION_REVERSE_FEED }, [ 's' ] = { .flag = OPTION_SPY }, [ 'w' ] = { .flag = OPTION_WHISPER }, }
 
static struct ast_generator spygen
 

Detailed Description

Channel audio broadcasting.

Author
Naveen Albert aster.nosp@m.isk@.nosp@m.phrea.nosp@m.knet.nosp@m..org

Definition in file app_broadcast.c.

Variable Documentation

struct ast_generator spygen
static
Initial value:
= {
.alloc = spy_alloc,
.release = spy_release,
.generate = spy_generate,
}

Definition at line 238 of file app_broadcast.c.