35 #include "include/confbridge.h"
39 static unsigned int name_sequence = 0;
41 static int rec_call(
struct ast_channel *chan,
const char *addr,
int timeout)
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);
77 ast_channel_unlock(chan);
83 ast_channel_nativeformats_set(chan, capabilities);
88 ast_channel_unlock(chan);
94 .description =
"Conference Bridge Recording Channel",
95 .requester = rec_request,
Main Channel structure associated with a channel.
Channels with this particular technology are an implementation detail of Asterisk and should generall...
Asterisk main include file. File version handling, generic pbx functions.
struct ast_channel * ast_channel_release(struct ast_channel *chan)
Unlink and release reference to a channel.
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.
General Asterisk PBX channel definitions.
Structure to describe a channel "technology", ie a channel driver See for examples: ...
struct ast_frame ast_null_frame
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.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.