Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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(), make_ari_stubs::file, name, NULL, value, and var.
void ast_var_delete | ( | struct ast_var_t * | var | ) |
Definition at line 55 of file chanvars.c.
References ast_free, free(), and var.
Referenced by acf_iaxvar_write(), ast_cdr_reset(), ast_channel_destructor(), ast_dummy_channel_destructor(), 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(), phoneprov_callback(), profile_destructor(), set_variable(), shared_variable_free(), shared_write(), 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, name, NULL, and var.
Referenced by add_user_extension(), ast_phoneprov_add_extension(), build_extension(), load_users(), phoneprov_callback(), 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.
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, NULL, and var.
Referenced by build_extension().
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(), geoloc_eprofile_resolve_varlist(), get_defaults(), handle_aor(), handle_registrations(), load_users(), 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(), delete_extension(), geoloc_eprofile_resolve_varlist(), get_defaults(), handle_aor(), handle_registrations(), load_users(), and phoneprov_destroy().
const char * ast_var_name | ( | const struct ast_var_t * | var | ) |
Definition at line 60 of file chanvars.c.
References name, NULL, and var.
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(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), phoneprov_callback(), set_variable(), shared_read(), and shared_write().
const char * ast_var_value | ( | const struct ast_var_t * | var | ) |
Definition at line 80 of file chanvars.c.
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(), pbx_builtin_getvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), peek_read(), and shared_read().