301 if (!strcasecmp(data,
"audionativeformat")) {
312 }
else if (!strcasecmp(data,
"videonativeformat")) {
323 }
else if (!strcasecmp(data,
"audioreadformat")) {
325 }
else if (!strcasecmp(data,
"audiowriteformat")) {
329 }
else if (!strcasecmp(data,
"dtmf_features")) {
333 }
else if (!strcasecmp(data,
"language"))
335 else if (!strcasecmp(data,
"musicclass"))
337 else if (!strcasecmp(data,
"name")) {
339 }
else if (!strcasecmp(data,
"parkinglot"))
341 else if (!strcasecmp(data,
"state"))
343 else if (!strcasecmp(data,
"onhold")) {
346 }
else if (!strcasecmp(data,
"channeltype"))
348 else if (!strcasecmp(data,
"accountcode"))
350 else if (!strcasecmp(data,
"checkhangup")) {
352 }
else if (!strcasecmp(data,
"peeraccount"))
354 else if (!strcasecmp(data,
"hangupsource"))
360 else if (!strcasecmp(data,
"exten"))
362 else if (!strcasecmp(data,
"context"))
364 else if (!strcasecmp(data,
"userfield"))
366 else if (!strcasecmp(data,
"channame"))
368 else if (!strcasecmp(data,
"linkedid")) {
378 }
else if (!strcasecmp(data,
"peer")) {
407 }
else if (!strcasecmp(
data,
"uniqueid")) {
409 }
else if (!strcasecmp(
data,
"transfercapability")) {
411 }
else if (!strcasecmp(
data,
"callgroup")) {
415 }
else if (!strcasecmp(
data,
"pickupgroup")) {
419 }
else if (!strcasecmp(
data,
"namedcallgroup")) {
423 }
else if (!strcasecmp(data,
"namedpickupgroup")) {
427 }
else if (!strcasecmp(data,
"after_bridge_goto")) {
429 }
else if (!strcasecmp(data,
"amaflags")) {
433 }
else if (!strncasecmp(data,
"secure_bridge_", 14)) {
441 if (!strcasecmp(data,
"secure_bridge_signaling")) {
443 }
else if (!strcasecmp(data,
"secure_bridge_media")) {
444 snprintf(
buf,
len,
"%s", encrypt->
media ?
"1" :
"");
448 }
else if (!strcasecmp(data,
"max_forwards")) {
452 }
else if (!strcasecmp(data,
"callid")) {
#define ast_channel_lock(chan)
Main Channel structure associated with a channel.
int ast_max_forwards_get(struct ast_channel *chan)
Get the current max forwards for a particular channel.
int ast_channel_hold_state(const struct ast_channel *chan)
unsigned short ast_channel_transfercapability(const struct ast_channel *chan)
#define ast_channel_unref(c)
Decrease channel reference count.
struct ast_tone_zone * ast_channel_zone(const struct ast_channel *chan)
ast_channel_state
ast_channel states
#define ast_str_alloca(init_len)
Structure for a data store object.
struct ast_datastore * ast_channel_datastore_find(struct ast_channel *chan, const struct ast_datastore_info *info, const char *uid)
Find a datastore on a channel.
const char * ast_state2str(enum ast_channel_state)
Gives the string form of a given channel state.
const struct ast_datastore_info secure_call_info
const char * ast_channel_linkedid(const struct ast_channel *chan)
struct ast_namedgroups * ast_channel_named_callgroups(const struct ast_channel *chan)
const char * pbx_builtin_getvar_helper(struct ast_channel *chan, const char *name)
Return a pointer to the value of the corresponding channel variable.
char * ast_print_group(char *buf, int buflen, ast_group_t group)
Print call and pickup groups into buffer.
#define ast_strlen_zero(foo)
struct ast_format * ast_channel_readformat(struct ast_channel *chan)
const char * ast_channel_accountcode(const struct ast_channel *chan)
#define locked_copy_string(chan, dest, source, len)
#define ao2_ref(o, delta)
const char * ast_channel_exten(const struct ast_channel *chan)
int ast_check_hangup(struct ast_channel *chan)
Check to see if a channel is needing hang up.
int ast_bridge_features_ds_get_string(struct ast_channel *chan, char *buffer, size_t buf_size)
writes a channel's DTMF features to a buffer string
const char * ast_channel_uniqueid(const struct ast_channel *chan)
const char * ast_channel_userfield(const struct ast_channel *chan)
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
void ast_callid_strnprint(char *buffer, size_t buffer_size, ast_callid callid)
copy a string representation of the callid into a target string
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
const char * ast_channel_appl(const struct ast_channel *chan)
const char * ast_channel_peeraccount(const struct ast_channel *chan)
#define ast_channel_unlock(chan)
const char * ast_channel_hangupsource(const struct ast_channel *chan)
static const char *const transfercapability_table[0x20]
struct ast_format_cap * ast_channel_nativeformats(const struct ast_channel *chan)
const char * ast_channel_data(const struct ast_channel *chan)
static int func_channel_read(struct ast_channel *chan, const char *function, char *data, char *buf, size_t len)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
struct ast_namedgroups * ast_channel_named_pickupgroups(const struct ast_channel *chan)
struct ast_channel * ast_channel_bridge_peer(struct ast_channel *chan)
Get the channel's bridge peer only if the bridge is two-party.
const char * ast_channel_name(const struct ast_channel *chan)
const char * ast_channel_language(const struct ast_channel *chan)
ast_group_t ast_channel_pickupgroup(const struct ast_channel *chan)
const char * ast_channel_context(const struct ast_channel *chan)
void ast_bridge_read_after_goto(struct ast_channel *chan, char *buffer, size_t buf_size)
Read after bridge goto if it exists.
ast_group_t ast_channel_callgroup(const struct ast_channel *chan)
struct ast_format * ast_channel_writeformat(struct ast_channel *chan)
char * ast_print_namedgroups(struct ast_str **buf, struct ast_namedgroups *groups)
Print named call groups and named pickup groups.
enum ama_flags ast_channel_amaflags(const struct ast_channel *chan)
const struct ast_channel_tech * ast_channel_tech(const struct ast_channel *chan)
ast_callid ast_channel_callid(const struct ast_channel *chan)
const char * ast_channel_parkinglot(const struct ast_channel *chan)
const char * ast_channel_musicclass(const struct ast_channel *chan)