Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_variable Struct Reference

Structure for variables, used for configurations and for channel variables. More...

#include <config.h>

Data Fields

int blanklines
 
const char * file
 
char * file
 
int inherited
 
int lineno
 
const char * name
 
char * name
 
struct ast_variablenext
 
int object
 
struct ast_commentprecomments
 
struct ast_commentsameline
 
char stuff [0]
 Contents of file, name, and value in that order stuffed here. More...
 
struct ast_commenttrailing
 
const char * value
 
char * value
 

Detailed Description

Structure for variables, used for configurations and for channel variables.

Examples:
app_skel.c.

Definition at line 83 of file include/asterisk/config.h.

Field Documentation

int blanklines

Number of blanklines following entry

Definition at line 97 of file include/asterisk/config.h.

Referenced by ast_config_text_file_save2(), and process_text_line().

const char* file

Filename where variable found. Stored in stuff[] at struct end.

Definition at line 93 of file include/asterisk/config.h.

Referenced by aco_process_var(), ast_config_text_file_save2(), ast_variable_update(), ast_variables_dup(), and mkintf().

int inherited

1 for inherited from template or other base

Definition at line 98 of file include/asterisk/config.h.

Referenced by ast_category_inherit(), and ast_config_text_file_save2().

const char* name

Variable name. Stored in stuff[] at struct end.

Examples:
app_skel.c.

Definition at line 85 of file include/asterisk/config.h.

