58{
60 const char *conf_name =
data;
63
65 if (!capabilities) {
67 }
69
70 chan =
ast_channel_alloc(1,
AST_STATE_UP,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, 0,
71 "CBRec/%s-%08x",
72 conf_name, (unsigned) generated_seqno);
73 if (!chan) {
75 }
80 }
81
89 return chan;
90}
int ast_channel_add_bridge_role(struct ast_channel *chan, const char *role_name)
Adds a bridge role to a channel.
#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)
struct ast_channel_tech * conf_record_get_tech(void)
Get ConfBridge record channel technology struct.
static unsigned int name_sequence
int ast_atomic_fetchadd_int(volatile int *p, int v)
Atomically add v to *p and return the previous value of *p.
Main Channel structure associated with a channel.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.