Asterisk - The Open Source Telephony Project
18.5.0
|
Channel Variables. More...
#include "asterisk.h"
#include "asterisk/chanvars.h"
#include "asterisk/strings.h"
#include "asterisk/utils.h"
Go to the source code of this file.
Functions | |
struct ast_var_t * | _ast_var_assign (const char *name, const char *value, const char *file, int lineno, const char *function) |
void | ast_var_delete (struct ast_var_t *var) |
char * | ast_var_find (const struct varshead *head, const char *name) |
const char * | ast_var_full_name (const struct ast_var_t *var) |
struct varshead * | ast_var_list_clone (struct varshead *head) |
struct varshead * | ast_var_list_create (void) |
void | ast_var_list_destroy (struct varshead *head) |
const char * | ast_var_name (const struct ast_var_t *var) |
const char * | ast_var_value (const struct ast_var_t *var) |
Channel Variables.
Definition in file chanvars.c.
struct ast_var_t* _ast_var_assign | ( | const char * | name, |
const char * | value, | ||
const char * | file, | ||
int | lineno, | ||
const char * | function | ||
) |
Definition at line 36 of file chanvars.c.
References __ast_calloc(), ast_copy_string(), ast_var_t::name, NULL, ast_var_t::value, and var.
void ast_var_delete | ( | struct ast_var_t * | var | ) |
Definition at line 55 of file chanvars.c.
References ast_free.
Referenced by acf_iaxvar_write(), ast_cdr_reset(), ast_channel_destructor(), ast_dummy_channel_destructor(), AST_TEST_DEFINE(), ast_var_list_destroy(), cdr_object_dtor(), chan_cleanup(), do_say(), dundi_lookup_local(), free_variables(), gosub_release_frame(), loopback_subst(), pbx_builtin_clear_globals(), pbx_builtin_setvar_helper(), profile_destructor(), set_variable(), shared_variable_free(), shared_write(), sip_removeheader(), and varshead_dtor().
char* ast_var_find | ( | const struct varshead * | head, |
const char * | name | ||
) |
Definition at line 85 of file chanvars.c.
References AST_LIST_TRAVERSE, ast_var_t::entries, ast_var_t::name, NULL, ast_var_t::value, and var.
Referenced by phoneprov_destroy(), and users_apply_handler().
const char* ast_var_full_name | ( | const struct ast_var_t * | var | ) |
Definition at line 75 of file chanvars.c.
References ast_var_t::name, and NULL.
Referenced by ast_channel_inherit_variables(), ast_unreal_call_setup(), and inherit_channel_vars_from_id().
Definition at line 124 of file chanvars.c.
References ast_var_assign, ast_var_list_create(), ast_var_list_destroy(), AST_VAR_LIST_INSERT_TAIL(), AST_VAR_LIST_TRAVERSE, ast_var_t::name, NULL, ast_var_t::value, and var.
struct varshead* ast_var_list_create | ( | void | ) |
Definition at line 97 of file chanvars.c.
References ast_calloc, AST_LIST_HEAD_INIT_NOLOCK, and NULL.
Referenced by ast_var_list_clone(), build_profile(), get_defaults(), handle_aor(), handle_registrations(), and phoneprov_alloc().
void ast_var_list_destroy | ( | struct varshead * | head | ) |
Definition at line 109 of file chanvars.c.
References ast_free, AST_LIST_REMOVE_HEAD, ast_var_delete(), ast_var_t::entries, and var.
Referenced by ast_var_list_clone(), get_defaults(), handle_aor(), handle_registrations(), and phoneprov_destroy().
const char* ast_var_name | ( | const struct ast_var_t * | var | ) |
Definition at line 60 of file chanvars.c.
References ast_var_t::name, name, and NULL.
Referenced by ast_cdr_serialize_variables(), ast_channel_get_vars(), ast_str_retrieve_variable(), cdr_format_var_internal(), cdr_object_create_public_records(), cdr_object_format_var_internal(), clearvar_prefix(), copy_variables(), frame_set_var(), generate_status(), get_key(), gosub_release_frame(), handle_show_chanvar(), handle_show_globals(), handle_showchan(), iax2_call(), iax2_dup_variable_datastore(), local_read(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), set_variable(), shared_read(), shared_write(), sip_call(), sip_removeheader(), skinny_call(), and transmit_invite().
const char* ast_var_value | ( | const struct ast_var_t * | var | ) |
Definition at line 80 of file chanvars.c.
References NULL, and ast_var_t::value.
Referenced by ast_cdr_serialize_variables(), ast_channel_get_vars(), ast_channel_inherit_variables(), ast_str_retrieve_variable(), ast_unreal_call_setup(), cdr_format_var_internal(), cdr_object_create_public_records(), cdr_object_format_var_internal(), copy_variables(), generate_status(), handle_show_chanvar(), handle_show_globals(), handle_showchan(), iax2_call(), iax2_dup_variable_datastore(), inherit_channel_vars_from_id(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), shared_read(), sip_call(), sip_removeheader(), skinny_call(), and transmit_invite().