Referenced by __ast_sorcery_apply_config(), PathSegment::__init__(), aco_handler(), aco_process_var(), append_var_and_value_to_filter(), apply_general_options(), apply_options_full(), ast_ari_applications_filter_cb(), ast_ari_applications_get_cb(), ast_ari_applications_subscribe_cb(), ast_ari_applications_unsubscribe_cb(), ast_ari_asterisk_add_log_cb(), ast_ari_asterisk_delete_log_cb(), ast_ari_asterisk_delete_object_cb(), ast_ari_asterisk_get_global_var_cb(), ast_ari_asterisk_get_info_cb(), ast_ari_asterisk_get_module_cb(), ast_ari_asterisk_get_object_cb(), ast_ari_asterisk_load_module_cb(), ast_ari_asterisk_reload_module_cb(), ast_ari_asterisk_rotate_log_cb(), ast_ari_asterisk_set_global_var_cb(), ast_ari_asterisk_unload_module_cb(), ast_ari_asterisk_update_object_cb(), ast_ari_bridges_add_channel_cb(), ast_ari_bridges_clear_video_source_cb(), ast_ari_bridges_create_cb(), ast_ari_bridges_create_with_id_cb(), ast_ari_bridges_destroy_cb(), ast_ari_bridges_get_cb(), ast_ari_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), ast_ari_bridges_record_cb(), ast_ari_bridges_remove_channel_cb(), ast_ari_bridges_set_video_source_cb(), ast_ari_bridges_start_moh_cb(), ast_ari_bridges_stop_moh_cb(), ast_ari_channels_answer_cb(), ast_ari_channels_continue_in_dialplan_cb(), ast_ari_channels_create_cb(), ast_ari_channels_dial_cb(), ast_ari_channels_external_media_cb(), ast_ari_channels_get_cb(), ast_ari_channels_get_channel_var_cb(), ast_ari_channels_hangup_cb(), ast_ari_channels_hold_cb(), ast_ari_channels_move_cb(), ast_ari_channels_mute_cb(), ast_ari_channels_originate_cb(), ast_ari_channels_originate_with_id_cb(), ast_ari_channels_play_cb(), ast_ari_channels_play_with_id_cb(), ast_ari_channels_record_cb(), ast_ari_channels_redirect_cb(), ast_ari_channels_ring_cb(), ast_ari_channels_ring_stop_cb(), ast_ari_channels_rtpstatistics_cb(), ast_ari_channels_send_dtmf_cb(), ast_ari_channels_set_channel_var_cb(), ast_ari_channels_snoop_channel_cb(), ast_ari_channels_snoop_channel_with_id_cb(), ast_ari_channels_start_moh_cb(), ast_ari_channels_start_silence_cb(), ast_ari_channels_stop_moh_cb(), ast_ari_channels_stop_silence_cb(), ast_ari_channels_unhold_cb(), ast_ari_channels_unmute_cb(), ast_ari_device_states_delete_cb(), ast_ari_device_states_get_cb(), ast_ari_device_states_update_cb(), ast_ari_endpoints_get_cb(), ast_ari_endpoints_list_by_tech_cb(), ast_ari_endpoints_refer_cb(), ast_ari_endpoints_refer_to_endpoint_cb(), ast_ari_endpoints_send_message_cb(), ast_ari_endpoints_send_message_to_endpoint_cb(), ast_ari_events_user_event_cb(), ast_ari_mailboxes_delete_cb(), ast_ari_mailboxes_get_cb(), ast_ari_mailboxes_update_cb(), ast_ari_playbacks_control_cb(), ast_ari_playbacks_get_cb(), ast_ari_playbacks_stop_cb(), ast_ari_recordings_cancel_cb(), ast_ari_recordings_copy_stored_cb(), ast_ari_recordings_delete_stored_cb(), ast_ari_recordings_get_live_cb(), ast_ari_recordings_get_stored_cb(), ast_ari_recordings_get_stored_file_cb(), ast_ari_recordings_mute_cb(), ast_ari_recordings_pause_cb(), ast_ari_recordings_stop_cb(), ast_ari_recordings_unmute_cb(), ast_ari_recordings_unpause_cb(), ast_ari_sounds_get_cb(), ast_ari_sounds_list_cb(), ast_cli_perms_init(), ast_config_text_file_save2(), ast_http_get_auth(), ast_http_get_cookies(), ast_http_manid_from_vars(), ast_iax2_new(), ast_json_object_create_vars(), ast_media_cache_create_or_update(), ast_set_variables(), ast_sorcery_changeset_create(), ast_sorcery_object_get_extended(), ast_sorcery_objectset_json_create(), ast_stream_get_metadata(), ast_stream_get_metadata_list(), ast_stream_set_metadata(), ast_variable_find_in_list(), ast_variable_find_last_in_list(), ast_variable_find_variable_in_list(), ast_variable_list_join(), ast_variable_list_replace(), ast_variable_list_sort(), ast_variable_lists_match(), ast_variable_update(), ast_variables_dup(), ast_variables_match(), astman_append_headers(), authenticate_reply(), authenticate_user(), build_calendar(), build_peer(), build_profile(), build_user(), chan_pjsip_new(), conf_exec(), convert_attribute_name_from_ldap(), convert_attribute_name_to_ldap(), copy_plain_file(), create_vmaccount(), custom_bitfield_handler(), custom_group_handler(), destroy_curl(), destroy_odbc(), do_say(), does_category_match(), encoding_format_handler(), find_queue_by_name_rt(), PathSegment::get_child(), get_header(), get_object_variables(), handle_cli_dialplan_save(), handle_options(), handle_showchan(), init_logger_chain(), int_handler_fn(), load_config(), mbl_load_adapter(), mbl_load_device(), minivm_account_func_read(), mkintf(), new_realtime_sqlite3_db(), parse_config(), process_cors_request(), process_text_line(), realtime_curl(), realtime_ldap_base_ap(), realtime_multi_curl(), realtime_multi_ldap(), realtime_multi_odbc(), realtime_odbc(), realtime_peer(), realtime_sqlite3_destroy(), realtime_sqlite3_helper(), realtime_sqlite3_store(), realtime_sqlite3_update(), realtime_sqlite3_update2(), realtime_user(), reload(), reload_followme(), reload_queue_rules(), reload_single_queue(), rtp_reload(), set_config(), sorcery_is_explicit_name_met(), store_curl(), store_odbc(), test_config_validity(), test_sorcery_transform(), timelen_handler_fn(), uint_handler_fn(), update_curl(), update_odbc(), uuid_type_handler(), variable_named(), verify_user_event_fields(), and xml_translate().

struct ast_variable * next

Next node in the list.

Definition at line 90 of file include/asterisk/config.h.

