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",
static struct ast_channel_tech record_tech
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
void ast_channel_set_writeformat(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_rawwriteformat(struct ast_channel *chan, struct ast_format *format)
Structure to pass both assignedid values to channel drivers.
int ast_channel_add_bridge_role(struct ast_channel *chan, const char *role_name)
Adds a bridge role to a channel.
int ast_atomic_fetchadd_int(volatile int *p, int v)
Atomically add v to *p and return the previous value of *p.
struct ast_channel_tech * conf_record_get_tech(void)
Get ConfBridge record channel technology struct.
void ast_channel_tech_set(struct ast_channel *chan, const struct ast_channel_tech *value)
void ast_channel_set_rawreadformat(struct ast_channel *chan, struct ast_format *format)
static unsigned int name_sequence
General Asterisk PBX channel definitions.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
void ast_channel_nativeformats_set(struct ast_channel *chan, struct ast_format_cap *value)
void ast_channel_set_readformat(struct ast_channel *chan, struct ast_format *format)
Channels with this particular technology are an implementation detail of Asterisk and should generall...
Structure to describe a channel "technology", ie a channel driver See for examples: ...
static int rec_call(struct ast_channel *chan, const char *addr, int timeout)
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 struct ast_frame * rec_read(struct ast_channel *ast)
#define ast_channel_unlock(chan)
struct ast_frame ast_null_frame
static int rec_write(struct ast_channel *ast, struct ast_frame *f)
Data structure associated with a single frame of data.
#define ast_channel_alloc(needqueue, state, cid_num, cid_name, acctcode, exten, context, assignedids, requestor, amaflag,...)
Create a channel structure.