60 const char *conf_name =
data;
70 chan =
ast_channel_alloc(1,
AST_STATE_UP,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, 0,
72 conf_name, (
unsigned) generated_seqno);
94 .description =
"Conference Bridge Recording Channel",
Asterisk main include file. File version handling, generic pbx functions.
int ast_channel_add_bridge_role(struct ast_channel *chan, const char *role_name)
Adds a bridge role to a channel.
General Asterisk PBX channel definitions.
@ AST_CHAN_TP_INTERNAL
Channels with this particular technology are an implementation detail of Asterisk and should generall...
#define ast_channel_alloc(needqueue, state, cid_num, cid_name, acctcode, exten, context, assignedids, requestor, amaflag,...)
Create a channel structure.
void ast_channel_nativeformats_set(struct ast_channel *chan, struct ast_format_cap *value)
void ast_channel_set_rawreadformat(struct ast_channel *chan, struct ast_format *format)
void ast_channel_set_rawwriteformat(struct ast_channel *chan, struct ast_format *format)
struct ast_channel * ast_channel_release(struct ast_channel *chan)
Unlink and release reference to a channel.
void ast_channel_set_readformat(struct ast_channel *chan, struct ast_format *format)
void ast_channel_tech_set(struct ast_channel *chan, const struct ast_channel_tech *value)
#define ast_channel_unlock(chan)
void ast_channel_set_writeformat(struct ast_channel *chan, struct ast_format *format)
static struct ast_channel * rec_request(const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *data, int *cause)
static int rec_write(struct ast_channel *ast, struct ast_frame *f)
static struct ast_channel_tech record_tech
static struct ast_frame * rec_read(struct ast_channel *ast)
struct ast_channel_tech * conf_record_get_tech(void)
Get ConfBridge record channel technology struct.
static unsigned int name_sequence
static int rec_call(struct ast_channel *chan, const char *addr, int timeout)
struct ast_frame ast_null_frame
int ast_atomic_fetchadd_int(volatile int *p, int v)
Atomically add v to *p and return the previous value of *p.
Structure to pass both assignedid values to channel drivers.
Structure to describe a channel "technology", ie a channel driver See for examples:
Main Channel structure associated with a channel.
Data structure associated with a single frame of data.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.