Referenced by __ast_sorcery_apply_config(), aco_process_category_options(), apply_general_options(), apply_options_full(), ast_ari_applications_filter_cb(), ast_ari_applications_get_cb(), ast_ari_applications_subscribe_cb(), ast_ari_applications_unsubscribe_cb(), ast_ari_asterisk_add_log_cb(), ast_ari_asterisk_delete_log_cb(), ast_ari_asterisk_delete_object_cb(), ast_ari_asterisk_get_global_var_cb(), ast_ari_asterisk_get_info_cb(), ast_ari_asterisk_get_module_cb(), ast_ari_asterisk_get_object_cb(), ast_ari_asterisk_load_module_cb(), ast_ari_asterisk_reload_module_cb(), ast_ari_asterisk_rotate_log_cb(), ast_ari_asterisk_set_global_var_cb(), ast_ari_asterisk_unload_module_cb(), ast_ari_asterisk_update_object_cb(), ast_ari_bridges_add_channel_cb(), ast_ari_bridges_clear_video_source_cb(), ast_ari_bridges_create_cb(), ast_ari_bridges_create_with_id_cb(), ast_ari_bridges_destroy_cb(), ast_ari_bridges_get_cb(), ast_ari_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), ast_ari_bridges_record_cb(), ast_ari_bridges_remove_channel_cb(), ast_ari_bridges_set_video_source_cb(), ast_ari_bridges_start_moh_cb(), ast_ari_bridges_stop_moh_cb(), ast_ari_channels_answer_cb(), ast_ari_channels_continue_in_dialplan_cb(), ast_ari_channels_create_cb(), ast_ari_channels_dial_cb(), ast_ari_channels_external_media_cb(), ast_ari_channels_get_cb(), ast_ari_channels_get_channel_var_cb(), ast_ari_channels_hangup_cb(), ast_ari_channels_hold_cb(), ast_ari_channels_move_cb(), ast_ari_channels_mute_cb(), ast_ari_channels_originate_cb(), ast_ari_channels_originate_with_id_cb(), ast_ari_channels_play_cb(), ast_ari_channels_play_with_id_cb(), ast_ari_channels_record_cb(), ast_ari_channels_redirect_cb(), ast_ari_channels_ring_cb(), ast_ari_channels_ring_stop_cb(), ast_ari_channels_rtpstatistics_cb(), ast_ari_channels_send_dtmf_cb(), ast_ari_channels_set_channel_var_cb(), ast_ari_channels_snoop_channel_cb(), ast_ari_channels_snoop_channel_with_id_cb(), ast_ari_channels_start_moh_cb(), ast_ari_channels_start_silence_cb(), ast_ari_channels_stop_moh_cb(), ast_ari_channels_stop_silence_cb(), ast_ari_channels_unhold_cb(), ast_ari_channels_unmute_cb(), ast_ari_device_states_delete_cb(), ast_ari_device_states_get_cb(), ast_ari_device_states_update_cb(), ast_ari_endpoints_get_cb(), ast_ari_endpoints_list_by_tech_cb(), ast_ari_endpoints_refer_cb(), ast_ari_endpoints_refer_to_endpoint_cb(), ast_ari_endpoints_send_message_cb(), ast_ari_endpoints_send_message_to_endpoint_cb(), ast_ari_events_user_event_cb(), ast_ari_mailboxes_delete_cb(), ast_ari_mailboxes_get_cb(), ast_ari_mailboxes_update_cb(), ast_ari_playbacks_control_cb(), ast_ari_playbacks_get_cb(), ast_ari_playbacks_stop_cb(), ast_ari_recordings_cancel_cb(), ast_ari_recordings_copy_stored_cb(), ast_ari_recordings_delete_stored_cb(), ast_ari_recordings_get_live_cb(), ast_ari_recordings_get_stored_cb(), ast_ari_recordings_get_stored_file_cb(), ast_ari_recordings_mute_cb(), ast_ari_recordings_pause_cb(), ast_ari_recordings_stop_cb(), ast_ari_recordings_unmute_cb(), ast_ari_recordings_unpause_cb(), ast_ari_sounds_get_cb(), ast_ari_sounds_list_cb(), ast_category_inherit(), ast_cli_perms_init(), ast_config_text_file_save2(), ast_http_get_auth(), ast_http_get_cookies(), ast_http_manid_from_vars(), ast_iax2_new(), ast_json_object_create_vars(), ast_load_realtime_fields(), ast_media_cache_create_or_update(), ast_set_variables(), ast_sorcery_changeset_create(), ast_sorcery_object_get_extended(), ast_sorcery_object_set_extended(), ast_sorcery_objectset_apply(), ast_sorcery_objectset_json_create(), ast_stream_get_metadata(), ast_stream_get_metadata_list(), ast_stream_set_metadata(), ast_strip(), ast_variable_find_in_list(), ast_variable_find_last_in_list(), ast_variable_find_variable_in_list(), ast_variable_list_append_hint(), ast_variable_list_join(), ast_variable_list_replace(), ast_variable_list_replace_variable(), ast_variable_list_sort(), ast_variable_lists_match(), ast_variable_update(), ast_variables_destroy(), ast_variables_dup(), ast_variables_reverse(), astman_append_headers(), authenticate_reply(), authenticate_user(), build_calendar(), build_peer(), build_profile(), build_user(), chan_pjsip_new(), conf_exec(), convert_attribute_name_from_ldap(), convert_attribute_name_to_ldap(), copy_plain_file(), create_vmaccount(), destroy_curl(), destroy_odbc(), do_say(), does_category_match(), fields_handler(), find_queue_by_name_rt(), get_header(), get_object_variables(), handle_cli_dialplan_save(), handle_options(), handle_showchan(), init_logger_chain(), ldap_table_config_add_attribute(), load_config(), mbl_load_adapter(), mbl_load_device(), minivm_account_func_read(), mkintf(), new_realtime_sqlite3_db(), parse_config(), process_cors_request(), process_text_line(), realtime_curl(), realtime_ldap(), realtime_ldap_base_ap(), realtime_ldap_entry_to_var(), realtime_ldap_result_to_vars(), realtime_multi_curl(), realtime_multi_ldap(), realtime_multi_odbc(), realtime_odbc(), realtime_peer(), realtime_sqlite3_destroy(), realtime_sqlite3_helper(), realtime_sqlite3_store(), realtime_sqlite3_update(), realtime_sqlite3_update2(), realtime_user(), reload(), reload_followme(), reload_queue_rules(), reload_single_queue(), rtp_reload(), set_config(), sorcery_astdb_filter_objectset(), sorcery_is_explicit_name_met(), sorcery_realtime_filter_objectset(), store_curl(), store_odbc(), test_config_validity(), test_sorcery_transform(), update_curl(), update_odbc(), variable_named(), verify_user_event_fields(), and xml_translate().

int object

0 for variable, 1 for object

Definition at line 96 of file include/asterisk/config.h.

Referenced by ast_config_text_file_save2(), handle_updates(), and process_text_line().

char stuff

Contents of file, name, and value in that order stuffed here.

Note
File must be stuffed before name because of ast_include_rename().

Definition at line 106 of file include/asterisk/config.h.

Referenced by ast_strip().

struct ast_comment* trailing

the last object in the list will get assigned any trailing comments when EOF is hit

Definition at line 101 of file include/asterisk/config.h.

Referenced by ast_config_text_file_save2(), and config_text_file_load().

const char* value

Variable value. Stored in stuff[] at struct end.

Examples:
app_skel.c.

Definition at line 87 of file include/asterisk/config.h.

Referenced by __ast_sorcery_apply_config(), acl_handler_fn(), aco_handler(), aco_process_var(), apply_general_options(), apply_options_full(), ast_ari_applications_filter_cb(), ast_ari_applications_get_cb(), ast_ari_applications_subscribe_cb(), ast_ari_applications_unsubscribe_cb(), ast_ari_asterisk_add_log_cb(), ast_ari_asterisk_delete_log_cb(), ast_ari_asterisk_delete_object_cb(), ast_ari_asterisk_get_global_var_cb(), ast_ari_asterisk_get_info_cb(), ast_ari_asterisk_get_module_cb(), ast_ari_asterisk_get_object_cb(), ast_ari_asterisk_load_module_cb(), ast_ari_asterisk_reload_module_cb(), ast_ari_asterisk_rotate_log_cb(), ast_ari_asterisk_set_global_var_cb(), ast_ari_asterisk_unload_module_cb(), ast_ari_asterisk_update_object_cb(), ast_ari_bridges_add_channel_cb(), ast_ari_bridges_clear_video_source_cb(), ast_ari_bridges_create_cb(), ast_ari_bridges_create_with_id_cb(), ast_ari_bridges_destroy_cb(), ast_ari_bridges_get_cb(), ast_ari_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), ast_ari_bridges_record_cb(), ast_ari_bridges_remove_channel_cb(), ast_ari_bridges_set_video_source_cb(), ast_ari_bridges_start_moh_cb(), ast_ari_bridges_stop_moh_cb(), ast_ari_channels_answer_cb(), ast_ari_channels_continue_in_dialplan_cb(), ast_ari_channels_create_cb(), ast_ari_channels_dial_cb(), ast_ari_channels_external_media_cb(), ast_ari_channels_get_cb(), ast_ari_channels_get_channel_var_cb(), ast_ari_channels_hangup_cb(), ast_ari_channels_hold_cb(), ast_ari_channels_move_cb(), ast_ari_channels_mute_cb(), ast_ari_channels_originate_cb(), ast_ari_channels_originate_with_id_cb(), ast_ari_channels_play_cb(), ast_ari_channels_play_with_id_cb(), ast_ari_channels_record_cb(), ast_ari_channels_redirect_cb(), ast_ari_channels_ring_cb(), ast_ari_channels_ring_stop_cb(), ast_ari_channels_rtpstatistics_cb(), ast_ari_channels_send_dtmf_cb(), ast_ari_channels_set_channel_var_cb(), ast_ari_channels_snoop_channel_cb(), ast_ari_channels_snoop_channel_with_id_cb(), ast_ari_channels_start_moh_cb(), ast_ari_channels_start_silence_cb(), ast_ari_channels_stop_moh_cb(), ast_ari_channels_stop_silence_cb(), ast_ari_channels_unhold_cb(), ast_ari_channels_unmute_cb(), ast_ari_device_states_delete_cb(), ast_ari_device_states_get_cb(), ast_ari_device_states_update_cb(), ast_ari_endpoints_get_cb(), ast_ari_endpoints_list_by_tech_cb(), ast_ari_endpoints_refer_cb(), ast_ari_endpoints_refer_to_endpoint_cb(), ast_ari_endpoints_send_message_cb(), ast_ari_endpoints_send_message_to_endpoint_cb(), ast_ari_events_user_event_cb(), ast_ari_mailboxes_delete_cb(), ast_ari_mailboxes_get_cb(), ast_ari_mailboxes_update_cb(), ast_ari_playbacks_control_cb(), ast_ari_playbacks_get_cb(), ast_ari_playbacks_stop_cb(), ast_ari_recordings_cancel_cb(), ast_ari_recordings_copy_stored_cb(), ast_ari_recordings_delete_stored_cb(), ast_ari_recordings_get_live_cb(), ast_ari_recordings_get_stored_cb(), ast_ari_recordings_get_stored_file_cb(), ast_ari_recordings_mute_cb(), ast_ari_recordings_pause_cb(), ast_ari_recordings_stop_cb(), ast_ari_recordings_unmute_cb(), ast_ari_recordings_unpause_cb(), ast_ari_sounds_get_cb(), ast_ari_sounds_list_cb(), ast_cli_perms_init(), ast_config_text_file_save2(), ast_http_get_auth(), ast_http_get_cookies(), ast_http_manid_from_vars(), ast_iax2_new(), ast_json_object_create_vars(), ast_json_to_ast_variables(), ast_load_realtime_fields(), ast_media_cache_create_or_update(), ast_set_variables(), ast_sorcery_changeset_create(), ast_sorcery_object_get_extended(), ast_sorcery_objectset_json_create(), ast_stream_get_metadata(), ast_stream_get_metadata_list(), ast_variable_find_in_list(), ast_variable_find_last_in_list(), ast_variable_list_join(), ast_variable_lists_match(), ast_variable_update(), ast_variables_dup(), ast_variables_match(), astman_append_headers(), authenticate_reply(), authenticate_user(), bool_handler_fn(), boolflag_handler_fn(), build_calendar(), build_peer(), build_profile(), build_user(), chan_pjsip_new(), chararray_handler_fn(), codec_handler_fn(), conf_exec(), config_ldap(), convert_attribute_name_from_ldap(), convert_attribute_name_to_ldap(), copy_plain_file(), create_vmaccount(), curl_header_cb(), custom_bitfield_handler(), custom_connection_handler(), custom_group_handler(), custom_transport_handler(), destroy_curl(), do_say(), does_category_match(), double_handler_fn(), encoding_format_handler(), find_queue_by_name_rt(), get_header(), get_object_variables(), handle_cli_dialplan_save(), handle_options(), handle_showchan(), init_logger_chain(), int_handler_fn(), load_config(), mbl_load_adapter(), mbl_load_device(), minivm_account_func_read(), mkintf(), new_realtime_sqlite3_db(), option_handler_findslot(), option_handler_parkedfeature(), option_handler_parkpos(), parse_config(), password_format_handler(), process_cors_request(), process_text_line(), realtime_curl(), realtime_ldap_base_ap(), realtime_ldap_result_to_vars(), realtime_multi_curl(), realtime_multi_ldap(), realtime_peer(), realtime_sqlite3_destroy(), realtime_sqlite3_helper(), realtime_sqlite3_store(), realtime_sqlite3_update(), realtime_sqlite3_update2(), realtime_user(), reload(), reload_followme(), reload_queue_rules(), reload_single_queue(), rtp_reload(), semicolon_count_var(), set_config(), sockaddr_handler_fn(), store_curl(), stringfield_handler_fn(), test_config_validity(), test_sorcery_transform(), timelen_handler_fn(), timeval_str2struct(), uint_handler_fn(), update_curl(), update_odbc(), uuid_type_handler(), verify_user_event_fields(), and xml_translate().


The documentation for this struct was generated from the following files: