Asterisk - The Open Source Telephony Project  18.5.0
Macros | Typedefs | Enumerations | Functions | Variables
logger.h File Reference

Support for logging to various files, console and syslog Configuration in file logger.conf. More...

#include "asterisk/options.h"
Include dependency graph for logger.h:

Go to the source code of this file.

Macros

#define __LOG_DEBUG   0
 
#define __LOG_DTMF   6
 
#define __LOG_ERROR   4
 
#define __LOG_NOTICE   2
 
#define __LOG_TRACE   1
 
#define __LOG_VERBOSE   5
 
#define __LOG_WARNING   3
 
#define _A_   __FILE__, __LINE__, __PRETTY_FUNCTION__
 
#define AST_CALLID_BUFFER_LENGTH   13
 
#define ast_debug(level, ...)
 Log a DEBUG message. More...
 
#define AST_LOG_DEBUG   __LOG_DEBUG, _A_
 
#define AST_LOG_DTMF   __LOG_DTMF, _A_
 
#define ast_log_dynamic_level(level, ...)   ast_log(level, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)
 Send a log message to a dynamically registered log level. More...
 
#define AST_LOG_ERROR   __LOG_ERROR, _A_
 
#define AST_LOG_NOTICE   __LOG_NOTICE, _A_
 
#define AST_LOG_TRACE   __LOG_TRACE, _A_
 
#define AST_LOG_VERBOSE   __LOG_VERBOSE, _A_
 
#define AST_LOG_WARNING   __LOG_WARNING, _A_
 
#define ast_trace(level, ...)
 Print a basic trace message. More...
 
#define ast_trace_dec_indent()   _ast_trace_dec_indent()
 
#define ast_trace_get_indent()   _ast_trace_get_indent()
 
#define ast_trace_inc_indent()   _ast_trace_inc_indent()
 
#define ast_trace_log(__level, __log_level, ...)
 
#define ast_trace_raw(level, indent_type, ...)
 Print a trace message. More...
 
#define ast_trace_set_indent(indent)   _ast_trace_set_indent(indent)
 
#define ast_verb(level, ...)
 
#define ast_verb_callid(level, callid, ...)
 
#define ast_verbose(...)   __ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, -1, __VA_ARGS__)
 
#define ast_verbose_callid(callid, ...)   __ast_verbose_callid(__FILE__, __LINE__, __PRETTY_FUNCTION__, -1, callid, __VA_ARGS__)
 
#define DEBUG_ATLEAST(level)
 
#define DEBUG_M(a)
 
#define EVENTLOG   "event_log"
 
#define LOG_DEBUG   __LOG_DEBUG, _A_
 
#define LOG_DTMF   __LOG_DTMF, _A_
 
#define LOG_ERROR   __LOG_ERROR, _A_
 
#define LOG_NOTICE   __LOG_NOTICE, _A_
 
#define LOG_TRACE   __LOG_TRACE, _A_
 
#define LOG_VERBOSE   __LOG_VERBOSE, _A_
 
#define LOG_WARNING   __LOG_WARNING, _A_
 
#define NUMLOGLEVELS   32
 
#define QUEUELOG   "queue_log"
 
#define SCOPE_ENTER(level, ...)
 Non RAII_VAR Scope Trace macros The advantage of these macros is that the EXITs will have the actual line number where the scope exited. Much less code is required as well. More...
 
#define SCOPE_ENTER_TASK(level, indent, ...)
 
#define SCOPE_EXIT(...)
 Scope Exit. More...
 
#define SCOPE_EXIT_EXPR(__expr, ...)
 
#define SCOPE_EXIT_LOG(__log_level, ...)
 
#define SCOPE_EXIT_LOG_EXPR(__expr, __log_level, ...)
 
#define SCOPE_EXIT_LOG_RTN(__log_level, ...)
 
#define SCOPE_EXIT_LOG_RTN_VALUE(__value, __log_level, ...)
 
#define SCOPE_EXIT_RTN(...)
 Scope Exit with return. More...
 
#define SCOPE_EXIT_RTN_VALUE(__return_value, ...)
 Scope Exit with return value. More...
 
#define SCOPE_TRACE(level, ...)
 Print a trace message with details when a scope is entered or existed. More...
 
#define TRACE_ATLEAST(level)
 
#define VERBOSE_HASMAGIC(x)   (*(signed char *) (x) < 0)
 
#define VERBOSE_MAGIC2LEVEL(x)   (((char) -*(signed char *) (x)) - 1)
 
#define VERBOSE_PREFIX_1   " "
 
#define VERBOSE_PREFIX_2   " == "
 
#define VERBOSE_PREFIX_3   " -- "
 
#define VERBOSE_PREFIX_4   " > "
 
#define VERBOSITY_ATLEAST(level)   ((level) <= ast_verb_sys_level)
 

Typedefs

typedef unsigned int ast_callid
 

Enumerations

enum  ast_logger_results { AST_LOGGER_SUCCESS = 0, AST_LOGGER_FAILURE = 1, AST_LOGGER_DECLINE = -1, AST_LOGGER_ALLOC_ERROR = -2 }
 
enum  ast_trace_indent_type {
  AST_TRACE_INDENT_SAME = 0, AST_TRACE_INDENT_INC_BEFORE, AST_TRACE_INDENT_INC_AFTER, AST_TRACE_INDENT_DEC_BEFORE,
  AST_TRACE_INDENT_DEC_AFTER, AST_TRACE_INDENT_PROVIDED, AST_TRACE_INDENT_NONE
}
 Controls if and when indenting is applied. More...
 

Functions

void __ast_trace (const char *file, int line, const char *func, enum ast_trace_indent_type indent_type, unsigned long indent, const char *format,...)
 
void __ast_verbose (const char *file, int line, const char *func, int level, const char *fmt,...)
 Send a verbose message (based on verbose level) More...
 
void __ast_verbose_ap (const char *file, int line, const char *func, int level, ast_callid callid, const char *fmt, va_list ap)
 
void __ast_verbose_callid (const char *file, int line, const char *func, int level, ast_callid callid, const char *fmt,...)
 Send a verbose message (based on verbose level) with deliberately specified callid. More...
 
unsigned long _ast_trace_dec_indent (void)
 Decrement the indent level. More...
 
unsigned long _ast_trace_get_indent (void)
 Get the current indent level. More...
 
unsigned long _ast_trace_inc_indent (void)
 Increment the indent level. More...
 
void _ast_trace_set_indent (unsigned long indent)
 Set the current indent level. More...
 
void ast_callid_strnprint (char *buffer, size_t buffer_size, ast_callid callid)
 copy a string representation of the callid into a target string More...
 
int ast_callid_threadassoc_add (ast_callid callid)
 Adds a known callid to thread storage of the calling thread. More...
 
int ast_callid_threadassoc_change (ast_callid callid)
 Sets what is stored in the thread storage to the given callid if it does not match what is already there. More...
 
int ast_callid_threadassoc_remove (void)
 Removes callid from thread storage of the calling thread. More...
 
int ast_callid_threadstorage_auto (ast_callid *callid)
 Checks thread storage for a callid and stores a reference if it exists. If not, then a new one will be created, bound to the thread, and a reference to it will be stored. More...
 
void ast_callid_threadstorage_auto_clean (ast_callid callid, int callid_created)
 Use in conjunction with ast_callid_threadstorage_auto. Cleans up the references and if the callid was created by threadstorage_auto, unbinds the callid from the threadstorage. More...
 
void ast_child_verbose (int level, const char *fmt,...)
 
void ast_console_puts (const char *string)
 write the string to the root console, and all attached network console clients More...
 
void ast_console_puts_mutable (const char *string, int level)
 log the string to the console, and all attached console clients More...
 
void ast_console_puts_mutable_full (const char *message, int level, int sublevel)
 log the string to the console, and all attached console clients More...
 
void ast_console_toggle_loglevel (int fd, int level, int state)
 enables or disables logging of a specified level to the console fd specifies the index of the console receiving the level change level specifies the index of the logging level being toggled state indicates whether logging will be on or off (0 for off, 1 for on) More...
 
void ast_console_toggle_mute (int fd, int silent)
 mute or unmute a console from logging More...
 
ast_callid ast_create_callid (void)
 factory function to create a new uniquely identifying callid. More...
 
unsigned int ast_debug_get_by_module (const char *module)
 Get the debug level for a module. More...
 
int ast_dynamic_logger_level (const char *name)
 Checks if a dynamic logger level exists. More...
 
void ast_init_logger_for_socket_console (void)
 load logger.conf configuration for console socket connections More...
 
int ast_is_logger_initialized (void)
 Test if logger is initialized. More...
 
void ast_log (int level, const char *file, int line, const char *function, const char *fmt,...)
 Used for sending a log message This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(AST_LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?\n", "flux capacitor", 10); where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. These are implemented as macros, that will provide the function with the needed arguments. More...
 
void ast_log_ap (int level, const char *file, int line, const char *function, const char *fmt, va_list ap)
 
void ast_log_backtrace (void)
 Log a backtrace of the current thread's execution stack to the Asterisk log. More...
 
void ast_log_callid (int level, const char *file, int line, const char *function, ast_callid callid, const char *fmt,...)
 Used for sending a log message with a known call_id This is a modified logger function which is functionally identical to the above logger function, it just include a call_id argument as well. If NULL is specified here, no attempt will be made to join the log message with a call_id. More...
 
void ast_log_safe (int level, const char *file, int line, const char *function, const char *fmt,...)
 Used for sending a log message with protection against recursion. More...
 
int ast_logger_create_channel (const char *log_channel, const char *components)
 Create a log channel. More...
 
int ast_logger_get_channels (int(*logentry)(const char *channel, const char *type, const char *status, const char *configuration, void *data), void *data)
 Retrieve the existing log channels. More...
 
const char * ast_logger_get_dateformat (void)
 Get the logger configured date format. More...
 
int ast_logger_get_queue_limit (void)
 Get the maximum number of messages allowed in the processing queue. More...
 
int ast_logger_register_level (const char *name)
 Register a new logger level. More...
 
int ast_logger_remove_channel (const char *log_channel)
 Delete the specified log channel. More...
 
int ast_logger_rotate (void)
 Reload logger while rotating log files. More...
 
int ast_logger_rotate_channel (const char *log_channel)
 Rotate the specified log channel. More...
 
void ast_logger_set_queue_limit (int queue_limit)
 Set the maximum number of messages allowed in the processing queue. More...
 
void ast_logger_unregister_level (const char *name)
 Unregister a previously registered logger level. More...
 
void ast_queue_log (const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt,...)
 
ast_callid ast_read_threadstorage_callid (void)
 extracts the callerid from the thread More...
 
int ast_register_verbose (void(*verboser)(const char *string)) attribute_warn_unused_result
 
unsigned int ast_trace_get_by_module (const char *module)
 Get the trace level for a module. More...
 
int ast_unregister_verbose (void(*verboser)(const char *string)) attribute_warn_unused_result
 
int ast_verb_console_get (void)
 Get this thread's console verbosity level. More...
 
void ast_verb_console_register (int *level)
 Register this thread's console verbosity level pointer. More...
 
void ast_verb_console_set (int verb_level)
 Set this thread's console verbosity level. More...
 
void ast_verb_console_unregister (void)
 Unregister this thread's console verbosity level. More...
 
void ast_verb_update (void)
 Re-evaluate the system max verbosity level (ast_verb_sys_level). More...
 

Variables

int ast_verb_sys_level
 

Detailed Description

Support for logging to various files, console and syslog Configuration in file logger.conf.

Definition in file logger.h.

Macro Definition Documentation

◆ __LOG_DEBUG

#define __LOG_DEBUG   0

◆ __LOG_DTMF

#define __LOG_DTMF   6

Definition at line 306 of file logger.h.

Referenced by log_exec().

◆ __LOG_ERROR

#define __LOG_ERROR   4

◆ __LOG_NOTICE

#define __LOG_NOTICE   2

Definition at line 262 of file logger.h.

Referenced by get_log_level(), and log_exec().

◆ __LOG_TRACE

#define __LOG_TRACE   1

Definition at line 251 of file logger.h.

Referenced by __ast_trace().

◆ __LOG_VERBOSE

#define __LOG_VERBOSE   5

◆ __LOG_WARNING

#define __LOG_WARNING   3

◆ _A_

#define _A_   __FILE__, __LINE__, __PRETTY_FUNCTION__

Definition at line 235 of file logger.h.

◆ AST_CALLID_BUFFER_LENGTH

#define AST_CALLID_BUFFER_LENGTH   13

Definition at line 46 of file logger.h.

Referenced by ast_channel_callid_set(), and iax_pvt_callid_new().

◆ ast_debug

#define ast_debug (   level,
  ... 
)
Value:
do { \
if (DEBUG_ATLEAST(level)) { \
ast_log(AST_LOG_DEBUG, __VA_ARGS__); \
} \
} while (0)
#define AST_LOG_DEBUG
Definition: logger.h:246
int * level
Definition: logger.c:2223
#define DEBUG_ATLEAST(level)
Definition: logger.h:441

Log a DEBUG message.

Parameters
levelThe minimum value of option_debug for this message to get logged
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 452 of file logger.h.

Referenced by __adsi_transmit_messages(), __analog_handle_event(), __analog_ss_thread(), __ast_answer(), __ast_channel_alloc_ap(), __ast_context_destroy(), __ast_dsp_call_progress(), __ast_file_read_dirs(), __ast_pbx_run(), __ast_play_and_record(), __ast_read(), __ast_sorcery_object_type_insert_wizard(), __cleanup_registration(), __dahdi_exception(), __expire_registry(), __find_call(), __find_callno(), __init_manager(), __schedule_action(), __send_lagrq(), __send_ping(), __sip_ack(), __sip_alloc(), __sip_autodestruct(), __sip_reliable_xmit(), __sip_semi_ack(), __sip_xmit(), __ssl_setup(), __start_register_timeout(), __start_session_timer(), _ast_device_state(), _ast_odbc_request_obj2(), _macro_exec(), _pgsql_exec(), _sip_tcp_helper_thread(), access_counter_file(), acf_abs_exec(), acf_curl_helper(), acf_curlopt_helper(), acf_curlopt_write(), acf_faxopt_write(), acf_jabberreceive_read(), acf_max_exec(), acf_min_exec(), acf_odbc_read(), acf_rand_exec(), acf_version_exec(), aco_process_config(), action_bridge(), action_waitevent(), activate_thread(), actual_load_config(), add_date_header(), add_email_attachment(), add_event_to_list(), add_exten_to_pattern_tree(), add_header(), add_header_offhook(), add_msid_to_stream(), add_realm_authentication(), add_sdp(), add_sip_domain(), add_vm_recipients_from_string(), ademco_detect_format(), adsi_begin_download(), adsi_load_session(), adsi_load_vmail(), adsi_transmit_message_full(), agent_after_bridge_cb(), agent_alert(), agent_pvt_destructor(), agent_run(), agents_post_apply_config(), agi_exec_full(), alarmreceiver_exec(), alloc_playback_chan(), alloc_sub(), allow_and_or_replace_unsolicited(), alsa_card_init(), alsa_write(), aMYSQL_fetch(), analog_answer(), analog_available(), analog_call(), analog_exception(), analog_fixup(), analog_handle_dtmf(), analog_handle_init_event(), analog_hangup(), analog_request(), analog_send_callerid(), analog_ss_thread(), analog_swap_subs(), analog_update_conf(), analyse_softmix_stats(), announce_thread(), anonymous_identify(), app_control_answer(), app_control_remove_channel_from_bridge(), app_control_silence_start(), app_exec(), app_handle_subscriptions(), app_subscribe(), app_subscribe_bridge(), app_subscribe_channel(), app_subscribe_endpoint(), app_unsubscribe(), append_transaction(), append_var_and_value_to_filter(), applicationmap_handler(), apply_acls(), apply_negotiated_sdp_stream(), ari_bridges_play_new(), ari_channels_handle_originate_with_id(), array(), ast_add_hint(), ast_app_exec_macro(), ast_apply_ha(), ast_ari_asterisk_update_object(), ast_ari_channels_continue_in_dialplan(), ast_ari_get_docs(), ast_ari_invoke(), ast_ari_websocket_events_event_websocket_attempted(), ast_ari_websocket_events_event_websocket_established(), ast_ari_websocket_session_read(), ast_audiohook_write_frame(), ast_autochan_destroy(), ast_autochan_new_channel(), ast_autochan_setup(), ast_autoservice_start(), ast_autoservice_stop(), ast_bridge_channel_establish_roles(), ast_bridge_channel_feature_digit(), ast_bridge_channel_kick(), ast_bridge_channel_leave_bridge_nolock(), ast_bridge_channel_restore_formats(), ast_bridge_depart(), ast_bridge_destroy(), ast_bridge_features_enable(), ast_bridge_interval_hook(), ast_bridge_remove(), ast_bridge_setup_after_goto(), ast_calendar_clear_events(), ast_carefulwrite(), ast_cdr_backend_suspend(), ast_cdr_backend_unsuspend(), ast_cdr_engine_term(), ast_cdr_fork(), ast_channel_add_bridge_role(), ast_channel_audiohook_count_by_source(), ast_channel_audiohook_count_by_source_running(), ast_channel_callid_set(), ast_channel_clear_bridge_roles(), ast_channel_destructor(), ast_channel_inherit_variables(), ast_channel_register(), ast_channel_remove_bridge_role(), ast_channel_request_stream_topology_change(), ast_channel_softhangup_withcause_locked(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_channel_unregister(), ast_check_hangup(), ast_check_signature_bin(), ast_config_text_file_save2(), ast_connected_line_parse_data(), ast_context_add_include2(), ast_context_find_or_create(), ast_data_buffer_put(), ast_db_del(), ast_dial_run(), ast_dns_resolve_ipv6_and_ipv4(), ast_dns_resolver_add_record(), ast_dns_resolver_set_result(), ast_dnsmgr_release(), ast_do_pickup(), ast_dsp_busydetect(), ast_dsp_process(), ast_dsp_set_busy_pattern(), ast_eid_to_str(), ast_eivr_setvariable(), ast_find_ourip(), ast_format_cap_update_by_allow_disallow(), ast_get_encoded_char(), ast_get_enum(), ast_get_money_en_dollars_str(), ast_get_srv(), ast_get_txt(), ast_hangup(), ast_http_body_discard(), ast_http_create_response(), ast_http_get_contents(), ast_http_send(), ast_iax2_new(), ast_io_add(), ast_io_dump(), ast_io_wait(), ast_iostream_write(), ast_ivr_menu_run_internal(), ast_json_utf8_check_len(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_logger_unregister_level(), ast_media_cache_retrieve(), ast_media_index_update_for_file(), ast_module_register(), ast_module_unregister(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_msg_has_destination(), ast_odbc_find_table(), ast_odbc_release_obj(), ast_ouraddrfor(), ast_parse_arg(), ast_pbx_h_exten_run(), ast_pickup_call(), ast_pktccops_gate_alloc(), ast_presence_state_helper(), ast_prod(), ast_read_generator_actions(), ast_readaudio_callback(), ast_readvideo_callback(), ast_realtime_is_mapping_defined(), ast_redirecting_parse_data(), ast_rtcp_interpret(), ast_rtp_codecs_payloads_set_m_type(), ast_rtp_codecs_payloads_unset(), ast_rtp_codecs_payloads_xover(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_instance_new(), ast_rtp_interpret(), ast_rtp_read(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_en(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), ast_say_date_with_format_gr(), ast_say_date_with_format_he(), ast_say_date_with_format_is(), ast_say_date_with_format_it(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), ast_say_date_with_format_th(), ast_say_date_with_format_vi(), ast_say_date_with_format_zh(), ast_say_enumeration_full_da(), ast_say_enumeration_full_de(), ast_say_enumeration_full_en(), ast_say_enumeration_full_he(), ast_say_enumeration_full_is(), ast_say_number_full_da(), ast_say_number_full_de(), ast_say_number_full_en_GB(), ast_say_number_full_es(), ast_say_number_full_fr(), ast_say_number_full_gr(), ast_say_number_full_he(), ast_say_number_full_hu(), ast_say_number_full_is(), ast_say_number_full_it(), ast_say_number_full_ja(), ast_say_number_full_nl(), ast_say_number_full_no(), ast_say_number_full_ru(), ast_say_number_full_se(), ast_say_number_full_ur(), ast_say_number_full_zh(), ast_sched_add_variable(), ast_sched_del(), ast_sched_runq(), ast_sched_wait(), ast_sched_when(), ast_sdp_srtp_alloc(), ast_search_dns(), ast_search_dns_ex(), ast_senddigit_begin(), ast_sendtext_data(), ast_serializer_pool_destroy(), ast_set_default_eid(), ast_set_read_format_path(), ast_set_write_format_path(), ast_settimeout_full(), ast_sip_get_distributor_serializer(), ast_sip_ouraddrfor(), ast_sip_register_authenticator(), ast_sip_register_endpoint_identifier_with_name(), ast_sip_register_outbound_authenticator(), ast_sip_requires_authentication(), ast_sip_session_end_if_deferred(), ast_sip_session_register_sdp_handler(), ast_sip_session_terminate(), ast_sip_subscription_destroy(), ast_sip_transport_monitor_register_replace(), ast_sip_unregister_authenticator(), ast_sip_unregister_endpoint_identifier(), ast_sip_unregister_outbound_authenticator(), ast_sockaddr_resolve_first_af(), ast_sockaddr_split_hostport(), ast_softhangup_nolock(), ast_sorcery_is_stale(), ast_sorcery_objectset_json_create(), ast_srtp_add_stream(), ast_srtp_change_source(), ast_srtp_unprotect(), ast_ssl_init(), ast_statsd_log_string(), ast_stir_shaken_verify(), ast_str_retrieve_variable(), ast_str_substitute_variables_full(), ast_streamfile(), ast_tcptls_client_create(), ast_tcptls_close_session_file(), ast_tcptls_server_start(), ast_tcptls_server_stop(), ast_tone_detect_init(), ast_translate(), ast_udptl_read(), ast_unlock_path_flock(), ast_unlock_path_lockfile(), ast_unreal_hangup(), ast_uuid_init(), ast_websocket_uri_cb(), ast_websocket_write(), ast_websocket_write_string(), ast_write_stream(), ast_writestream(), ast_xml_query(), ast_xmldoc_load_documentation(), asterisk_publication_devicestate(), asterisk_publication_devicestate_state_change(), asterisk_publication_mailboxstate(), asterisk_publication_mwi_state_change(), async_agi_read_frame(), attended_transfer_monitor_thread(), attended_transfer_properties_alloc(), attended_transfer_properties_destructor(), attended_transfer_properties_shutdown(), atxfer_abort(), atxfer_complete(), atxfer_swap(), atxfer_threeway(), atxfer_transferer_hangup(), audiohook_read_frame_both(), auth_http_callback(), auth_observer(), auth_username_identify(), authenticate(), background_detect_exec(), bridge_after_cb_failed(), bridge_agent_hold_ack(), bridge_agent_hold_heartbeat(), bridge_agent_hold_push(), bridge_base_init(), bridge_channel_complete_join(), bridge_channel_depart(), bridge_channel_dtmf_stream(), bridge_channel_feature_digit_add(), bridge_channel_handle_interval(), bridge_channel_handle_write(), bridge_channel_internal_join(), bridge_channel_internal_pull(), bridge_channel_internal_push_full(), bridge_channel_moving(), bridge_channel_settle_owed_events(), bridge_channel_talking(), bridge_channel_wait(), bridge_dissolve(), bridge_do_merge(), bridge_do_move(), bridge_manager_destroy(), bridge_merge_locked(), bridge_move_locked(), bridge_queue_action_nodup(), bridge_snapshot_update_create(), bridge_snapshot_update_dtor(), bridge_stasis_push(), bridge_stasis_push_peek(), bridge_tech_deferred_destroy(), build_node_children(), build_path(), build_peer(), build_reply_digest(), build_resource_tree(), build_route(), build_transactions(), cache_get_callno_locked(), cache_lookup_internal(), cache_save_hint(), caching_topic_exec(), calc_metric(), calc_rxstamp(), calc_timestamp(), caldav_destructor(), caldav_load_calendar(), calendar_destructor(), calendar_event_destructor(), calendar_query_exec(), caller_abort_agent(), callerid_feed_jp(), callerid_get_dtmf(), calltoken_required(), can_reuse_registration(), can_ring_entry(), cdata(), cdr_detach(), cdr_handler(), cdr_object_create_public_records(), cdr_object_finalize(), cdr_submit_batch(), chan_pjsip_digit_end(), chan_pjsip_read_stream(), chan_pjsip_sendtext_data(), chan_pjsip_set_rtp_peer(), chan_pjsip_write_stream(), change_callid_pvt(), change_outgoing_sdp_stream_media_address(), change_priority_caller_on_queue(), change_redirecting_information(), change_t38_state(), channel_do_masquerade(), channel_fill_empty_accountcode(), channel_fill_empty_peeraccount(), channel_spy(), channel_update_peeraccount(), check_expiration_thread(), check_for_nat(), check_key(), check_match(), check_nonce(), check_password(), check_peer_ok(), check_pendings(), check_provisioning(), check_resync(), check_srcaddr(), check_tcptls_cert_name(), cleaned_basedn(), cleanup_module(), cli_console_dial(), cli_odbc_read(), cli_odbc_write(), close_client(), close_mailbox(), close_udptl_connection(), codec_choose_from_prefs(), common_exec(), common_identify(), compare_timestamp(), compare_weight(), conf_add(), conf_change_state(), conf_del(), conf_run(), conf_send_event_to_participants(), conf_update_user_mute(), confbridge_handle_atxfer(), config_function_read(), config_handler(), config_ldap(), config_module(), config_mysql(), config_pgsql(), config_text_file_load(), configure_local_rtp(), confkick_exec(), console_read(), contact_observer_updated(), context_merge_incls_swits_igps_other_registrars(), control_silence_stop_now(), control_streamfile(), control_swap_channel_in_bridge(), controlplayback_exec(), convertH323CapToAsteriskCap(), cops_connect(), cops_construct_gate(), cops_gate_cmd(), cops_getmsg(), cops_sendmsg(), corosync_show_config(), corosync_show_members(), cpg_confchg_cb(), cpg_deliver_cb(), create_dirpath(), create_followme_number(), create_match_char_tree(), create_outgoing_sdp_stream(), create_virtual_subscriptions(), create_vmaccount(), crypto_activate(), crypto_init_keys(), crypto_load(), CRYPTO_set_id_callback(), CRYPTO_set_locking_callback(), custom_prepare(), dahdi_answer(), dahdi_call(), dahdi_cc_callback(), dahdi_conf_update(), dahdi_create_channel_range(), dahdi_destroy_channel_range(), dahdi_dial_str(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_ec_disable(), dahdi_ec_enable(), dahdi_fixup(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_iflist_extract(), dahdi_indicate(), dahdi_master_slave_link(), dahdi_master_slave_unlink(), dahdi_new(), dahdi_queryoption(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_sendtext(), dahdi_setoption(), dahdi_train_ec(), dahdi_translate(), dahdi_write(), datastore_destroy_cb(), db_destructor(), db_get_common(), deactivate_silence_generator(), debug_response_handler(), decode_frame(), decode_length(), defer_incoming_sdp_stream(), deltree_exec(), destroy_all_channels(), destroy_bridge(), destroy_conference_bridge(), destroy_event(), destroy_mysql(), destroy_pgsql(), destroy_subscription(), destroy_table_cache(), detect_callback(), detect_write(), determine_firstline_parts(), device_state_cb(), dial_bridge_after_cb(), dial_bridge_after_cb_failed(), dial_exec_full(), dial_handle_playtones(), dial_masquerade_breakdown(), dial_masquerade_fixup(), dial_trunk(), dialog_needdestroy(), dialog_unlink_all(), digest_check_auth(), disa_exec(), disable_t38(), discover_sqlite3_caps(), dispatch_message(), dispatch_thread_handler(), distributor(), dll_tests(), dns_system_resolver_process_query(), dnsmgr_refresh(), do_alignment_detection(), do_cdr(), do_magic_pickup(), do_message_auth(), do_monitor(), do_monitor_headset(), do_monitor_phone(), do_pktccops(), do_proxy_auth(), do_register(), do_register_expire(), do_say(), do_setnat(), do_state_change(), do_stop_session_timer(), do_waiting(), dtmf_detect(), dtmf_mode_refresh_cb(), dtmf_store_framehook(), dundi_answer_entity(), dundi_answer_query(), dundi_decrypt(), dundi_encrypt(), dundi_lookup_internal(), dundi_lookup_thread(), dundi_precache_internal(), dundi_precache_thread(), dundi_prop_precache(), dundi_query_thread(), encrypt_frame(), endelm(), endpt_send_request(), endpt_send_request_cb(), eval_exten_read(), ewscal_destructor(), ewscal_load_calendar(), exchangecal_destructor(), exchangecal_get_events_between(), exchangecal_load_calendar(), expand_gosub_args(), expiration_global_loaded(), expire_register(), exten_state_publisher_state_cb(), extension_is_compatible(), extension_state_cb(), fax_detect_framehook(), fax_gateway_detect_t38(), fax_gateway_detect_v21(), fax_gateway_framehook(), fax_gateway_request_t38(), fax_session_new(), fax_session_reserve(), feature_attended_transfer(), feature_blind_transfer(), festival_exec(), fetch_access_token(), fetch_google_access_token(), file_read(), file_write(), filter(), filter_on_tx_message(), find_account(), find_aor_for_resource(), find_best_technology(), find_body_generator(), find_command(), find_conf(), find_conf_realtime(), find_dialog(), find_load_queue_rt_friendly(), find_pub_handler(), find_queue_by_name_rt(), find_realtime_gw(), find_registrar_aor(), find_request_serializer(), find_subchannel_and_lock(), find_table(), find_table_cb(), find_tpeer(), findmeexec(), function_db_delete(), function_db_read(), g726_open(), generate_computational_cost(), generator_force(), generic_fax_exec(), generic_http_callback(), get_also_info(), get_destination(), get_ewscal_ids_for(), get_member_status(), get_outbound_endpoint(), get_refer_info(), get_sip_pvt_from_replaces(), get_write_timeout(), getproviderstate(), global_loaded_observer(), gosub_exec(), gosub_run(), grow(), handle_atsign(), handle_attended_transfer(), handle_blind_transfer(), handle_bridge_enter(), handle_call_outgoing(), handle_clear_alarms(), handle_cli_agi_add_cmd(), handle_client_state_destruction(), handle_command_response(), handle_frame(), handle_getoption(), handle_gosub(), handle_hangup(), handle_incoming(), handle_incoming_before_media(), handle_invite_replaces(), handle_jack_audio(), handle_local_optimization_end(), handle_masquerade(), handle_negotiated_sdp_session_media(), handle_offhook_message(), handle_output(), handle_registration_response(), handle_request(), handle_request_bye(), handle_request_cancel(), handle_request_do(), handle_request_info(), handle_request_invite(), handle_request_invite_st(), handle_request_notify(), handle_request_refer(), handle_request_register(), handle_request_subscribe(), handle_response(), handle_response_brsf(), handle_response_ciev(), handle_response_cind(), handle_response_cmgr(), handle_response_cmti(), handle_response_error(), handle_response_invite(), handle_response_notify(), handle_response_ok(), handle_response_refer(), handle_response_register(), handle_response_ring(), handle_response_subscribe(), handle_single_token(), handle_slash(), handle_sms_prompt(), handle_stimulus_message(), handle_streamfile(), handle_uri(), hangup_cause2sip(), has_destination_cb(), header_identify_match_check(), headset_send_ring(), hfp_parse_ciev(), hfp_parse_cind_indicator(), hfp_parse_cind_test(), hfp_parse_clip(), hfp_parse_cmti(), hfp_parse_ecav(), hook_destroy_cb(), hook_on(), http_callback(), http_post_callback(), httpd_helper_thread(), iax2_answer(), iax2_call(), iax2_destroy(), iax2_devicestate(), iax2_do_register(), iax2_hangup(), iax2_indicate(), iax2_key_rotate(), iax2_lock_callno_unless_destroyed(), iax2_provision(), iax2_read(), iax2_transfer(), iax2_trunk_queue(), iax2_write(), iax_provision_version(), ical_load_calendar(), icalendar_destructor(), ices_exec(), icesencode(), iconv_read(), ilbctolin_framein(), incoming_in_dialog_request(), indicate_connected_line(), indicate_data_internal(), inherit_channel_vars_from_id(), init_convolve_channel_pair(), init_jack_data(), initial_notify_task(), initialize_initreq(), initialize_udptl(), insert_user_in_contact_uri(), instance_destructor(), internal_bridge_after_cb(), internal_dnsmgr_lookup(), invent_message(), io_grow(), iostream_read(), ip_identify_match_check(), is_our_turn(), is_read_allowed(), is_recording(), is_write_allowed(), isAnsweringMachine(), jingle_action_session_terminate(), jingle_queue_hangup_with_cause(), jingle_read(), join_conference_bridge(), join_queue(), killpid(), kqueue_timer_close(), kqueue_timer_disable_continuous(), kqueue_timer_enable_continuous(), kqueue_timer_open(), kqueue_timer_set_rate(), last_message_index(), launch_asyncagi(), launch_monitor_thread(), launch_netscript(), ldap_loadentry(), ldap_reconnect(), leave_queue(), leave_voicemail(), line_identify(), lintospeex_feedback(), load_config(), load_general_config(), load_module(), load_modules(), load_mysql_config(), load_resource_list(), load_values_config(), loader_config_init(), local_attended_transfer(), local_devicestate(), log_events(), log_jitterstats(), logger_register_level(), lua_find_extension(), lua_pbx_exec(), make_email_file(), make_trunk(), manager_modulecheck(), manager_show_dialplan_helper(), massage_mods_for_entry(), match_aor(), match_filter(), matrix_rebuild(), mbl_call(), mbl_devicestate(), mbl_digit_end(), mbl_fixup(), mbl_hangup(), mbl_load_adapter(), mbl_load_device(), mbl_read(), mbl_write(), measurenoise(), meetme_cmd_helper(), memory_cache_stale_update_object(), message_template_build(), message_template_parse_filebody(), messaging_app_subscribe_endpoint(), messaging_app_unsubscribe_endpoint(), metermaidstate(), mgcp_answer(), mgcp_call(), mgcp_hangup(), mgcp_indicate(), mgcp_pktcgate_open(), mgcp_pktcgate_remove(), mgcp_prune_realtime_gateway(), mgcp_rtp_read(), mgcp_senddigit_begin(), mgcp_senddigit_end(), mgcp_ss(), mgcp_write(), mgcpsock_read(), minivm_accmess_exec(), minivm_delete_exec(), minivm_greet_exec(), misdn_hangup(), misdn_write(), mixmonitor_thread(), mkif(), module_on_rx_request(), modules_shutdown(), moh_class_destructor(), moh_scan_files(), monmp3thread(), mp3_exec(), msg_create_from_file(), msg_q_cb(), msg_send(), mwi_new_subscribe(), mwi_subscription_alloc(), mwi_subscription_destructor(), mwi_update_cb(), mwi_validate_for_aor(), my_connect_db(), my_dahdi_write(), my_distinctive_ring(), my_get_callerid(), my_handle_dtmf(), my_is_dialing(), my_load_module(), my_send_callerid(), my_set_waitingfordt(), MYSQL_exec(), mysql_log(), mysql_reconnect(), native_bridge_changed(), native_bridge_compatible(), native_bridge_is_capable(), native_rtp_bridge_channel_data_free(), native_rtp_bridge_compatible(), native_rtp_bridge_compatible_check(), native_rtp_bridge_framehook_attach(), native_rtp_bridge_framehook_detach(), native_rtp_bridge_join(), native_rtp_bridge_leave(), native_rtp_bridge_start(), native_rtp_bridge_stop(), native_rtp_bridge_suspend(), native_rtp_bridge_unsuspend(), native_start(), native_stop(), nbs_call(), nbs_hangup(), nbs_xread(), NBScat_exec(), negotiate_incoming_sdp_stream(), network_change_stasis_cb(), new_find_extension(), notify_channel(), notify_new_message(), object_type_loaded_observer(), obproxy_get(), odbc_load_module(), odbc_log(), odbc_obj_connect(), odbc_obj_disconnect(), odbc_txn_free(), on_dns_update_mwi(), on_dns_update_peer(), on_dns_update_registry(), on_moh_file(), on_rx_process_symmetric_transport(), onAlerting(), onCallCleared(), onCallEstablished(), onModeChanged(), onProgress(), ooh323_answer(), ooh323_destroy(), ooh323_hangup(), ooh323_indicate(), ooh323_onReceivedDigit(), ooh323_queryoption(), ooh323_rtp_read(), ooh323_set_read_format(), ooh323_set_write_format(), ooh323_write(), ooh323c_set_aliases(), ooh323c_start_call_thread(), originate_exec(), osp_auth(), osp_check_destination(), osp_create_provider(), osp_create_transaction(), osp_finish(), osp_get_provider(), osp_load(), osp_lookup(), osp_next(), osp_report_qos(), osp_validate_token(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), outbound_invite_auth(), parking_duration_callback(), parking_is_exten_park(), parking_notify_metermaids(), parse(), parse_config(), parse_cookies(), parse_minse(), parse_moved_contact(), parse_naptr(), parse_register_contact(), parse_request(), parse_session_expires(), parse_sip_options(), parse_uri_full(), participant_idle_mode_setup(), pbx_builtin_gotoif(), pbx_builtin_gotoiftime(), pbx_extension_helper(), pbx_find_extension(), pbx_load_module(), pbx_start_incoming_request(), pbx_substitute_variables_helper_full(), peer_set_srcaddr(), peercnt_add(), peercnt_modify(), peercnt_remove(), pending_members_remove(), pgsql_exec(), pgsql_log(), pgsql_reconnect(), phase_e_handler(), phone_answer(), phone_call(), phone_check_exception(), phone_digit_end(), phone_exception(), phone_hangup(), phone_indicate(), pl_odtworz_plik(), play_message_callerid(), play_message_duration(), pop_exec(), post_cdr(), post_raw(), precache_transactions(), prep_email_sub_vars(), print_list(), print_list_backwards(), print_sanitize_debug(), print_uri_debug(), printdigest(), proc_session_timer(), process_ast_dsp(), process_clearcache(), process_cn_rfc3389(), process_crypto(), process_dahdi(), process_dtmf_cisco(), process_dtmf_rfc2833(), process_events(), process_message(), process_message_callback(), process_my_load_module(), process_nat(), process_request(), process_sdp(), process_sdp_a_audio(), process_sdp_a_image(), process_sdp_o(), prometheus_metric_cmp(), prometheus_metric_register(), prometheus_metric_unregister(), publication_destroy_fn(), publish_event_to_corosync(), publish_request_initial(), pubsub_on_evsub_state(), pubsub_on_refresh_timeout(), pubsub_on_rx_mwi_notify_request(), pubsub_on_rx_refresh(), pubsub_on_rx_subscribe_request(), push_notify_channel(), queue_exec(), queue_mwi_event(), queue_publish_multi_channel_snapshot_blob(), queue_set_param(), queued_set_size(), radius_log(), raw_hangup(), read_header(), read_mf_digits(), read_sf_digits(), readexten_exec(), really_quit(), realtime_destroy_handler(), realtime_directory(), realtime_handler(), realtime_ldap_base_ap(), realtime_ldap_entry_to_var(), realtime_ldap_result_to_vars(), realtime_multi_handler(), realtime_multi_mysql(), realtime_multi_pgsql(), realtime_mysql(), realtime_peer(), realtime_pgsql(), realtime_store_handler(), realtime_update2_handler(), realtime_update_handler(), realtimefield_read(), receive_ademco_event(), receive_dtmf_digits(), receive_message(), receivefax_exec(), receivefax_t38_init(), record_exec(), record_file(), refer_attended_task(), refer_incoming_attended_request(), refer_incoming_blind_request(), refer_incoming_invite_request(), refer_incoming_refer_request(), refer_progress_alloc(), refer_progress_bridge(), refer_progress_framehook(), refer_progress_notify(), refresh_list(), reg_source_db(), regex(), register_aor_core(), register_request(), register_service(), registration_deleted_observer(), registration_loaded_observer(), release_doomed_pris(), release_transaction(), reload(), reload_config(), reload_followme(), reload_module(), reload_queue_members(), remove_handler(), remove_subscription(), replace(), reqprep(), require_pgsql(), res_sdp_crypto_build_offer(), res_sdp_crypto_parse_offer(), resend_reinvite(), resend_response(), resolve_first(), restart_monitor(), restore_conference(), restore_orig_contact_host(), retrans_pkt(), rfc3326_add_reason_header(), rfcomm_connect(), rfcomm_wait(), rfcomm_write_full(), ring_one(), rqm_exec(), rt_extend_conf(), rtp_codecs_payloads_copy_rx(), rtp_codecs_payloads_copy_tx(), rtp_raw_write(), run_agi(), run_externnotify(), run_ras(), safe_append(), save_conference(), save_orig_contact_host(), save_to_folder(), sayname(), scan_service(), scan_thread(), sched_delay_remove(), schedule_calendar_event(), schedule_delivery(), schedule_registration(), scheduled_destroy(), sco_accept(), sco_connect(), sco_write(), sdp_requires_deferral(), sdp_search(), search_directory(), search_directory_sub(), select_entry(), semicolon_count_var(), send_callerid(), send_cluster_notify(), send_command(), send_digit_to_chan(), send_direct_media_request(), send_eivr_event(), send_ews_request_and_parse(), send_message(), send_packet(), send_request(), send_request_timer_callback(), send_request_wrapper_destructor(), send_response(), send_trunk(), send_unsolicited_mwi_notify(), send_waveform_to_channel(), sendfax_exec(), sendfax_t38_init(), sendmail(), sendpage(), serialized_pubsub_on_refresh_timeout(), session_destructor(), session_inv_on_state_changed(), session_inv_on_tsx_state_changed(), session_outgoing_nat_hook(), set_actual_rxgain(), set_actual_txgain(), set_asterisk_int(), set_config(), set_format(), set_from_header(), set_if(), set_loop(), set_outbound_authentication_credentials(), set_outbound_initial_authentication_credentials(), set_peercnt_limit(), set_peercnt_limit_all_cb(), set_queue_member_pause(), set_ttl(), setup_bridge_role(), setup_filestack(), setup_mixmonitor(), setup_udptl_connection(), shrink(), sip_addheader(), sip_allow_anyrtp_remote(), sip_alreadygone(), sip_answer(), sip_call(), sip_destroy_peer(), sip_devicestate(), sip_do_reload(), sip_fixup(), sip_hangup(), sip_indicate(), sip_new(), sip_options_aor_observer_deleted_task(), sip_options_apply_aor_configuration(), sip_options_cleanup_aor_task(), sip_options_contact_add_management_task(), sip_options_contact_add_task(), sip_options_contact_delete_task(), sip_options_contact_status_notify_task(), sip_options_endpoint_compositor_add_task(), sip_options_endpoint_compositor_remove_task(), sip_options_endpoint_observer_deleted_task(), sip_options_endpoint_observer_modified_task(), sip_options_endpoint_unlink_aor_feeders(), sip_options_qualify_aor(), sip_options_qualify_contact(), sip_options_remove_contact_status(), sip_options_synchronize_aor_task(), sip_options_synchronize_endpoint(), sip_options_unused_aor(), sip_options_update_aor_task(), sip_options_update_endpoint_state_compositor_aor(), sip_outbound_publish_synchronize(), sip_outbound_registration_apply(), sip_outbound_registration_response_cb(), sip_outbound_registration_state_destroy(), sip_pickup(), sip_prepare_socket(), sip_pvt_dtor(), sip_queryoption(), sip_registry_destroy(), sip_removeheader(), sip_request_call(), sip_resolve(), sip_resolve_add(), sip_resolve_callback(), sip_resolve_handle_naptr(), sip_resolve_invoke_user_callback(), sip_route_copy(), sip_route_process_header(), sip_rtp_read(), sip_senddigit_begin(), sip_senddigit_end(), sip_sendhtml(), sip_sendtext(), sip_set_rtp_peer(), sip_setoption(), sip_tcptls_read(), sip_transfer(), sips_contact_on_tx_request(), skinny_hangup(), skinny_rtp_read(), skinny_session(), sla_handle_dial_state_event(), sla_queue_event_conf(), sla_station_destructor(), sla_station_exec(), sla_trunk_destructor(), smart_bridge_operation(), smdi_read(), smdi_toggle_mwi(), socket_process_helper(), socket_read(), softmix_bridge_destroy(), softmix_bridge_join(), softmix_bridge_write(), softmix_bridge_write_voice(), softmix_mixing_thread(), sorcery_astdb_filter_objectset(), sorcery_astdb_retrieve_id(), sorcery_config_internal_load(), sorcery_memory_cache_delete(), sorcery_memory_cache_load(), sorcery_realtime_filter_objectset(), sorcery_wizard_create(), sorcery_wizard_delete(), sorcery_wizard_update(), span_message(), spandsp_fax_read(), spandsp_v21_detect(), speex_encoder_construct(), srtp_event_cb(), SSL_library_init(), SSL_load_error_strings(), stale_item_update(), start_resource_attempt(), start_resource_list(), start_spying(), start_stream(), startelm(), stasis_app_control_add_channel_to_bridge(), stasis_app_control_answer(), stasis_app_control_play_uri(), stasis_app_control_record(), stasis_app_control_remove_channel_from_bridge(), stasis_app_device_state_update(), stasis_app_exec(), stasis_app_subscribe_channel(), stasis_state_remove_publish_by_id(), stasis_state_subscribe_pool(), stasis_topic_create_with_detail(), statsd_init(), statsd_shutdown(), store_mysql(), store_next_lin(), store_next_rr(), store_pgsql(), sub_persistence_recreate(), sub_tree_subscription_terminate_cb(), subscribe_device_state(), subscription_persistence_recreate(), subscription_persistence_remove(), subscription_persistence_update(), subscription_tree_destructor(), substituted(), swap_subs(), t30_phase_e_handler(), t38_automatic_reject(), t38_change_state(), t38_framehook(), t38_initialize_session(), t38_reinvite_response_cb(), tds_message_handler(), test_dtmf_amplitude_sweep(), test_dtmf_twist_sweep(), test_jb_debug_output(), test_tone_amplitude_sweep(), test_tone_freq_sweep(), testclient_exec(), testserver_exec(), timer_destroy(), timerfd_timer_ack(), timing_read(), tone_detect(), topic_dtor(), tps_report_taskprocessor_list(), trace_cb(), transfer_exec(), transfer_target_framehook_cb(), transmit(), transmit_audio(), transmit_connect(), transmit_connect_with_sdp(), transmit_connection_del(), transmit_connection_del_w_params(), transmit_invite(), transmit_modify_request(), transmit_modify_with_sdp(), transmit_notify_request(), transmit_notify_request_with_callerid(), transmit_refer(), transmit_register(), transmit_t38(), transmit_trunk(), transport_apply(), transport_create(), transport_monitor_unregister_cb(), transport_state_callback(), transport_state_do_reg_callbacks(), try_calling(), try_load_key(), try_merge_optimize_out(), udptl_build_packet(), udptl_rx_packet(), unalloc_sub(), unbound_resolver_start(), unbound_resolver_stop(), unbound_resolver_thread(), unistim_fixup(), unistim_free_sub(), unistim_hangup(), unistim_rtp_read(), unistim_send_mwi_to_peer(), unload_module(), unload_pgsql(), unlock_read(), unreal_queue_indicate(), unref_ewscal(), unref_mansession(), unregister_service(), unregister_task(), unsubscribe(), unsubscribe_stasis(), unwrap_timestamp(), update2_ldap(), update2_mysql(), update2_pgsql(), update_call_counter(), update_connectedline(), update_mysql(), update_pgsql(), update_qe_rule(), update_realtime_members(), update_scoreboard(), update_to_uri(), user_alloc(), user_dtor(), username_identify(), verify(), vm_allocate_dh(), vm_authenticate(), vm_change_password(), vm_change_password_shell(), vm_delete(), vm_execmain(), vm_newuser_setup(), vm_options(), vm_playmsgexec(), vmsayname_exec(), wait_exec(), wait_for_answer(), wait_for_output(), wait_for_winner(), websocket_echo_callback(), wizard_apply_handler(), wizard_mapped_observer(), worker_idle(), worker_thread_destroy(), write_cel(), write_metadata(), xfer_client_on_evsub_state(), xml_translate(), xmpp_client_receive(), xmpp_client_reconnect(), xmpp_client_requested_tls(), xmpp_client_thread(), xmpp_component_service_discovery_get_hook(), xmpp_pak_message(), xmpp_ping_request(), xmpp_pubsub_handle_error(), xmpp_pubsub_handle_event(), and xmpp_send_cb().

◆ AST_LOG_DEBUG

#define AST_LOG_DEBUG   __LOG_DEBUG, _A_

Definition at line 246 of file logger.h.

◆ AST_LOG_DTMF

#define AST_LOG_DTMF   __LOG_DTMF, _A_

Definition at line 312 of file logger.h.

◆ ast_log_dynamic_level

#define ast_log_dynamic_level (   level,
  ... 
)    ast_log(level, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)

◆ AST_LOG_ERROR

#define AST_LOG_ERROR   __LOG_ERROR, _A_

Definition at line 290 of file logger.h.

Referenced by _sip_show_peers(), actual_load_config(), add_header(), ari_channels_handle_originate_with_id(), ast_ari_channels_continue_in_dialplan(), ast_cdr_getvar(), ast_cdr_serialize_variables(), ast_cdr_setvar(), AST_TEST_DEFINE(), ast_xml_doc_item_alloc(), ast_xmldoc_build_documentation(), cdr_toggle_runtime_options(), copy_message(), create_routes(), determine_actual_value(), file_read(), file_write(), forward_message(), func_read_header(), func_write_header(), handle_manager_show_events(), hep_queue_cb(), hepv3_config_pre_apply(), incoming_request(), json_to_ast_variables(), leave_voicemail(), load_config(), load_module(), logged_dlclose(), msg_create_from_file(), open_mailbox(), pjsip_aor_function_read(), pjsip_contact_function_read(), pjsip_endpoint_function_read(), play_message(), prometheus_config_pre_apply(), read_header(), receivefax_exec(), reload(), remove_header(), run_externnotify(), save_to_folder(), security_event_to_ami_blob(), sendfax_exec(), sorcery_function_read(), statsd_exec(), subscribe_all(), syslog_log(), test_jb_error_output(), test_vm_api_create_voicemail_files(), test_vm_api_create_voicemail_folder(), test_vm_api_test_setup(), unload_module(), update_header(), validate_metric(), validate_metric_type_counter(), validate_metric_type_gauge(), validate_metric_type_set(), validate_metric_type_timer(), validate_name(), validate_numeric(), vm_allocate_dh(), vm_exec(), vm_mailbox_snapshot_create(), and vm_msg_remove().

◆ AST_LOG_NOTICE

#define AST_LOG_NOTICE   __LOG_NOTICE, _A_

◆ AST_LOG_TRACE

#define AST_LOG_TRACE   __LOG_TRACE, _A_

Definition at line 257 of file logger.h.

◆ AST_LOG_VERBOSE

#define AST_LOG_VERBOSE   __LOG_VERBOSE, _A_

Definition at line 301 of file logger.h.

◆ AST_LOG_WARNING

#define AST_LOG_WARNING   __LOG_WARNING, _A_

Definition at line 279 of file logger.h.

Referenced by actual_load_config(), add_email_attachment(), adsi_begin(), advanced_options(), app_send(), appcdr_callback(), apply_option(), ast_cdr_generic_unregister(), ast_module_reload(), ast_parking_register_bridge_features(), ast_parking_unregister_bridge_features(), ast_serializer_pool_set_alerts(), ast_srtp_add_stream(), AST_TEST_DEFINE(), au_seek(), au_trunc(), base_encode(), bridge_channel_park(), bridge_impart_internal(), cdr_prop_write(), cdr_prop_write_callback(), cdr_read(), cdr_read_callback(), cdr_retrieve_time(), channel_chanspy_start_cb(), channel_chanspy_stop_cb(), channel_read_pjsip(), channel_read_rtcp(), channel_read_rtp(), check_password(), close_mailbox(), copy(), create_dirpath(), dtmfstore_exec(), filestream_close(), forkcdr_callback(), forkcdr_exec(), forward_message(), free_zone(), g719seek(), g719trunc(), g723_trunc(), g726_seek(), g729_trunc(), gsm_seek(), gsm_tell(), gsm_trunc(), h263_trunc(), h264_trunc(), handle_bridge_enter_message(), handle_bridge_leave_message(), handle_channel_snapshot_update_message(), handle_dial_message(), handle_parked_call_message(), handle_request_info(), hep_queue_cb(), hepv3_data_alloc(), hold_intercept_fn_write(), ilbc_trunc(), initialize_udptl(), invent_message(), is_valid_dtmf(), leave_voicemail(), load_config(), load_module(), load_zonemessages(), make_email_file(), manager_generic_msg_cb(), message_playback_callback_fn(), msg_create_from_file(), mwi_app_event_cb(), non_neg_value_range(), notify_new_message(), odbc_log(), parking_park_call(), parse_uri_cb(), pbx_builtin_answer(), pbx_builtin_setamaflags(), pcm_seek(), pcm_trunc(), pjsip_aor_function_read(), pjsip_contact_function_read(), pjsip_endpoint_function_read(), play_message(), play_message_by_id_helper(), play_message_category(), play_message_datetime(), play_record_review(), prometheus_metric_register(), publish_app_cdr_message(), publish_chanspy_message(), read_pjsip(), reload_module(), remove_detect(), remove_dtmf_store(), remove_hold_intercept(), remove_scrambler(), remove_talk_detect(), res_srtp_init(), run_externnotify(), sendmail(), sendpage(), set_hold_intercept(), siren14seek(), siren14trunc(), siren7seek(), siren7trunc(), slinear_seek(), slinear_trunc(), softmix_bridge_create(), talk_detect_fn_write(), test_jb_warn_output(), test_vm_api_remove_all_messages(), value_in_range(), vm_allocate_dh(), vm_authenticate(), vm_change_password(), vm_exec(), vm_execmain(), vm_mailbox_snapshot_create(), vm_msg_play(), vox_seek(), vox_trunc(), wait_file2(), wav_seek(), and wav_trunc().

◆ ast_trace

#define ast_trace (   level,
  ... 
)
Value:
ast_debug(level < 0 ? __scope_level : level, " " __VA_ARGS__); \
if (TRACE_ATLEAST(level < 0 ? __scope_level : level)) { \
__ast_trace(__FILE__, __LINE__, __PRETTY_FUNCTION__, AST_TRACE_INDENT_SAME, 0, " " __VA_ARGS__); \
}
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:452
#define TRACE_ATLEAST(level)
Definition: logger.h:637
int * level
Definition: logger.c:2223

Print a basic trace message.

Parameters
levelThe trace level
(optional)A printf style format string
(optional)Arguments

This will print the file, line and function at the current indent level

Definition at line 692 of file logger.h.

Referenced by ast_sip_session_media_state_add(), ast_stream_create_resolved(), AST_TEST_DEFINE(), chan_pjsip_incoming_ack(), chan_pjsip_incoming_response(), chan_pjsip_indicate(), create_local_sdp(), dial_exec_full(), handle_incoming_sdp(), invite_proceeding(), invite_terminated(), new_invite(), resolve_refresh_media_states(), session_inv_on_media_update(), session_on_tsx_state(), sfu_topologies_on_join(), sip_session_refresh(), softmix_bridge_stream_sources_update(), and wait_for_answer().

◆ ast_trace_dec_indent

#define ast_trace_dec_indent ( )    _ast_trace_dec_indent()

Definition at line 728 of file logger.h.

◆ ast_trace_get_indent

#define ast_trace_get_indent ( )    _ast_trace_get_indent()

Definition at line 704 of file logger.h.

Referenced by chan_pjsip_answer().

◆ ast_trace_inc_indent

#define ast_trace_inc_indent ( )    _ast_trace_inc_indent()

Definition at line 720 of file logger.h.

◆ ast_trace_log

#define ast_trace_log (   __level,
  __log_level,
  ... 
)
Value:
({ \
ast_log(__log_level, " " __VA_ARGS__); \
ast_trace(__level < 0 ? __scope_level : __level, " " __VA_ARGS__); \
})

Definition at line 952 of file logger.h.

Referenced by new_invite().

◆ ast_trace_raw

#define ast_trace_raw (   level,
  indent_type,
  ... 
)
Value:
ast_debug(level < 0 ? __scope_level : level, " " __VA_ARGS__); \
if (TRACE_ATLEAST(level < 0 ? __scope_level : level)) { \
__ast_trace(__FILE__, __LINE__, __PRETTY_FUNCTION__, indent_type, 0, " " __VA_ARGS__); \
}
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:452
#define TRACE_ATLEAST(level)
Definition: logger.h:637
int * level
Definition: logger.c:2223

Print a trace message.

Parameters
levelThe trace level
indent_typeOne of the ast_trace_indent_type values
(optional)A printf style format string
(optional)Arguments

Definition at line 677 of file logger.h.

◆ ast_trace_set_indent

#define ast_trace_set_indent (   indent)    _ast_trace_set_indent(indent)

Definition at line 712 of file logger.h.

◆ ast_verb

#define ast_verb (   level,
  ... 
)
Value:
do { \
__ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, level, __VA_ARGS__); \
} \
} while (0)
#define VERBOSITY_ATLEAST(level)
Definition: logger.h:461
int * level
Definition: logger.c:2223
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 463 of file logger.h.

Referenced by __analog_handle_event(), __analog_ss_thread(), __ast_bridge_technology_register(), __ast_bucket_scheme_register(), __ast_codec_register_with_format(), __ast_context_destroy(), __ast_custom_function_register(), __ast_format_def_register(), __ast_format_interface_register(), __ast_http_load(), __ast_pbx_run(), __ast_play_and_record(), __ast_register_translator(), __ast_sorcery_wizard_register(), __dahdi_exception(), __ssl_setup(), _if_exec(), _macro_exec(), _while_exec(), acf_odbc_read(), action_hangup(), action_login(), add_realm_authentication(), add_vm_recipients_from_string(), ademco_detect_format(), ademco_verify_checksum(), adsi_exec(), adsi_prog(), advanced_options(), agent_login_exec(), agent_logout(), agent_request_exec(), agent_thread(), alarmreceiver_exec(), alloc_notify_task_data(), analog_attempt_transfer(), analog_dnd(), analog_exception(), analog_handle_init_event(), analog_hangup(), analog_ss_thread(), announce_to_dial(), aoc_display_decoded_debug(), app_create(), app_deactivate(), app_dtor(), app_exec(), app_send(), app_update(), ari_originate_dial(), ast_agi_register(), ast_agi_unregister(), ast_bridge_set_single_src_video_mode(), ast_bridge_technology_unregister(), ast_bridge_timelimit(), ast_bridge_update_talker_src_video_mode(), ast_calendar_register(), ast_calendar_unregister(), ast_cdr_generic_unregister(), ast_channel_register(), ast_channel_unregister(), ast_config_text_file_save2(), ast_context_add_switch2(), ast_context_remove_extension_callerid2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_custom_function_unregister(), ast_dns_resolver_register(), ast_dns_resolver_unregister(), ast_eivr_senddtmf(), ast_fax_tech_register(), ast_fax_tech_unregister(), ast_format_cache_set(), ast_format_def_unregister(), ast_frame_dump(), ast_image_register(), ast_image_unregister(), ast_jb_destroy(), ast_manager_register_struct(), ast_manager_unregister(), ast_merge_contexts_and_delete(), ast_module_reload(), ast_moh_destroy(), ast_moh_start(), ast_msg_handler_register(), ast_msg_handler_unregister(), ast_msg_tech_register(), ast_msg_tech_unregister(), ast_pbx_h_exten_run(), ast_realtime_append_mapping(), ast_record_review(), ast_register_application2(), ast_register_indication_country(), ast_rtp_engine_register2(), ast_rtp_engine_unregister(), ast_rtp_glue_register2(), ast_rtp_glue_unregister(), ast_rtp_ice_start_media(), ast_rtp_read(), ast_rtp_remote_address_set(), ast_say_enumeration_full_he(), ast_say_number_full_he(), ast_set_indication_country(), ast_set_priority(), ast_set_qos(), ast_sip_persistent_endpoint_update_state(), ast_sorcery_wizard_unregister(), ast_speech_register(), ast_speech_unregister(), ast_srtp_unprotect(), ast_streamfile(), ast_udptl_read(), ast_udptl_write(), ast_unload_resource(), ast_unregister_application(), ast_unregister_translator(), ast_websocket_close(), ast_websocket_server_add_protocol2(), ast_websocket_server_remove_protocol(), ast_websocket_uri_cb(), asterisk_daemon(), attempt_thread(), attempt_transfer(), auth_http_callback(), background_detect_exec(), begin_dial_channel(), blr_ebl(), blr_txt(), bridge_channel_internal_pull(), bridge_channel_internal_push_full(), bridge_exec(), bridge_parking_push(), bridgeadd_exec(), bridgewait_exec(), bridgewait_timeout_callback(), build_channels(), build_conf(), build_device(), build_gateway(), build_peer(), build_user(), caller_joined_bridge(), can_safely_quit(), chan_pjsip_cng_tone_detected(), channel_spy(), chanspy_exec(), check_for_conference(), check_send_queue(), cleanup_cb(), cli_console_mute(), close_call(), close_client(), close_rtp_connection(), close_udptl_connection(), comeback_goto(), conf_exec(), conf_run(), config_device(), config_line(), config_load(), config_odbc_prepare(), config_text_file_load(), configure_local_rtp(), console_answer(), console_call(), console_digit_begin(), console_digit_end(), console_hangup(), console_indicate(), console_text(), context_merge(), context_table_create_autohints(), control_streamfile(), copy_to_voicemail(), cpeid_exec(), create_client(), create_jb(), dahdi_dnd(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_restart(), dahdiras_exec(), database_increment(), debug_check_frame_for_silence(), delete_device(), deltree_exec(), destroy_all_channels(), dial_exec_full(), dialout(), do_discovery(), do_forward(), do_message(), do_monitor(), do_monitor_headset(), do_monitor_phone(), do_notify(), do_waiting(), dumpchan_exec(), eagi_exec(), eivr_comm(), exchangecal_write_event(), extensionstate_update(), fax_detect_framehook(), feature_attended_transfer(), feature_automixmonitor(), feature_automonitor(), feature_blind_transfer(), find_call(), find_conf_realtime(), find_friend(), find_peer(), find_subchannel_and_lock(), find_subchannel_by_name(), find_subline_by_name(), find_table(), find_transcoders(), find_user(), findmeexec(), flash_exec(), generic_fax_exec(), generic_http_callback(), get_avail_softkey(), get_folder(), get_to_address(), gosub_run(), grab_transfer(), handle_call_incoming(), handle_call_outgoing(), handle_cli_ooh323_reload(), handle_command_response(), handle_exec(), handle_frame(), handle_getoption(), handle_gosub(), handle_init_event(), handle_key_fav(), handle_message(), handle_offhook_message(), handle_request(), handle_response(), handle_response_ciev(), handle_response_cusd(), handle_response_error(), handle_response_info(), handle_response_message(), handle_response_no_carrier(), handle_response_no_dialtone(), handle_response_ok(), handle_soft_key_event_message(), handle_stimulus_message(), handle_streamfile(), handle_verbose(), iax2_ack_registry(), iax2_exec(), iax2_hangup(), iax2_key_rotate(), iax2_prov_app(), iax_firmware_reload(), iax_provision_reload(), init_files_class(), init_phone_step2(), isAnsweringMachine(), launch_script(), leave_voicemail(), length_determination_odbc_prepare(), listener(), load_config(), load_module(), load_modules(), load_pbx(), load_pjsip(), load_values_config(), log_events(), logger_print_normal(), lua_pbx_exec(), make_silence(), meetme_menu_admin_extended(), mgcp_answer(), mgcp_hangup(), mgcp_new(), mgcp_request(), mgcp_ss(), misdn_write(), mixmonitor_ds_close_fs(), mixmonitor_thread(), modules_shutdown(), moh_post_start(), moh_post_stop(), mwi_event_cb(), my_connect_db(), my_distinctive_ring(), my_handle_dtmf(), my_send_callerid(), native_rtp_bridge_start(), netconsole(), network_change_stasis_cb(), odbc_log(), onAlerting(), onCallCleared(), onCallEstablished(), onModeChanged(), onNewCallCreated(), onOutgoingCall(), onProgress(), ooh323_alloc(), ooh323_answer(), ooh323_call(), ooh323_delete_peer(), ooh323_destroy(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_do_reload(), ooh323_fixup(), ooh323_get_codec(), ooh323_get_rtp_peer(), ooh323_hangup(), ooh323_indicate(), ooh323_new(), ooh323_onReceivedSetup(), ooh323_queryoption(), ooh323_request(), ooh323_rtp_read(), ooh323_set_read_format(), ooh323_set_rtp_peer(), ooh323_set_write_format(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), page_exec(), parse_bookmark(), parse_config(), parse_register_contact(), parsing(), pbx_builtin_goto(), pbx_builtin_pushvar_helper(), pbx_builtin_setvar_helper(), pbx_builtin_waitexten(), pbx_extension_helper(), pbx_outgoing_exec(), pbx_outgoing_state_callback(), phone_hangup(), play_message_callerid(), play_record_review(), privacy_exec(), process_ast_dsp(), process_dahdi(), process_my_load_module(), process_request(), process_sdp(), prune_boot_contacts_cb(), purge_sessions(), push_callinfo(), queue_exec(), rcv_mac_addr(), rcv_resume_connection_with_server(), read_exec(), read_mf_exec(), read_sf_exec(), really_quit(), realtime_exec(), receive_ademco_event(), receive_dtmf_digits(), receivefax_exec(), refresh_all_favorite(), reg_source_db(), register_aor_core(), register_extension(), registrar_contact_delete(), reload(), reload_config(), reload_logger(), reload_module(), res_sdp_crypto_parse_offer(), res_srtp_init(), ring_entry(), rna(), rtp_reload(), run_agi(), run_ras(), say_periodic_announcement(), say_position(), send_blink_cursor(), send_callinfo(), send_charset_update(), send_client(), send_cursor_pos(), send_cwcidspill(), send_date_time(), send_date_time2(), send_date_time3(), send_dial_tone(), send_dtmf_tone(), send_end_call(), send_expansion_icon(), send_expansion_text(), send_favorite(), send_icon(), send_led_update(), send_month_labels(), send_mute(), send_no_ring(), send_ping(), send_raw_client(), send_retransmit(), send_ring(), send_select_output(), send_start_rtp(), send_start_timer(), send_stop_timer(), send_text(), send_text_status(), send_texttitle(), send_tone(), sendfax_exec(), session_destroy_fn(), session_do(), set_config(), set_priority_all(), setformat(), setsubstate(), setup_dahdi_int(), setup_park_common_datastore(), setup_privacy_args(), setup_rtp_connection(), setup_rtp_remote(), setup_udptl_connection(), sip_check_transport(), sip_options_contact_status_notify_task(), sip_options_remove_contact_status(), sip_options_set_contact_status(), sip_read(), sip_rtp_read(), skinny_newcall(), skinny_reload(), skinny_request(), skinny_session(), smart_bridge_operation(), smdi_load(), sms_debug(), sms_exec(), sms_handleincoming_proto2(), sms_process(), socket_process_helper(), softhangup_exec(), start_automixmonitor(), start_automonitor(), start_network_thread(), start_resource(), start_rtp(), start_spying(), stop_automixmonitor(), stop_automonitor(), store_config(), sub_start_silence(), sub_stop_silence(), swap_subs(), talk_detect_audiohook_cb(), timeout_write(), transfer_cancel_step2(), try_load_key(), try_merge_optimize_out(), try_suggested_sip_codec(), try_swap_optimize_out(), unbound_config_apply_default(), unistim_alloc_sub(), unistim_answer(), unistim_call(), unistim_do_senddigit(), unistim_hangup(), unistim_hangup_clean(), unistim_indicate(), unistim_new(), unistim_request(), unistim_senddigit_end(), unistim_sendtext(), unistim_ss(), unistimsock_read(), unload_module(), unregister_extension(), update_registry(), valid_priv_reply(), verbose_exec(), vm_authenticate(), vm_change_password(), vm_execmain(), vm_greeter_warn_no_provider(), vm_warn_no_provider(), wait_for_answer(), wait_for_digits(), wait_for_winner(), waitfor_exec(), waitforring_exec(), and write_metadata().

◆ ast_verb_callid

#define ast_verb_callid (   level,
  callid,
  ... 
)
Value:
do { \
__ast_verbose_callid(__FILE__, __LINE__, __PRETTY_FUNCTION__, level, callid, __VA_ARGS__); \
} \
} while (0)
#define VERBOSITY_ATLEAST(level)
Definition: logger.h:461
int * level
Definition: logger.c:2223

Definition at line 470 of file logger.h.

◆ ast_verbose

#define ast_verbose (   ...)    __ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, -1, __VA_ARGS__)

Definition at line 177 of file logger.h.

◆ ast_verbose_callid

#define ast_verbose_callid (   callid,
  ... 
)    __ast_verbose_callid(__FILE__, __LINE__, __PRETTY_FUNCTION__, -1, callid, __VA_ARGS__)

Definition at line 178 of file logger.h.

Referenced by dahdi_cc_callback().

◆ DEBUG_ATLEAST

#define DEBUG_ATLEAST (   level)

◆ DEBUG_M

#define DEBUG_M (   a)
Value:
{ \
a; \
}

Definition at line 37 of file logger.h.

◆ EVENTLOG

#define EVENTLOG   "event_log"

Definition at line 34 of file logger.h.

◆ LOG_DEBUG

#define LOG_DEBUG   __LOG_DEBUG, _A_

◆ LOG_DTMF

#define LOG_DTMF   __LOG_DTMF, _A_

Definition at line 307 of file logger.h.

Referenced by __ast_read(), ast_channel_end_dtmf(), and bridge_channel_settle_owed_events().

◆ LOG_ERROR

#define LOG_ERROR   __LOG_ERROR, _A_
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 285 of file logger.h.

Referenced by __aco_option_register(), __adjust_lock(), __allocate_taskprocessor(), __analog_handle_event(), __analog_ss_thread(), __ao2_global_obj_ref(), __ao2_global_obj_replace(), __ao2_link(), __ao2_weakproxy_alloc(), __ast_codec_register_with_format(), __ast_custom_function_register(), __ast_file_read_dirs(), __ast_format_interface_register(), __ast_read(), __ast_sorcery_object_type_insert_wizard(), __ast_sorcery_open(), __ast_udptl_reload(), __ast_vm_greeter_register(), __ast_vm_register(), __init_manager(), __rtp_recvfrom(), __sip_reliable_xmit(), __ssl_setup(), __start_taskprocessor(), _ast_heap_create(), _macro_exec(), _pgsql_exec(), _sip_tcp_helper_thread(), access_counter_file(), acf_channel_read(), acf_curl_helper(), acf_curlopt_helper(), acf_curlopt_write(), acf_cut_exec(), acf_cut_exec2(), acf_faxopt_read(), acf_faxopt_write(), acf_iaxvar_write(), acf_jabberstatus_read(), acf_max_exec(), acf_meetme_info(), acf_min_exec(), acf_odbc_read(), acf_odbc_write(), acf_sort_exec(), acf_sprintf(), acf_strptime(), acf_transaction_write(), acf_vm_info(), acl_handler(), acl_on_rx_msg(), aco_init(), aco_pending_config(), aco_process_ast_config(), aco_process_config(), aco_process_var(), aco_set_defaults(), action_dahdishowchannels(), action_getvar(), actual_load_config(), add_email_attachment(), add_event_to_list(), add_exten_to_pattern_tree(), add_hints(), add_identity_header(), add_message_id(), add_priority(), add_rt_multi_cfg_entry(), add_to_agi(), add_vm_recipients_from_string(), ael2_parse(), ael2_print(), aes_helper(), alloc_expr_node(), alloc_resampler(), alsa_card_init(), alsa_read(), alsa_write(), analog_hangup(), analog_request(), analog_ss_thread(), analogsub_to_dahdisub(), answer(), anti_injection(), aoc_parse_ie(), app_control_move(), app_event_filter_set(), app_exec(), app_send_end_msg(), app_to_json(), append_row_to_cfg(), append_vmu_info_astman(), apply_option_entertainment(), apply_option_timeout(), aqm_exec(), ari_channel_thread(), ari_originate_dial(), assign_and_insert(), ast_add_extension2_lockopt(), ast_agi_send(), ast_app_group_match_get_count(), ast_append_acl(), ast_apply_ha(), ast_ari_applications_filter_cb(), ast_ari_applications_get_cb(), ast_ari_applications_list_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_list_log_channels_cb(), ast_ari_asterisk_list_modules_cb(), ast_ari_asterisk_load_module_cb(), ast_ari_asterisk_ping_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_list_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_list_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_config_get(), ast_ari_device_states_delete_cb(), ast_ari_device_states_get_cb(), ast_ari_device_states_list_cb(), ast_ari_device_states_update_cb(), ast_ari_endpoints_get_cb(), ast_ari_endpoints_list_by_tech_cb(), ast_ari_endpoints_list_cb(), ast_ari_endpoints_send_message_cb(), ast_ari_endpoints_send_message_to_endpoint_cb(), ast_ari_events_event_websocket_ws_attempted_cb(), ast_ari_events_event_websocket_ws_established_cb(), ast_ari_events_user_event_cb(), ast_ari_get_docs(), ast_ari_invoke(), ast_ari_mailboxes_delete_cb(), ast_ari_mailboxes_get_cb(), ast_ari_mailboxes_list_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_list_stored_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_ari_validate_application(), ast_ari_validate_application_move_failed(), ast_ari_validate_application_replaced(), ast_ari_validate_asterisk_info(), ast_ari_validate_asterisk_ping(), ast_ari_validate_boolean(), ast_ari_validate_bridge(), ast_ari_validate_bridge_attended_transfer(), ast_ari_validate_bridge_blind_transfer(), ast_ari_validate_bridge_created(), ast_ari_validate_bridge_destroyed(), ast_ari_validate_bridge_merged(), ast_ari_validate_bridge_video_source_changed(), ast_ari_validate_build_info(), ast_ari_validate_caller_id(), ast_ari_validate_channel(), ast_ari_validate_channel_caller_id(), ast_ari_validate_channel_connected_line(), ast_ari_validate_channel_created(), ast_ari_validate_channel_destroyed(), ast_ari_validate_channel_dialplan(), ast_ari_validate_channel_dtmf_received(), ast_ari_validate_channel_entered_bridge(), ast_ari_validate_channel_hangup_request(), ast_ari_validate_channel_hold(), ast_ari_validate_channel_left_bridge(), ast_ari_validate_channel_state_change(), ast_ari_validate_channel_talking_finished(), ast_ari_validate_channel_talking_started(), ast_ari_validate_channel_unhold(), ast_ari_validate_channel_userevent(), ast_ari_validate_channel_varset(), ast_ari_validate_config_info(), ast_ari_validate_config_tuple(), ast_ari_validate_contact_info(), ast_ari_validate_contact_status_change(), ast_ari_validate_date(), ast_ari_validate_device_state(), ast_ari_validate_device_state_changed(), ast_ari_validate_dial(), ast_ari_validate_dialed(), ast_ari_validate_dialplan_cep(), ast_ari_validate_endpoint(), ast_ari_validate_endpoint_state_change(), ast_ari_validate_event(), ast_ari_validate_format_lang_pair(), ast_ari_validate_list(), ast_ari_validate_live_recording(), ast_ari_validate_log_channel(), ast_ari_validate_mailbox(), ast_ari_validate_message(), ast_ari_validate_missing_params(), ast_ari_validate_module(), ast_ari_validate_peer(), ast_ari_validate_peer_status_change(), ast_ari_validate_playback(), ast_ari_validate_playback_continuing(), ast_ari_validate_playback_finished(), ast_ari_validate_playback_started(), ast_ari_validate_recording_failed(), ast_ari_validate_recording_finished(), ast_ari_validate_recording_started(), ast_ari_validate_rtpstat(), ast_ari_validate_set_id(), ast_ari_validate_sound(), ast_ari_validate_stasis_end(), ast_ari_validate_stasis_start(), ast_ari_validate_status_info(), ast_ari_validate_stored_recording(), ast_ari_validate_system_info(), ast_ari_validate_text_message(), ast_ari_validate_text_message_received(), ast_ari_validate_variable(), ast_ari_websocket_session_create(), ast_ari_websocket_session_write(), ast_audiosocket_connect(), ast_audiosocket_init(), ast_audiosocket_receive_frame(), ast_bridge_channel_queue_frame(), ast_bridge_depart(), ast_bridge_features_ds_set_string(), ast_bridge_features_set_limits(), ast_bridge_transfer_attended(), ast_bridge_transfer_blind(), ast_bucket_init(), ast_callid_threadassoc_add(), ast_carefulwrite(), ast_cdr_serialize_variables(), ast_cdr_setvar(), ast_cel_fill_record(), ast_cel_str_to_event_type(), ast_channel_by_exten_cb(), ast_channel_by_name_cb(), ast_channel_by_uniqueid_cb(), ast_channel_cmp_cb(), ast_channel_publish_varset(), ast_channel_queryoption(), ast_channel_setoption(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_clear_mixmonitor_methods(), ast_cli_completion_vector(), ast_config_text_file_save2(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), ast_data_buffer_cache_adjust(), ast_device_state_engine_init(), ast_dns_query_set_add(), ast_dns_query_set_resolve_async(), ast_dns_resolve_async(), ast_dns_resolve_ipv6_and_ipv4(), ast_dns_resolver_register(), ast_duplicate_acl_list(), ast_endpoint_create(), ast_event_get_ie_pltype(), ast_event_get_ie_type_name(), ast_event_get_type_name(), ast_framehook_attach(), ast_func_read(), ast_func_read2(), ast_func_write(), ast_get_encoded_char(), ast_get_group(), ast_http_header_match(), ast_http_header_match_in(), ast_http_response_status_line(), ast_iax2_new(), ast_iostream_close(), ast_iostream_start_tls(), ast_jb_put(), ast_json_init(), ast_json_vpack(), ast_local_init(), ast_lock_path_lockfile(), ast_log_backtrace(), ast_monitor_change_fname(), ast_msg_handler_register(), ast_msg_handler_unregister(), ast_msg_send(), ast_msg_tech_register(), ast_msg_tech_unregister(), ast_named_acl_find(), ast_netsock_bindaddr(), ast_odbc_find_table(), ast_ouraddrfor(), ast_pbx_outgoing_exten_predial(), ast_phoneprov_provider_register(), ast_pickup_call(), ast_playtones_start(), ast_remotecontrol(), ast_res_pjsip_init_message_filter(), ast_res_pjsip_initialize_configuration(), ast_rtcp_write(), ast_rtp_dtls_cfg_parse(), ast_rtp_dtls_cfg_validate(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_continuation(), ast_rtp_dtmf_end_with_duration(), ast_rtp_instance_drop_packets(), ast_rtp_instance_get_recv_buffer_count(), ast_rtp_instance_get_recv_buffer_max(), ast_rtp_instance_get_sdes_received(), ast_rtp_instance_get_send_buffer_count(), ast_rtp_instance_make_compatible(), ast_rtp_instance_new(), ast_rtp_instance_queue_report(), ast_rtp_instance_reset_test_engine(), ast_rtp_instance_set_schedid(), ast_rtp_sendcng(), ast_safe_fork(), ast_sched_del(), ast_sched_start_thread(), ast_security_event_report(), ast_serializer_pool_create(), ast_set_mixmonitor_methods(), ast_sip_cli_traverse_objects(), ast_sip_create_dialog_uac(), ast_sip_create_joint_call_cap(), ast_sip_initialize_cli(), ast_sip_initialize_distributor(), ast_sip_initialize_scheduler(), ast_sip_initialize_sorcery_auth(), ast_sip_initialize_sorcery_location(), ast_sip_initialize_sorcery_transport(), ast_sip_initialize_system(), ast_sip_initialize_transport_management(), ast_sip_persistent_endpoint_add_to_regcontext(), ast_sip_register_endpoint_identifier_with_name(), ast_sip_register_event_publisher_handler(), ast_sip_register_publish_handler(), ast_sip_register_subscription_handler(), ast_sip_session_alloc(), ast_sip_session_create_outgoing(), ast_sip_set_tpselector_from_transport(), ast_sip_set_tpselector_from_transport_name(), ast_sockaddr_hash(), ast_sockaddr_parse(), ast_sockaddr_resolve(), ast_sockaddr_stringify_fmt(), ast_sorcery_object_fields_register(), ast_srtp_create(), ast_srtp_policy_alloc(), ast_srtp_protect(), ast_srtp_replace(), ast_srtp_unprotect(), ast_start_mixmonitor(), ast_stir_shaken_add_verification(), ast_stir_shaken_sign(), ast_stir_shaken_verify(), ast_stop_mixmonitor(), ast_str_substitute_variables_full(), ast_taskprocessor_get(), ast_taskprocessor_name(), ast_tcptls_client_create(), ast_tcptls_client_start(), ast_tcptls_server_root(), ast_tcptls_server_start(), AST_TEST_DEFINE(), ast_test_register(), ast_thread_inhibit_escalations(), ast_thread_inhibit_escalations_swap(), ast_thread_is_user_interface(), ast_thread_user_interface_set(), ast_tls_read_conf(), ast_tps_init(), ast_translator_best_choice(), ast_udptl_new_with_bindaddr(), ast_unlock_path_lockfile(), ast_unreal_indicate(), ast_unreal_setoption(), ast_uri_create_(), ast_uri_parse(), ast_vm_test_swap_table_in(), ast_vm_test_swap_table_out(), ast_websocket_read_string(), ast_xml_query(), ast_xmldoc_load_documentation(), asterisk_publication_devicestate_refresh(), asterisk_publication_mwi_refresh(), astobj2_init(), attended_transfer_bridge(), attended_transfer_monitor_thread(), attended_transfer_properties_alloc(), audiosocket_exec(), audiosocket_request(), audiosocket_run(), auth_apply(), auth_create(), auth_observer(), authenticate_reply(), authenticate_verify(), available(), beanstalk_put(), bridge_agent_hold_deferred_create(), bridge_alloc(), bridge_builtin_set_limits(), bridge_channel_feature_digit_timeout(), bridge_moh_create(), bridge_stasis_push(), bridge_stasis_push_peek(), bridge_stasis_run_cb(), bridge_topics_init(), bridgewait_exec(), build_calendar(), build_callno_limits(), build_cc_interfaces_chanvar(), build_channels(), build_config_docs(), build_device(), build_dtmf_features(), build_gateway(), build_notify(), build_peer(), build_regex(), build_route(), builtin_features_helper(), cache_test_aggregate_calc_fn(), caldav_add_event(), caldav_get_events_between(), caldav_load_calendar(), caldav_request(), caldav_write_event(), calendar_event_notify(), calendar_join_attendees(), calendar_query_exec(), calendar_write_exec(), call_pickup_incoming_request(), callerid_feed(), callerid_feed_jp(), callerid_read(), callerid_write(), canmatch(), category_register(), cb_events(), cdata(), cdr_enable_batch_mode(), cdr_handler(), cel_bs_put(), cel_generic_cb(), cel_linkedid_ref(), cel_pre_apply_config(), chan_pjsip_answer(), chan_pjsip_cng_tone_detected(), chan_pjsip_incoming_request(), chan_pjsip_indicate(), chan_pjsip_new(), chan_pjsip_set_rtp_peer(), channel_get_external_vars(), channel_replaced_cb(), channel_set_intercept_mode(), channel_stolen_cb(), chanspy_exec(), check_break(), check_continue(), check_event_type(), check_goto(), check_init(), check_label(), check_pval_item(), check_range(), check_retire_linkedid(), check_srcaddr(), check_type(), check_user_full(), check_vars(), cleanup_module(), cli_display_named_acl(), cli_fax_show_session(), close_mansession_file(), close_rtp_connection(), close_udptl_connection(), codec2_new(), codec_prefs_handler(), comeback_goto(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_extension(), complete_dialplan_remove_include(), conf_exec(), conf_invalid_event_fn(), conf_send_event_to_participants(), confbridge_exec(), confbridge_handle_atxfer(), config_curl(), config_device(), config_function_read(), config_handler(), config_ldap(), config_load(), config_module(), config_parse_variables(), config_text_file_load(), configure_local_rtp(), configure_parking_extensions(), connectedline_read(), connectedline_write(), console_request(), contact_apply_handler(), context_merge(), control_create(), control_swap_channel_in_bridge(), control_wait(), copy_rules(), copy_to_voicemail(), count_lines(), create_artificial_auth(), create_dialog_uas(), create_dynamic_lot_full(), create_foo_type_message(), create_jb(), create_local_sdp(), create_match_char_tree(), create_object(), create_out_of_dialog_request(), create_outgoing_sdp_stream(), create_rtp(), create_temp_file(), create_transaction(), create_vmaccount(), crypto_init_keys(), csv_quote(), curl_and_check_expiration(), curl_public_key(), current_state_reusable(), custom_connection_handler(), custom_log(), dahdi_call(), dahdi_cc_callback(), dahdi_create_channel_range(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_sendtext(), dahdi_test_timer(), dahdi_timer_open(), dahdi_timer_set_rate(), dahdi_translate(), dahdi_write_frame(), dahdiscan_exec(), db_open(), default_listener_pvt_alloc(), default_listener_shutdown(), default_task_pushed(), default_tps_processing_function(), delay_request(), destroy_curl(), determine_starting_point(), devstate_init(), devstate_write(), dial_exec_full(), dialgroup_write(), dialog_initialize_dtls_srtp(), digest_create_request_with_auth(), directory_exec(), disable_t38(), dispatch_message(), dispatch_thread_handler(), dll_tests(), dns_naptr_alloc(), dns_query_alloc(), dns_srv_alloc(), dns_system_resolver_resolve(), dns_system_resolver_set_response(), do_convolve_pair(), do_magic_pickup(), do_message(), do_monitor(), do_monitor_headset(), do_notify(), do_reload(), do_say(), do_sco_listen(), does_category_match(), does_id_conflict(), domain_alias_apply(), dtmf_info_incoming_request(), dtmfstore_exec(), dundi_query_read(), dundi_result_read(), duplicate_pseudo(), eagi_exec(), eivr_comm(), enable_jack_hook(), encode_open_type(), endelm(), endpt_send_request(), enum_query_read(), enum_result_read(), ewscal_load_calendar(), exchangecal_get_events_between(), exchangecal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exec(), execif_exec(), exists(), expiration_global_loaded(), explicit_publish_cb(), extension_is_compatible(), extension_matches(), extenspy_exec(), fax_detect_attach(), fax_gateway_detect_t38(), fax_gateway_framehook(), fax_gateway_new(), fax_gateway_request_t38(), fax_gateway_start(), fax_rate_str_to_int(), fax_session_new(), fax_session_reserve(), feature_attended_transfer(), festival_exec(), fetch_access_token(), fetch_google_access_token(), fetch_icalendar(), file2format(), file_read(), file_write(), filter(), find_conf(), find_matching_endif(), find_matching_endwhile(), find_matching_priority(), find_option_cb(), find_pval_goto_item(), find_table(), find_transcoders(), findmeexec(), forward_message(), freq_parser(), from_user_handler(), func_channel_write_real(), func_confbridge_info(), func_get_parkingslot_channel(), func_read_header(), func_write_header(), function_amiclient(), function_fieldnum_helper(), function_ooh323_read(), function_ooh323_write(), generic_fax_exec(), get_agi_cmd(), get_auth_search_type(), get_defaults(), get_destination(), get_ewscal_ids_for(), get_hrir(), get_input(), get_interface_helper(), get_languages(), get_lock(), get_member_penalty(), get_name_and_number(), get_pattern_node(), global_apply(), global_loaded_observer(), gosub_exec(), gosub_run(), grab_transfer(), grow(), handle_auth(), handle_call_outgoing(), handle_call_token(), handle_clear_alarms(), handle_dump_docs(), handle_export_primitives(), handle_find_file(), handle_gosub(), handle_identify(), handle_incoming(), handle_incoming_sdp(), handle_input(), handle_invite_replaces(), handle_jack_audio(), handle_local_optimization_begin(), handle_open_receive_channel_ack_message(), handle_options(), handle_outgoing_response(), handle_phoneprov(), handle_pjproject_show_log_mappings(), handle_queue_change_priority_caller(), handle_registrations(), handle_request_info(), handle_request_invite(), handle_request_invite_st(), handle_response_ciev(), handle_response_clip(), handle_response_cmgr(), handle_show_hint(), handle_tcptls_connection(), hash_ao2_destroy(), hash_ao2_node_destructor(), holding_bridge_join(), hook_event_cb(), http_callback(), http_post_callback(), iax2_dup_variable_datastore(), iax2_hangup(), iax_frame_wrap(), iax_provision_version(), ical_load_calendar(), icalendar_add_event(), icalendar_update_events(), iconv_read(), ident_handler(), idle_sched_init_pj_thread(), init_acf_query(), init_convolve_channel_pair(), init_jack_data(), init_logger(), init_timing_thread(), initial_notify_task(), initreqprep(), inotify_daemon(), internal_aco_type_find(), ip_identify_apply(), ip_identify_match_handler(), is_empty(), is_writable(), isexten_function_read(), jack_hook_callback(), jack_hook_write(), jb_error_output(), jb_get_and_deliver(), jingle_add_google_candidates_to_transport(), jingle_add_ice_udp_candidates_to_transport(), jingle_interpret_content(), jingle_interpret_description(), jingle_interpret_google_transport(), jingle_interpret_ice_udp_transport(), jingle_request(), jingle_send_error_response(), jingle_send_response(), jingle_send_session_action(), jingle_send_session_info(), jingle_send_session_terminate(), jingle_send_transport_info(), join_conference_bridge(), keepalive_global_loaded(), keepalive_transport_thread(), key_main_page(), keypad_cfg_read(), kqueue_timer_ack(), kqueue_timer_disable_continuous(), kqueue_timer_enable_continuous(), kqueue_timer_open(), kqueue_timer_set_rate(), launch_asyncagi(), ldap_loadentry(), ldap_mod_append(), ldap_mod_create(), ldap_mod_duplicate(), ldap_reconnect(), leave_voicemail(), link_option_to_types(), link_topic_proxy(), lintoulaw(), listener(), listfilter(), load_asterisk_conf(), load_column_config(), load_config(), load_config_meetme(), load_endpoint(), load_module(), load_modules(), load_odbc_config(), load_or_reload_lua_stuff(), load_pbx_builtins(), load_pjsip(), load_resource_list(), load_values_config(), loader_config_init(), local_alloc(), local_write(), lock_info_destroy(), log_exec(), logger_queue_init(), logger_queue_restart(), lookup_iface(), lua_find_extension(), lua_get_state(), mailbox_to_num(), main(), manager_fax_sessions_entry(), manager_list_voicemail_users(), manager_log(), manager_parking_lot_list(), manager_parking_status_all_lots(), manager_status_voicemail_user(), massage_mods_for_entry(), matchmore(), mbl_call(), mbl_load_adapter(), mbl_load_config(), mbl_load_device(), mbl_sendsms_exec(), memory_cache_populate(), memory_cache_stale_update_object(), message_template_build(), message_template_parse_filebody(), mgcp_new(), mgcp_senddigit_begin(), mgcp_senddigit_end(), mgcp_ss(), minivm_accmess_exec(), minivm_account_func_read(), minivm_counter_func_read(), minivm_counter_func_write(), minivm_delete_exec(), minivm_greet_exec(), minivm_mwi_exec(), minivm_notify_exec(), minivm_record_exec(), misdn_new(), misdn_request(), mixmonitor_save_prep(), mixmonitor_thread(), mkintf(), mkstemp_file(), module_load_error(), moh_parse_options(), monmp3thread(), mp3_rewrite(), mp3_trunc(), mp3_write(), msg_create_from_file(), msg_data_func_read(), msg_func_read(), msg_send(), mssql_connect(), multicast_rtp_request(), mute_fragment(), mwi_create_state(), mwi_sorcery_init(), my_connect_db(), my_dial_digits(), my_dsp_set_digitmode(), my_load_module(), my_on_hook(), my_start_cid_detect(), my_wink(), mysql_log(), mysql_reconnect(), named_acl_find_realtime(), netconsole(), network_thread(), new_invite(), newpvt(), notify_contact(), notify_uri(), num_to_mailbox(), object_type_loaded_observer(), odbc_load_module(), odbc_log(), ogg_speex_open(), ogg_vorbis_open(), ogg_vorbis_rewrite(), ogg_vorbis_write(), on_load_attestation(), on_load_ca_file(), on_load_ca_path(), on_load_path(), on_load_public_cert_url(), onAlerting(), onCallEstablished(), onModeChanged(), onNewCallCreated(), onOutgoingCall(), onProgress(), ooh323_alloc(), ooh323_call(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_indicate(), ooh323_onReceivedDigit(), ooh323_onReceivedSetup(), ooh323_queryoption(), ooh323_request(), ooh323_set_read_format(), ooh323_set_rtp_peer(), ooh323_set_write_format(), ooh323c_start_call_thread(), ooh323c_start_receive_channel(), ooh323c_start_stack_thread(), ooh323c_start_transmit_channel(), op_func(), open_stream(), options_incoming_request(), originate_exec(), osp_auth(), osp_check_destination(), osp_create_callid(), osp_create_provider(), osp_create_transaction(), osp_create_uuid(), osp_load(), osp_lookup(), osp_next(), osp_uuid2str(), osp_validate_token(), page_exec(), park_and_announce_app_exec(), park_common_setup(), parked_call_app_exec(), parked_call_message_response(), parking_duration_callback(), parking_lot_build_or_update(), parking_lot_cfg_create_extensions(), parking_park_bridge_channel(), parking_set_duration(), parse_busy_pattern(), parse_config(), parse_gain_value(), parse_tag(), parse_tone_uri(), parse_uri_cb(), parse_via(), party_id_write(), party_name_write(), party_number_write(), pbx_builtin_serialize_variables(), pbx_load_config(), pbx_load_module(), pbx_load_users(), pbx_outgoing_exec(), pbx_substitute_variables_helper_full(), pcm_write(), peek_read(), peer_iphash_cb(), peercnt_add(), permanent_uri_handler(), pgsql_log(), pgsql_reconnect(), phone_request(), phoneprov_alloc(), pitchshift_helper(), pj_thread_register_check(), pjsip_acf_channel_read(), pjsip_channel_cli_register(), play_on_channel(), play_on_channel_in_bridge(), policy_set_suite(), pre_bridge_setup(), prep_email_sub_vars(), print_escaped_uri(), process_category(), process_config(), process_dahdi(), process_description_file(), process_message(), process_message_callback(), process_my_load_module(), process_sdp(), process_text_line(), process_via(), pthread_timer_set_rate(), publish(), publish_acl_change(), publish_transfer_fail(), publish_transfer_success(), publish_transfer_threeway(), publisher_start(), publishers_create(), publishers_destroy(), pubsub_on_rx_mwi_notify_request(), pubsub_on_rx_refresh(), pvalCheckType(), pvalGlobalsAddStatement(), pvalTopLevAddObject(), qualify_contact_cb(), queue_function_exists(), queue_function_mem_read(), queue_function_mem_write(), queue_function_memberpenalty_read(), queue_function_memberpenalty_write(), queue_function_qac_dep(), queue_function_queuegetchannel(), queue_function_queuememberlist(), queue_function_queuewaitingcount(), queue_function_var(), queue_reload_request(), queue_voice_frame(), quote(), radius_log(), rb_ao2_destroy(), rb_ao2_node_destructor(), rcv_mac_addr(), rcvfax_exec(), realtime_curl(), realtime_directory(), realtime_ldap_base_ap(), realtime_multi_curl(), realtime_multi_ldap(), realtime_multi_pgsql(), realtime_odbc(), realtime_pgsql(), realtime_update2_handler(), receivefax_exec(), receivefax_t38_init(), record_file(), redirect_handler(), redirecting_read(), redirecting_write(), refer_incoming_attended_request(), refer_incoming_blind_request(), regex(), register_aor_core(), register_channel_tech(), register_service(), register_verify(), reload(), reload_config(), reload_followme(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_queues(), reload_single_member(), remove_by_peercallno(), remove_by_transfercallno(), replace(), replace_callno(), request(), require_curl(), require_pgsql(), res_sdp_crypto_build_offer(), res_sdp_crypto_parse_offer(), res_sdp_srtp_get_attr(), res_srtp_new(), reschedule_reinvite(), resolve_refresh_media_states(), restart_monitor(), restart_pktc_thread(), retransfer_enter(), retrydial_exec(), return_exec(), rfcomm_read_cmgr(), rfcomm_read_result(), rfcomm_read_sms_prompt(), rm_file(), rtcp_debug_test_addr(), rtp_add_candidates_to_ice(), rtp_allocate_transport(), rtp_raw_write(), rtp_reload(), rtp_transport_wide_cc_feedback_produce(), rtp_write_rtcp_fir(), rtp_write_rtcp_psfb(), run_curl(), run_task(), say_init_mode(), scan_thread(), sco_accept(), sco_bind(), scramble_write(), send_device_state(), send_ews_request_and_parse(), send_expansion_text(), send_message(), send_options_response(), send_request_cb(), send_response(), send_start_msg_snapshots(), send_text(), sendfax_exec(), sendfax_t38_init(), sendmail(), sendtext(), session_do(), set_active(), set_caps(), set_config(), set_fax_t38_caps(), set_format(), set_incoming_call_offer_cap(), set_member_value(), set_member_value_help_members(), set_outbound_authentication_credentials(), set_passthru_update(), set_t38timeout(), setup_dahdi_int(), setup_dtls_srtp(), setup_filestack(), setup_mixmonitor_ds(), setup_rtp_connection(), setup_rtp_remote(), setup_udptl_connection(), sfu_topologies_on_join(), sha1(), shared_read(), shared_write(), signal_pipe(), sip_acf_channel_read(), sip_check_authtimeout(), sip_endpoint_apply_handler(), sip_indicate(), sip_msg_send(), sip_new(), sip_options_apply_aor_configuration(), sip_options_contact_add_task(), sip_options_qualify_contact(), sip_outbound_publish_apply(), sip_outbound_publish_callback(), sip_outbound_publish_synchronize(), sip_outbound_publisher_alloc(), sip_outbound_publisher_init(), sip_outbound_publisher_set_uris(), sip_outbound_registration_apply(), sip_outbound_registration_regc_alloc(), sip_queryoption(), sip_register(), sip_reload(), sip_request_call(), sip_route_process_header(), sip_session_refresh(), sip_setoption(), sip_sipredirect(), sip_st_alloc(), sip_subscription_send_request(), sip_tcptls_write(), sip_thread_start(), sip_threadinfo_create(), skinny_session(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_load_config(), sla_queue_event_conf(), sla_state(), sla_trunk_exec(), smdi_load(), smdi_msg_read(), smdi_msg_retrieve_read(), smdi_read(), smdi_toggle_mwi(), sms_exec(), sndfax_exec(), socket_process_helper(), softmix_bridge_join(), softmix_bridge_stream_sources_update(), softmix_bridge_write(), softmix_mixing_loop(), softmix_mixing_thread(), sorcery_config_internal_load(), sorcery_config_open(), sorcery_memory_cache_create(), sorcery_memory_cache_open(), sorcery_realtime_open(), sorcery_realtime_retrieve_multiple(), soundcard_init(), span_message(), spandsp_fax_new(), spandsp_fax_read(), spandsp_fax_start(), spandsp_log(), speex_read(), speex_write(), srv_result_read(), ssl_lock(), stackpeek_read(), stale_cache_update(), start_monitor_exec(), start_network_thread(), start_poll_thread(), start_stream(), startelm(), stasis_app_control_play_uri(), stasis_app_device_state_delete(), stasis_app_device_state_update(), stasis_app_exec(), stasis_app_playback_operation(), stasis_app_recording_operation(), stasis_app_subscribe_channel(), stasis_app_unregister(), stasis_app_user_event(), stasis_caching_topic_create(), stasis_caching_unsubscribe(), stasis_end_to_json(), stasis_init(), stasis_log_bad_type_access(), stasis_message_sink_should_stay(), stasis_message_sink_wait_for(), stasis_message_sink_wait_for_count(), stasis_start_to_json(), stasis_state_add_publisher(), stasis_state_add_subscriber(), stasis_unsubscribe(), state_alloc(), stimulate_attended_transfer(), stir_shaken_certificate_apply(), stir_shaken_certificate_load(), stir_shaken_general_load(), stir_shaken_get_serial_number_x509(), stir_shaken_read(), stir_shaken_read_key(), stir_shaken_sign(), stir_shaken_store_load(), stir_shaken_verify_json(), stir_shaken_verify_signature(), store_by_peercallno(), store_by_transfercallno(), store_curl(), stream_echo_exec(), stream_echo_write_error(), strreplace(), stun_monitor_request(), stun_start_monitor(), subscribe_device_state(), subscriptions_create(), subscriptions_destroy(), subsystem_alert_decrement(), sysinfo_helper(), system_create_resolver_and_set_nameservers(), t38_attach_framehook(), t38_interpret_parameters(), taskprocessor_push(), tdd_feed(), tds_error_handler(), tds_load_module(), tds_log(), test_alloc(), test_config_validity(), test_law_cmp(), test_stir_shaken_cleanup_cert(), test_stir_shaken_create_cert(), test_stir_shaken_write_temp_key(), thread_inhibits_escalations(), timeout_read(), timeout_write(), timerfd_timer_ack(), timerfd_timer_open(), timing_read(), tls_method_to_str(), tos_handler(), tps_task_alloc(), tps_task_alloc_local(), transfer(), transmit(), transmit_audio(), transmit_info_dtmf(), transmit_info_with_vidupdate(), transmit_response_using_temp(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), transmit_t38(), transport_apply(), transport_create(), transport_tls_file_handler(), transport_tos_handler(), try_calling(), unbound_config_apply_default(), unbound_config_preapply(), unbound_resolver_resolve(), unicast_rtp_request(), unistim_call(), unistim_set_rtp_peer(), unload_module(), unsignal_pipe(), update2_curl(), update2_ldap(), update2_mysql(), update2_odbc(), update2_pgsql(), update2_prepare(), update_call_counter(), update_connected_line_information(), update_curl(), update_mysql(), update_pgsql(), uri_parse_and_default(), users_apply_handler(), ustmtext(), validate_data(), validate_publish_config(), variable_list_append(), verify_user_event_fields(), vm_allocate_dh(), volume_read(), volume_write(), wait_for_answer(), wait_for_digits(), wait_for_output(), waitfor_exec(), websocket_cb(), websocket_client_args_create(), websocket_client_create(), websocket_client_create_key(), websocket_client_handle_response_code(), websocket_client_handshake(), websocket_client_handshake_get_response(), while(), write_cel(), write_openssl_error_to_log(), write_password_to_file(), writefile(), ws_safe_read(), xmldoc_build_field(), xmldoc_string_cleanup(), xmldoc_update_config_option(), xmpp_action_hook(), xmpp_client_alloc(), xmpp_client_authenticate_digest(), xmpp_client_authenticate_sasl(), xmpp_client_authenticating(), xmpp_client_config_post_apply(), xmpp_client_reconnect(), xmpp_client_request_tls(), xmpp_client_requested_tls(), xmpp_client_service_discovery_get_hook(), xmpp_client_set_presence(), xmpp_client_thread(), xmpp_component_authenticate(), xmpp_component_authenticating(), xmpp_component_register_get_hook(), xmpp_component_register_set_hook(), xmpp_component_service_discovery_get_hook(), xmpp_component_service_discovery_items_hook(), xmpp_config_prelink(), xmpp_connect_hook(), xmpp_join_exec(), xmpp_leave_exec(), xmpp_pak_presence(), xmpp_pak_s10n(), xmpp_pubsub_create_affiliations(), xmpp_pubsub_handle_error(), xmpp_pubsub_handle_event(), xmpp_pubsub_request_nodes(), xmpp_pubsub_subscribe(), xmpp_pubsub_unsubscribe(), xmpp_roster_hook(), xmpp_send_cb(), xmpp_sendgroup_exec(), and yyerror().

◆ LOG_NOTICE

#define LOG_NOTICE   __LOG_NOTICE, _A_
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 263 of file logger.h.

Referenced by __analog_handle_event(), __ast_request_and_dial(), __ast_udptl_reload(), __auto_congest(), __iax2_poke_noanswer(), __init_manager(), _extension_match_core(), _pgsql_exec(), accept_thread(), acf_curl_helper(), acf_jabberreceive_read(), acf_meetme_info(), acl_change_stasis_cb(), aco_option_find(), action_hangup(), add_in_calls(), add_notify(), add_out_calls(), admin_exec(), adsi_prog(), agents_sweep(), alsa_request(), alsa_write(), amihook_helper(), analog_handle_init_event(), analog_publish_channel_alarm_clear(), analog_ss_thread(), app_control_redirect(), app_exec(), append_ha_core(), aqm_exec(), ast_alaw_init(), ast_app_dtget(), ast_app_group_match_get_count(), ast_apply_acl_internal(), ast_ari_websocket_session_write(), ast_call_forward(), ast_channel_log(), ast_cli_perms_init(), ast_context_remove_extension_callerid2(), ast_decrypt_bin(), ast_encrypt_bin(), ast_io_remove(), ast_log_show_lock(), ast_named_acl_find(), ast_pickup_call(), ast_process_pending_reloads(), ast_queue_cc_frame(), ast_rtp_dtls_cfg_validate(), ast_rtp_ice_start(), ast_rtp_interpret(), ast_sip_initialize_resolver(), ast_sip_ouraddrfor(), ast_sip_retrieve_auths(), ast_syslog_facility_name(), ast_syslog_priority_from_loglevel(), ast_udptl_write(), ast_ulaw_init(), ast_xml_open(), attempt_thread(), auth_http_callback(), authenticate(), authenticate_reply(), authenticate_verify(), build_ami_notify(), build_peer(), callerid_feed(), callerid_feed_jp(), cb_events(), cc_esc_publish_handler(), cdr_enable_batch_mode(), cdr_object_update_party_b(), cdr_toggle_runtime_options(), chan_pjsip_cng_tone_detected(), channel_admin_exec(), chanspy_exec(), check_auth(), check_key(), check_rtp_timeout(), check_user_full(), cleanup_module(), compose_func_args(), config_device(), config_line(), config_load(), config_module(), config_odbc(), connected_line_method_handler(), console_request(), console_video_start(), control_tone_frame_response(), copy_header(), copy_via_headers(), cpg_confchg_cb(), cpg_deliver_cb(), create_dynamic_lot_full(), create_temp_file(), crement_function_read(), crypto_load(), dahdi_cc_callback(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_setoption(), db_open(), destroy_all_channels(), destroy_trans(), dial_exec_full(), direct_media_glare_mitigation_handler(), direct_media_method_handler(), dispatch_thread_handler(), dnsmgr_refresh(), do_autokill(), do_forward(), do_message_auth(), do_monitor(), do_register(), do_reload(), dump_queue(), dundi_encrypt(), dundi_exec(), dundi_helper(), dundi_precache_full(), dundi_precache_internal(), dundi_prop_precache(), dundi_rexmit(), dundi_send(), eivr_comm(), extenspy_exec(), fax_detect_framehook(), ffmpeg_decode(), find_account(), find_subchannel_and_lock(), find_subchannel_by_name(), finish_bookmark(), forward_message(), generate_parked_user(), get_canmatch_exten(), gosub_run(), group_count_function_read(), handle_call_outgoing(), handle_clear_alarms(), handle_cli_indication_add(), handle_command_response(), handle_gosub(), handle_incoming(), handle_init_event(), handle_message(), handle_missing_column(), handle_options(), handle_playtones(), handle_request(), handle_request_bye(), handle_request_invite(), handle_request_notify(), handle_request_refer(), handle_request_register(), handle_request_subscribe(), handle_response(), handle_response_invite(), handle_response_notify(), handle_response_peerpoke(), handle_response_publish(), handle_response_refer(), handle_response_register(), handle_response_subscribe(), handle_response_update(), iax2_canmatch(), iax2_exec(), iax2_exists(), iax2_matchmore(), iax2_poke_peer(), iax2_prov_app(), iax2_send(), iax_provision_reload(), idle_sched_cb(), import_ch(), ivr_dispatch(), jingle_action_hook(), jingle_indicate(), join_queue(), keepalive_global_loaded(), ldap_loadentry(), load_config(), load_config_meetme(), load_module(), load_modules(), load_odbc_config(), load_realtime_rules(), local_ast_moh_start(), local_call(), log_failed_request(), log_jack_status(), manager_isdn_handler(), mbl_load_config(), measurenoise(), meetmemute(), message_template_parse_emailbody(), mgcp_call(), mgcp_fixup(), mgcp_request(), mgcp_rtp_read(), mgcpsock_read(), misdn_hangup(), misdn_write(), mixmonitor_exec(), mkintf(), moh_parse_options(), monmp3thread(), mpeg4_decode(), msg_create_from_file(), mssql_connect(), mwi_thread(), my_handle_dtmf(), my_handle_notify_message(), my_on_hook(), nbs_request(), new_find_extension(), new_invite(), new_subscribe(), onModeChanged(), ooh323_convertAsteriskCapToH323Cap(), ooh323_request(), ooh323_rtp_read(), open_mailbox(), originate_exec(), oss_request(), parking_park_bridge_channel(), parse_bookmark(), parse_config(), parse_data(), parse_line(), parse_moved_contact(), parse_register_contact(), parsing(), pbx_extension_helper(), pbx_find_extension(), pbx_live_dangerously(), pbx_load_module(), pgsql_exec(), pgsql_log(), phone_request(), pickup_by_exten(), pickup_by_group(), pickup_exec(), pickupchan_exec(), playback_final_update(), playback_first_update(), process_ast_dsp(), process_cn_rfc3389(), process_config(), process_cors_request(), process_dahdi(), process_sdp(), publish_channel_alarm_clear(), publish_span_alarm_clear(), publish_to_corosync(), purge_old_messages(), qualify_contact_cb(), queue_function_qac_dep(), queue_multi_channel_to_ami(), read_password_from_file(), realtime_exec(), reg_source_db(), register_realtime_peers_with_callbackextens(), register_verify(), registry_rerequest(), reload(), reload_config(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_queues(), res_sdp_crypto_parse_offer(), rqm_exec(), rtp_allocate_transport(), rtp_check_timeout(), scan_service(), send_check_user_failure_response(), set_caps(), set_config(), set_ulimit(), setup_dahdi_int(), setup_privacy_args(), sip_dump_history(), sip_msg_send(), sip_outbound_publish_callback(), sip_parse_host(), sip_parse_register_line(), sip_poke_noanswer(), sip_poke_peer(), sip_read(), sip_reg_timeout(), sip_request_call(), sip_reregister(), sipsock_read(), skinny_fixup(), skinny_indicate(), skinny_request(), skinny_session(), skinny_session_cleanup(), sla_station_exec(), smdi_load(), smoother_frame_feed(), sms_exec(), sms_messagerx2(), sms_process(), sms_readfile(), sms_writefile(), socket_process_helper(), softmix_mixing_array_grow(), softmix_mixing_array_init(), sorcery_config_internal_load(), sorcery_object_load(), srv_datastore_setup(), stasis_init(), stasis_message_type_declined(), stun_monitor_request(), stun_start_monitor(), stun_stop_monitor(), subscription_persistence_recreate(), system_exec_helper(), tdd_feed(), tds_load_module(), tds_log(), tds_message_handler(), test_state_changed(), testclient_exec(), testserver_exec(), timed_read(), transmit_refer(), transmit_register(), try_calling(), try_load_key(), udptl_pre_apply_config(), unistim_indicate(), unistim_request(), unistimsock_read(), update2_pgsql(), update2_prepare(), update_call_counter(), update_key(), update_pgsql(), update_registry(), update_scoreboard(), valid_priv_reply(), vars_to_headers(), vm_allocate_dh(), wait_for_answer(), wait_for_winner(), and waituntil_exec().

◆ LOG_TRACE

#define LOG_TRACE   __LOG_TRACE, _A_

Definition at line 252 of file logger.h.

◆ LOG_VERBOSE

#define LOG_VERBOSE   __LOG_VERBOSE, _A_

Definition at line 296 of file logger.h.

Referenced by __ast_str_helper().

◆ LOG_WARNING

#define LOG_WARNING   __LOG_WARNING, _A_
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 274 of file logger.h.

Referenced by __adsi_transmit_messages(), __allocate_taskprocessor(), __analog_handle_event(), __analog_ss_thread(), __ast_answer(), __ast_bridge_technology_register(), __ast_channel_alloc_ap(), __ast_cli_register(), __ast_dsp_call_progress(), __ast_format_def_register(), __ast_http_load(), __ast_pbx_run(), __ast_play_and_record(), __ast_queue_frame(), __ast_read(), __ast_register_translator(), __ast_smoother_feed(), __ast_sorcery_object_type_insert_wizard(), __ast_sorcery_wizard_register(), __ast_string_field_free_memory(), __ast_vm_greeter_register(), __ast_vm_register(), __attempt_transmit(), __dahdi_exception(), __find_callno(), __init_manager(), __mgcp_xmit(), __queues_show(), __rtp_recvfrom(), __set_address_from_contact(), __sip_autodestruct(), __sip_pretend_ack(), __sip_xmit(), __ssl_setup(), __ssl_setup_certs(), __stub__ast_aes_decrypt(), __stub__ast_aes_encrypt(), __stub__ast_aes_set_decrypt_key(), __stub__ast_aes_set_encrypt_key(), __transmit_response(), __unload_module(), _analog_get_index(), _dahdi_get_index(), _dsp_init(), _enum_array_map(), _extension_match_core(), _get_mohbyname(), _if_exec(), _macro_exec(), _moh_register(), _mohclass_unref(), _sip_tcp_helper_thread(), _while_exec(), accept_thread(), acf_abs_exec(), acf_cc_read(), acf_cc_write(), acf_curl_exec(), acf_curl_helper(), acf_curl_write(), acf_faxopt_read(), acf_faxopt_write(), acf_fetch(), acf_iaxvar_read(), acf_iaxvar_write(), acf_if(), acf_isexten_exec(), acf_jabberreceive_read(), acf_jabberstatus_read(), acf_max_exec(), acf_min_exec(), acf_odbc_read(), acf_odbc_write(), acf_strftime(), acf_strptime(), ack_trans(), aco_process_var(), action_kick_last(), action_playback(), action_playback_and_continue(), activate_thread(), add_agi_cmd(), add_calltoken_ignore(), add_cc_call_info_to_response(), add_cfg_entry(), add_content(), add_email_attachment(), add_exten_to_pattern_tree(), add_extensions(), add_features_datastore(), add_header(), add_identifier(), add_json_object(), add_line(), add_message_id(), add_priority(), add_realm_authentication(), add_redirect(), add_rt_multi_cfg_entry(), add_sdp(), add_sip_domain(), add_static_payload(), admin_exec(), adsi_careful_send(), adsi_get_cpeid(), adsi_get_cpeinfo(), adsi_load_session(), adsi_process(), adsi_prog(), adsi_transmit_message_full(), ael2_parse(), aes_helper(), after_bridge_move_channel_fail(), agent_after_bridge_cb_failed(), agent_function_read(), agent_login_exec(), agent_request_exec(), agi_exec_full(), alarmreceiver_exec(), alloc_notify_task_data(), alloc_sub(), alsa_card_init(), alsa_indicate(), alsa_new(), alsa_request(), alsa_write(), aMYSQL_clear(), aMYSQL_connect(), aMYSQL_disconnect(), aMYSQL_fetch(), aMYSQL_nextresult(), aMYSQL_query(), analog_answer(), analog_call(), analog_exception(), analog_handle_init_event(), analog_hangup(), analog_ss_thread(), announce_to_dial(), answer(), aoc_append_ie(), aoc_parse_ie(), app_control_remove_channel_from_bridge(), app_control_silence_start(), app_create(), app_exec(), app_handle_subscriptions(), app_subscribe(), app_unsubscribe(), append_ha_core(), append_mailbox(), applicationmap_handler(), apply_acl(), apply_contact_acl(), apply_dtls_attrib(), apply_general_options(), apply_option(), apply_options_full(), apply_outgoing(), aqm_exec(), ari_originate_dial(), ast_add_hint(), ast_adsi_install_funcs(), ast_agi_register(), ast_alaw_init(), ast_alertpipe_flush(), ast_alertpipe_init(), ast_alertpipe_read(), ast_aoc_create(), ast_aoc_decode(), ast_aoc_encode(), ast_app_exec_macro(), ast_app_exec_sub(), ast_app_expand_sub_args(), ast_apply_acl_internal(), ast_ari_asterisk_get_info(), ast_ari_bridges_record(), ast_ari_bridges_remove_channel(), ast_ari_channels_record(), ast_ari_config_validate_user(), ast_ari_recordings_copy_stored(), ast_ari_recordings_delete_stored(), ast_ari_websocket_events_event_websocket_established(), ast_ari_websocket_events_event_websocket_init(), ast_ari_websocket_session_create(), ast_ari_websocket_session_read(), ast_async_goto(), ast_audiosocket_connect(), ast_audiosocket_init(), ast_audiosocket_receive_frame(), ast_audiosocket_send_frame(), ast_autoservice_start(), ast_beep_start(), ast_bridge_add_channel(), ast_bridge_timelimit(), ast_calendar_register(), ast_cc_get_param(), ast_cc_set_param(), ast_change_hint(), ast_channel_add_bridge_role(), ast_channel_connected_line_macro(), ast_channel_destructor(), ast_channel_hangupcause_hash_set(), ast_channel_make_compatible_helper(), ast_channel_move(), ast_channel_redirecting_macro(), ast_channel_register(), ast_channel_suppress(), ast_channel_unsuppress(), ast_check_signature(), ast_check_signature_bin(), ast_check_timing2(), ast_cli_perms_init(), ast_cli_unregister(), ast_codec_samples_count(), ast_config_internal_load(), ast_connected_line_build_data(), ast_connected_line_parse_data(), ast_context_remove_extension_callerid2(), ast_context_verify_includes(), ast_crypt_validate(), ast_db_del(), ast_db_deltree(), ast_db_gettree(), ast_db_gettree_by_prefix(), ast_db_put(), ast_decrypt_bin(), ast_devstate_prov_add(), ast_dns_resolve(), ast_do_pickup(), ast_dsp_call_progress(), ast_dsp_process(), ast_dsp_silence_noise_with_energy(), ast_eid_to_str(), ast_enable_packet_fragmentation(), ast_encrypt_bin(), ast_event_new(), ast_extension_close(), ast_fax_state_to_str(), ast_find_ourip(), ast_format_cap_update_by_allow_disallow(), ast_format_def_unregister(), ast_format_str_reduce(), ast_framehook_list_fixup(), ast_get_chan_applicationmap(), ast_get_enum(), ast_get_group(), ast_get_money_str(), ast_get_number_str(), ast_handle_cc_control_frame(), ast_hangup(), ast_http_get_auth(), ast_http_get_contents(), ast_iax2_new(), ast_include_new(), ast_io_remove(), ast_ivr_menu_run_internal(), ast_jb_put(), ast_linear_stream(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_log_backtrace(), ast_makesocket(), ast_manager_register_struct(), ast_media_cache_create_or_update(), ast_module_reload(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_multicast_rtp_create_options(), ast_named_acl_find(), ast_netsock_bindaddr(), ast_odbc_direct_execute(), ast_odbc_find_table(), ast_odbc_prepare_and_execute(), ast_odbc_print_errors(), ast_openstream_full(), ast_openvstream(), ast_ouraddrfor(), ast_parse_digest(), ast_pbx_run_args(), ast_pbx_start(), ast_phoneprov_provider_register(), ast_pickup_call(), ast_pktccops_gate_alloc(), ast_presence_state_helper(), ast_prod(), ast_pthread_create_detached_stack(), ast_pthread_create_stack(), ast_queue_hangup_with_cause(), ast_read_image(), ast_read_textfile(), ast_readfile(), ast_record_review(), ast_redirecting_build_data(), ast_redirecting_parse_data(), ast_register_application2(), ast_register_switch(), ast_remotecontrol(), ast_res_pjsip_cleanup_options_handling(), ast_rtcp_read(), ast_rtp_convert_stats_json(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_end_with_duration(), ast_rtp_engine_register2(), ast_rtp_glue_register2(), ast_rtp_ice_start(), ast_rtp_ice_turn_request(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_interpret(), ast_rtp_on_turn_rx_rtcp_data(), ast_rtp_on_turn_rx_rtp_data(), ast_rtp_read(), ast_rtp_write(), ast_safe_fork(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_en(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), ast_say_date_with_format_gr(), ast_say_date_with_format_he(), ast_say_date_with_format_is(), ast_say_date_with_format_it(), ast_say_date_with_format_ja(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), ast_say_date_with_format_th(), ast_say_date_with_format_vi(), ast_say_date_with_format_zh(), ast_say_number_full_pt(), ast_sched_del(), ast_search_dns(), ast_search_dns_ex(), ast_security_event_report(), ast_senddigit_mf_begin(), ast_serializer_pool_destroy(), ast_set_cc_callback_macro(), ast_set_cc_offer_timer(), ast_set_cc_recall_timer(), ast_set_ccbs_available_timer(), ast_set_ccnr_available_timer(), ast_set_default_eid(), ast_set_priority(), ast_set_qos(), ast_sign_bin(), ast_sip_api_provider_register(), ast_sip_check_authentication(), ast_sip_create_rdata_with_contact(), ast_sip_create_request(), ast_sip_create_request_with_auth(), ast_sip_create_subscription(), ast_sip_location_retrieve_contact_and_aor_from_list_filtered(), ast_sip_ouraddrfor(), ast_sip_pubsub_generate_body_content(), ast_sip_pubsub_register_body_generator(), ast_sip_register_authenticator(), ast_sip_register_outbound_authenticator(), ast_sip_requires_authentication(), ast_sip_retrieve_auths_vector(), ast_sip_session_is_pending_stream_default(), ast_sip_session_regenerate_answer(), ast_sip_session_register_sdp_handler(), ast_sip_set_tpselector_from_transport(), ast_sip_unregister_authenticator(), ast_sip_unregister_outbound_authenticator(), ast_sipinfo_send(), ast_slinfactory_feed(), ast_smoother_read(), ast_sockaddr_parse(), ast_sockaddr_split_hostport(), ast_speech_register(), ast_srtp_change_source(), ast_srtp_protect(), ast_stopstream(), ast_str_substitute_variables_full(), ast_str_to_uuid(), ast_streamfile(), ast_syslog_facility_name(), AST_TEST_DEFINE(), ast_threadpool_create(), ast_translate_path_steps(), ast_translator_build_path(), ast_udptl_new_with_bindaddr(), ast_udptl_read(), ast_udptl_write(), ast_ulaw_init(), ast_unload_resource(), ast_unreal_answer(), ast_unreal_fixup(), ast_unreal_hangup(), ast_unreal_new_channels(), ast_uuid_init(), ast_waitfordigit_full(), ast_websocket_read(), ast_websocket_server_add_protocol2(), ast_websocket_uri_cb(), ast_write_stream(), ast_writefile(), ast_writestream(), ast_xml_query(), ast_xmldoc_load_documentation(), ast_yyerror(), async_delete_name_rec(), async_play_sound_helper(), asyncgoto_exec(), attach_barge(), attempt_transfer(), attended_transfer_exec(), audiosocket_run(), auth_credentials(), auth_exec(), auth_http_callback(), auth_type_handler(), authenticate_api_key(), authenticate_reply(), authenticate_verify(), autoservice_run(), available(), background_detect_exec(), balance_stack(), base64_helper(), base_encode(), begin_dial_prerun(), blacklist_read(), blind_transfer_exec(), blond_nonfinal_exit(), blr_ebl(), blr_txt(), bridge_base_init(), bridge_builtin_set_limits(), bridge_channel_handle_write(), bridge_exec(), bridge_p2p_rtp_write(), bridge_parking_push(), bridge_stasis_run_cb(), bridgewait_exec(), bucket_copy(), bucket_file_run_curl(), bucket_http_wizard_retrieve_id(), build_calendar(), build_channels(), build_conf(), build_device(), build_dtmf_features(), build_expression_queue(), build_gateway(), build_mapping(), build_notify(), build_peer(), build_user(), bump_gains(), cache_get_callno_locked(), calc_metric(), calculate_far_max_ifp(), calculate_local_max_datagram(), caldav_add_event(), caldav_load_calendar(), caldav_request(), caldav_write_event(), calendar_busy_exec(), calendar_devstate_change(), calendar_event_read(), calendar_query_exec(), calendar_query_result_exec(), calendar_write_exec(), caller_safety_timeout(), callerid_feed(), callerid_feed_jp(), callerid_get_dtmf(), calling_target_exit(), canary_thread(), cancel_and_unpublish(), careful_write(), cb_events(), cc_available(), cc_caller_requested(), cc_esc_publish_handler(), cc_handle_publish_error(), cccancel_exec(), cdr_generic_register(), cdr_handler(), cdr_prop_write(), cdr_read(), cdr_submit_batch(), cdr_write(), celt_set(), chan_misdn_log(), chan_pjsip_call(), chan_pjsip_digit_end(), chan_pjsip_hangup(), chan_pjsip_indicate(), chan_pjsip_transfer(), chan_pjsip_write_stream(), chanavail_exec(), channel_admin_exec(), channel_do_masquerade(), channel_read_pjsip(), channel_spy(), channel_to_session(), chanspy_exec(), check_abstract_reference(), check_access(), check_app_args(), check_auth(), check_context_names(), check_day(), check_debug(), check_dow(), check_expr2_input(), check_featuregroup(), check_for_conference(), check_goto(), check_header(), check_header_fmt(), check_includes(), check_macro_returns(), check_month(), check_pval_item(), check_switch_expr(), check_tcptls_cert_name(), check_timerange(), check_via(), clean_stmt(), clearcbone(), cleardisplay(), clearflag(), cleartimer(), close_call(), close_client(), common_identify(), compile_script(), complete_dialplan_add_extension(), complete_dialplan_remove_context(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), complete_transfer(), compress_subclass(), conf_add(), conf_del(), conf_exec(), conf_flush(), conf_queue_dtmf(), conf_rec_name(), conf_run(), conf_start_record(), confbridge_exec(), config_handler(), config_ldap(), config_line(), config_load(), config_module(), config_mysql(), config_odbc(), config_parse_variables(), config_pgsql(), config_text_file_load(), configure_connection_charset(), configure_local_rtp(), confkick_exec(), console_autoanswer(), console_cmd(), console_indicate(), console_request(), console_transfer(), consulting_exit(), controlplayback_exec(), cops_connect(), cops_gate_cmd(), cops_sendmsg(), copy(), corosync_show_members(), count_exec(), create_addr(), create_dirpath(), create_in_dialog_request(), create_jb(), create_new_socket(), create_out_of_dialog_request(), create_outgoing_sdp_stream(), create_queue_member(), create_subscription_tree(), create_video_frame(), crement_function_read(), crypto_activate(), crypto_load(), csv_log(), curl_header_callback(), custom_prepare(), custom_transport_handler(), cut_internal(), dahdi_answer(), dahdi_call(), dahdi_callwait(), dahdi_cc_callback(), dahdi_confmute(), dahdi_dial_str(), dahdi_digit_begin(), dahdi_ec_disable(), dahdi_ec_enable(), dahdi_fake_event(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_master_slave_link(), dahdi_new(), dahdi_open(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_ring_phone(), dahdi_sendtext(), dahdi_set_hook(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), dahdi_write(), dahdiras_exec(), db_create_astdb(), db_execute_sql(), db_get_common(), db_open(), deadagi_exec(), dec_init(), defer_action(), DEFINE_SQL_STATEMENT(), del_identifier(), delete_device(), deprecation_notice(), destroy_all_channels(), destroy_mysql(), destroy_odbc(), destroy_pgsql(), destroy_pval_item(), destroy_trans(), detect_read(), detect_write(), determine_starting_point(), devstate_write(), dial_exec_full(), dial_handle_playtones(), dialgroup_read(), dialgroup_write(), dialog_info_to_string(), dictate_exec(), digest_create_request_with_auth(), digitcollect(), digitdirect(), disa_exec(), disable_jack_hook(), disable_t38(), dispatch_thread_handler(), display_last_error(), display_nat_warning(), display_single_entry(), dns_parse_answer(), dns_parse_answer_ex(), dns_query_alloc(), do_monitor(), do_notify(), do_pktccops(), do_reload(), do_say(), do_waiting(), double_checking_exit(), dtmf_stream(), dtmfstore_exec(), dump_queue_members(), dumpsub(), dundi_answer_entity(), dundi_answer_query(), dundi_discover(), dundi_error_output(), dundi_exec(), dundi_helper(), dundi_lookup_internal(), dundi_precache_internal(), dundi_prop_precache(), dundi_query(), dundi_query_read(), dundi_result_read(), dundi_xmit(), dundifunc_read(), duplicate_pseudo(), eagi_exec(), ebl_callback(), eivr_comm(), enum_callback(), enum_query_read(), enum_result_read(), eval_exten_read(), evaluate_and(), evaluate_equal(), evaluate_greater_than(), evaluate_history_entry(), evaluate_less_than(), evaluate_like(), evaluate_not(), evaluate_or(), event_session_alloc(), ewscal_load_calendar(), exchangecal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exec_exec(), execif_exec(), execute(), execute_cb(), execute_curl_instance(), expand_gosub_args(), ext_cmp_pattern_pos(), exten_state_publisher_cb(), extension_matches(), extenspy_exec(), extstate_read(), fax_gateway_detect_t38(), fax_gateway_detect_v21(), fax_gateway_framehook(), fax_generator_generate(), fax_rate_str_to_int(), fbuf_append(), feature_attended_transfer(), feature_read(), feature_write(), featuremap_read(), featuremap_write(), festival_exec(), fetch_icalendar(), ffmpeg_encode(), file_read(), file_write(), filehelper(), filename_parse(), filter(), finalize_content(), find_body_generator(), find_cache(), find_conf(), find_conf_realtime(), find_desc(), find_details(), find_engine(), find_identifier(), find_line_by_instance(), find_line_by_name(), find_or_create(), find_or_create_details(), find_queue_by_name_rt(), find_registrar_aor(), find_sdp(), find_speeddial_by_instance(), find_subchannel_by_instance_reference(), find_subchannel_by_name(), find_subchannel_by_reference(), find_table(), findmeexec(), flash_exec(), fn_wrapper(), frame_trace_helper(), framein(), free_zone(), freq_parser(), func_args(), func_channel_read(), func_channel_write(), func_channel_write_real(), func_channels_read(), func_check_sipdomain(), func_confbridge_helper(), func_header_read(), func_headers_read2(), func_mchan_read(), func_mchan_write(), func_mixmonitor_read(), func_mute_write(), function_amiclient(), function_db_delete(), function_db_exists(), function_db_read(), function_db_write(), function_enum(), function_eval(), function_eval2(), function_ooh323_write(), function_realtime_read(), function_realtime_readdestroy(), function_realtime_store(), function_realtime_write(), function_txtcidname(), g719read(), g719write(), g723_len(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gen_generate(), gen_nextfile(), generate_computational_cost(), generate_parked_user(), generic_fax_exec(), generic_http_callback(), generic_prepare(), generic_read(), get_alarms(), get_also_info(), get_button_template(), get_calleridname(), get_comma(), get_defaults(), get_destination(), get_domain(), get_id_header(), get_in_brackets_const(), get_in_brackets_full(), get_input(), get_number_str_en(), get_pattern_node(), get_range(), get_rdnis(), get_refer_info(), get_timerange(), get_to_address(), get_token(), get_unused_callno(), getdisplaybyname(), getflagbyname(), getkeybyname(), getstatebyname(), getsubbyname(), gosub_exec(), gosubif_exec(), goto_exten(), goto_line(), goto_line_rel(), group_count_function_read(), group_function_read(), group_function_write(), grow(), gsm_read(), gsm_seek(), gsm_write(), gsmtolin_framein(), h261_decap(), h263_decap(), h263_encap(), h263_open(), h263_read(), h263_write(), h263p_decap(), h263p_encap(), h264_decap(), h264_encap(), h264_open(), h264_read(), h264_write(), handle_alarms(), handle_atsign(), handle_audiosocket_connection(), handle_call_incoming(), handle_call_outgoing(), handle_call_token(), handle_callforward_button(), handle_capabilities_res_message(), handle_cc_subscribe(), handle_clear_alarms(), handle_cli_database_show(), handle_cli_database_showkey(), handle_cli_indication_add(), handle_cli_indication_remove(), handle_cli_presencestate_list(), handle_client_registration(), handle_command_response(), handle_common_options(), handle_connection(), handle_enbloc_call_message(), handle_error(), handle_exec(), handle_getoption(), handle_hd_hf(), handle_incoming(), handle_incoming_request(), handle_init_event(), handle_input(), handle_keypad_button_message(), handle_local_optimization_end(), handle_message(), handle_missing_column(), handle_negotiated_sdp(), handle_offhook_message(), handle_participant_join(), handle_recordfile(), handle_registration_response(), handle_request(), handle_request_bye(), handle_request_info(), handle_request_invite(), handle_request_invite_st(), handle_request_notify(), handle_request_register(), handle_request_subscribe(), handle_response(), handle_response_info(), handle_response_invite(), handle_response_message(), handle_response_notify(), handle_response_refer(), handle_response_register(), handle_response_subscribe(), handle_show_hint(), handle_single_token(), handle_slash(), handle_soft_key_event_message(), handle_stimulus_message(), handle_t38_options(), handle_transfer_button(), handle_updates(), hangupcause_read(), hash_read(), hashkeys_read(), hashkeys_read2(), hesitant_exit(), hint_read(), holding_bridge_join(), hook_callback(), hook_off(), hook_on(), hook_re_enable(), hook_write(), http_body_check_chunk_sync(), http_body_discard_chunk_trailer_headers(), http_body_discard_contents(), http_body_get_chunk_length(), http_body_read_contents(), httpd_helper_thread(), iax2_ack_registry(), iax2_call(), iax2_canmatch(), iax2_devicestate(), iax2_do_register(), iax2_exec(), iax2_exists(), iax2_fixup(), iax2_hangup(), iax2_key_rotate(), iax2_matchmore(), iax2_poke_peer(), iax2_register(), iax2_request(), iax2_send(), iax2_trunk_queue(), iax_error_output(), iax_firmware_reload(), iax_process_template(), iax_template_parse(), ical_load_calendar(), icalendar_add_event(), ices_exec(), icesencode(), iconv_read(), ident_to_str(), iftime(), ilbc_read(), ilbc_write(), ilbctolin_framein(), in_band_indication(), increase_call_count(), indicate_data_internal(), init_acf_query(), init_app_class(), init_details(), init_req(), init_resp(), initialize_cc_devstate_map(), initialize_cc_max_requests(), inprocess_count(), insert_penaltychange(), insert_user_in_contact_uri(), int_handler_fn(), internal_feature_read(), internal_feature_write(), internal_featuremap_read(), internal_featuremap_write(), ip_identify_apply(), is_empty(), isAnsweringMachine(), jack_hook_callback(), jack_hook_write(), jb_framedata_init(), jb_get_and_deliver(), jb_helper(), jb_warning_output(), jingle_action_session_initiate(), jingle_write(), key_favorite(), keypad_cfg_read(), killpid(), launch_asyncagi(), launch_ha_netscript(), launch_monitor_thread(), launch_netscript(), launch_script(), launch_service(), ldap_loadentry(), ldap_reconnect(), leave_voicemail(), linear_alloc(), linear_generator(), linear_release(), lintogsm_framein(), lintolpc10_framein(), list_item_handler(), listener(), load_asterisk_conf(), load_column_config(), load_config(), load_config_meetme(), load_general_config(), load_indications(), load_module(), load_modules(), load_moh_classes(), load_mysql_config(), load_odbc_config(), load_pktccops_config(), load_realtime_musiconhold(), load_realtime_rules(), load_resource(), load_tech_calendars(), load_values_config(), loader_config_init(), loadresult2str(), local_ast_moh_cleanup(), local_ast_moh_start(), local_devicestate(), local_read(), local_request_with_stream_topology(), local_write(), log_attended_transfer(), logger_register_level(), lookup_iface(), lpc10tolin_framein(), macroif_exec(), main(), make_number(), make_silence(), make_str(), make_trunk(), manager_show_dialplan_helper(), manager_sipnotify(), map_video_codec(), math(), mbl_call(), mbl_hangup(), mbl_load_adapter(), mbl_request(), md5(), media_cache_item_populate_from_astdb(), meetme_menu_admin_extended(), memcpy_decrypt(), memcpy_encrypt(), memory_cache_populate(), mf_stream(), mgcp_call(), mgcp_fixup(), mgcp_indicate(), mgcp_new(), mgcp_reload(), mgcp_request(), mgcp_ss(), mgcp_write(), mgcpsock_read(), milliwatt_generate(), minivm_accmess_exec(), minivm_notify_exec(), minivm_record_exec(), misdn_answer(), misdn_call(), misdn_cfg_get(), misdn_cfg_get_config_string(), misdn_cfg_init(), misdn_cfg_is_msn_valid(), misdn_cfg_update_ptp(), misdn_check_l2l1(), misdn_digit_end(), misdn_facility_exec(), misdn_hangup(), misdn_indication(), misdn_request(), misdn_send_text(), misdn_set_opt_exec(), misdn_write(), mixmonitor_exec(), mkif(), mkintf(), moh_alloc(), moh_files_alloc(), moh_files_generator(), moh_files_release(), moh_generate(), moh_parse_options(), moh_release(), mohalloc(), monmp3thread(), morsecode_exec(), mp3_exec(), mp3_squeue(), mp3play(), msg_create_from_file(), msg_data_func_read(), msg_data_func_write(), msg_func_read(), msg_func_write(), msg_q_cb(), msg_send(), msg_send_exec(), multicast_rtp_write(), multicast_send_control_packet(), mwi_create_subscription(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), mwi_subscribe_single(), mwi_thread(), my_all_subchannels_hungup(), my_callwait(), my_distinctive_ring(), my_get_callerid(), my_handle_dtmf(), my_is_off_hook(), my_load_module(), my_new_analog_ast_channel(), my_on_hook(), my_send_callerid(), my_set_cadence(), mysql_ds_destroy(), mysql_ds_fixup(), MYSQL_exec(), mysql_reconnect(), native_start(), nbs_alloc(), nbs_call(), nbs_hangup(), nbs_new(), NBScat_exec(), NBScatplay(), netconsole(), new_realtime_sqlite3_db(), notify_contact(), notify_endpoint(), notify_new_message(), notify_uri(), odbc_load_module(), odbc_log(), odbc_obj_connect(), odbc_obj_disconnect(), ogg_speex_seek(), ogg_speex_tell(), ogg_speex_trunc(), ogg_vorbis_read(), ogg_vorbis_rewrite(), ogg_vorbis_seek(), ogg_vorbis_trunc(), old_milliwatt_exec(), on_personality_change_normal(), onevent(), ooh323_call(), ooh323_fixup(), ooh323_indicate(), ooh323_new(), ooh323_request(), ooh323_set_rtp_peer(), ooh323_write(), op_colon(), op_div(), op_eq(), op_eqtilde(), op_func(), op_minus(), op_negate(), op_plus(), op_rem(), op_tildetilde(), op_times(), open_history(), option_handler_findslot(), option_handler_parkpos(), opus_get(), opus_set(), originate_exec(), osp_check_destination(), osp_create_provider(), osp_load(), osp_lookup(), osp_validate_token(), osplookup_exec(), ospnext_exec(), oss_indicate(), oss_new(), oss_request(), overload_trigger_handler(), page_exec(), parse(), parse_args(), parse_bookmark(), parse_buffers_policy(), parse_config(), parse_data(), parse_empty_options(), parse_ie(), parse_line(), parse_minse(), parse_naptr(), parse_options(), parse_register_contact(), parse_request(), parse_session_expires(), parse_srv(), parse_tone_zone(), parse_uri_cb(), parsing(), participant_entertainment_start(), participant_reaction_announcer_join(), party_id_build_data(), party_name_build_data(), party_number_build_data(), party_subaddress_build_data(), pbx_builtin_background(), pbx_builtin_execiftime(), pbx_builtin_gotoif(), pbx_builtin_gotoiftime(), pbx_builtin_hangup(), pbx_builtin_importvar(), pbx_builtin_pushvar_helper(), pbx_builtin_saycharacters_case(), pbx_builtin_saynumber(), pbx_builtin_setvar(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_extension_helper(), pbx_find_extension(), pbx_live_dangerously(), pbx_load_config(), pbx_outgoing_attempt(), pbx_outgoing_exec(), pbx_parseable_goto(), pbx_start_incoming_request(), pbx_substitute_variables_helper_full(), pcm_read(), pcm_seek(), pcm_write(), peer_set_srcaddr(), pgsql_log(), phase_e_handler(), phone_call(), phone_digit_end(), phone_exception(), phone_hangup(), phone_indicate(), phone_mini_packet(), phone_new(), phone_read(), phone_setup(), phone_write(), phone_write_buf(), pickupchan_exec(), pidf_generate_body_content(), pidf_supplement_body(), pidf_to_string(), pidf_validate_presence(), pidf_validate_tuple(), pitchshift_helper(), pjsip_acf_channel_read(), pjsip_acf_dial_contacts_read(), pjsip_acf_dtmf_mode_read(), pjsip_acf_dtmf_mode_write(), pjsip_acf_media_offer_read(), pjsip_acf_media_offer_write(), pjsip_acf_moh_passthrough_read(), pjsip_acf_moh_passthrough_write(), pjsip_acf_parse_uri_read(), pjsip_acf_session_refresh_write(), pjsip_aor_function_read(), pjsip_logger_write_to_pcap(), pktccops_add_ippool(), play_file(), play_message(), play_message_by_id(), play_moh_exec(), play_record_review(), play_sound_helper(), playback_exec(), playback_final_update(), playtones_alloc(), playtones_generator(), pop_exec(), post_raw(), pp_each_extension_helper(), pqm_exec(), precache_trans(), precache_transactions(), presence_read(), presence_write(), privacy_exec(), private_enum_init(), proc_422_rsp(), proc_session_timer(), process_ast_dsp(), process_crypto(), process_dahdi(), process_description_file(), process_echocancel(), process_message_callback(), process_my_load_module(), process_opcode(), process_output(), process_request(), process_returncode(), process_sdp(), process_sdp_a_audio(), process_sdp_a_dtls(), process_sdp_c(), process_sdp_o(), process_text_line(), process_via(), profile_set_param(), proxy_from_config(), proxy_update(), publish_device_state_to_stasis(), publish_event_to_corosync(), publish_mwi_to_stasis(), publish_request_initial(), pubsub_on_rx_publish_request(), pubsub_on_rx_subscribe_request(), push_notify_channel(), pw_cb(), ql_exec(), queue_dtmf_readq(), queue_exec(), queue_file(), queue_function_mem_read(), queue_function_qac_dep(), queue_function_queuegetchannel(), queue_function_queuememberlist(), queue_function_queuewaitingcount(), queue_function_var(), queue_set_param(), queue_voice_frame(), quote(), qupd_exec(), rcv_mac_addr(), read_config(), read_exec(), read_mf_digits(), read_mf_exec(), read_packet(), read_sf_digits(), read_sf_exec(), readexten_exec(), readmimefile(), realtime_destroy_handler(), realtime_directory(), realtime_exec(), realtime_handler(), realtime_ldap_base_ap(), realtime_multi_handler(), realtime_multi_ldap(), realtime_multi_mysql(), realtime_multi_odbc(), realtime_multi_pgsql(), realtime_mysql(), realtime_odbc(), realtime_peer(), realtime_peer_by_addr(), realtime_peer_get_sippeer_helper(), realtime_pgsql(), realtime_require_handler(), realtime_sqlite3_destroy(), realtime_sqlite3_exec_query(), realtime_sqlite3_exec_query_with_handle(), realtime_sqlite3_exec_update(), realtime_sqlite3_exec_update_with_handle(), realtime_sqlite3_helper(), realtime_sqlite3_load(), realtime_sqlite3_require(), realtime_sqlite3_store(), realtime_sqlite3_update(), realtime_sqlite3_update2(), realtime_store_handler(), realtime_update2_handler(), realtime_update_handler(), realtimefield_read(), recalling_exit(), receive_message(), receivefax_exec(), receivefax_t38_init(), record_exec(), redirecting_reason_build_data(), refer_blind_callback(), refer_incoming_refer_request(), refresh_list(), regex(), register_aor_core(), register_exten(), register_peer_exten(), register_verify(), registrar_add_contact(), registrar_find_contact(), registrar_on_rx_request(), registry_rerequest(), release_doomed_pris(), reload(), reload_config(), reload_followme(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_single_member(), reload_single_queue(), remove_from_queue(), removed_options_handler(), reply_digest(), request_channel(), require_mysql(), require_odbc(), require_pgsql(), res_sdp_crypto_parse_offer(), res_sdp_srtp_get_attr(), reset_conf(), resolve_first(), resolve_refresh_media_states(), resource_list_apply_handler(), respprep(), restart_monitor(), restart_pktc_thread(), restore_conference(), restore_gains(), retrans_pkt(), retransfer_exit(), retrieve_resource_list(), retrydial_exec(), revert_fax_buffers(), rotate_file(), rqm_exec(), rt_handle_member_record(), rtcp_debug_test_addr(), rtp_allocate_transport(), rtp_codecs_assign_payload_code_rx(), rtp_instance_parse_transport_wide_cc(), rtp_raw_write(), rtp_reload(), run_agi(), run_app_helper(), run_ras(), s_streamwait3(), safe_append(), safe_exec_prep(), save_conference(), say_init_mode(), saycountedadj_exec(), saycountednoun_exec(), sayfile_exec(), scan_service(), scan_thread(), sched_settime(), schedule_publish_refresh(), schedule_registration(), schedule_retry(), sco_accept(), scramble_write(), sdp_register(), select_entry(), send_callerid(), send_client(), send_cluster_notify(), send_delay(), send_delayed_request(), send_dtmf(), send_ews_request_and_parse(), send_in_dialog_request(), send_month_labels(), send_request(), send_retransmit(), send_select_output(), send_start_rtp(), send_unsolicited_mwi_notify(), send_unsolicited_mwi_notify_to_contact(), send_waveform_to_channel(), send_waveform_to_fd(), senddtmf_exec(), sendfax_exec(), sendfax_t38_init(), sendimage_exec(), sendmail(), sendmf_exec(), sendurl_exec(), session_do(), session_on_rx_request(), set(), set_bridge_features_on_config(), set_config(), set_crypto_policy(), set_destination(), set_format(), set_full_cmd(), set_host_ipaddr(), set_if(), set_insecure_flags(), set_loop(), set_member_value(), set_outbound_initial_authentication_credentials(), set_priority_all(), set_queue_member_pause(), set_sound(), set_state(), set_ttl(), set_type(), set_ulimit(), set_var(), setflag(), setformat(), setsubstate(), setup_dahdi_int(), setup_filestack(), setup_mixmonitor(), setup_privacy_args(), setup_sdes_srtp(), setup_stunaddr(), sha1(), shared_read(), shared_write(), shell_helper(), shift_pop(), show_chanstats_cb(), show_dialplan_helper(), showdisplay(), showkeys(), silk_get(), silk_set(), sip_acf_channel_read(), sip_addheader(), sip_call(), sip_cancel_destroy(), sip_cc_monitor_suspend(), sip_cli_notify(), sip_dtmfmode(), sip_fixup(), sip_hangup(), sip_indicate(), sip_msg_send(), sip_new(), sip_options_apply_aor_configuration(), sip_options_synchronize_endpoint(), sip_outbound_publish_callback(), sip_outbound_registration_response_cb(), sip_outbound_registration_state_destroy(), sip_outbound_registration_timer_cb(), sip_parse_host(), sip_parse_nat_option(), sip_parse_register_line(), sip_pidf_validate(), sip_request_call(), sip_send_keepalive(), sip_sendcustominfo(), sip_sendhtml(), sip_session_refresh(), sip_subscribe_mwi(), sip_tcptls_read(), sip_to_pjsip(), sip_write(), sipinfo_send(), sipsock_read(), siren14_parse_sdp_fmtp(), siren14read(), siren14write(), siren7_parse_sdp_fmtp(), siren7read(), siren7write(), skel_exec(), skinny_call(), skinny_extensionstate_cb(), skinny_fixup(), skinny_indicate(), skinny_new(), skinny_newcall(), skinny_noauth_cb(), skinny_nokeepalive_cb(), skinny_register(), skinny_request(), skinny_session(), skinny_write(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_load_config(), sla_station_exec(), slinear_write(), smart_bridge_operation(), smdi_msg_read(), smdi_msg_retrieve_read(), sms_exec(), sms_generate(), sms_handleincoming(), sms_log(), sms_readfile(), socket_process_helper(), socket_process_meta(), socket_read(), softhangup_exec(), softmix_mixing_loop(), softmix_mixing_thread(), sorcery_astdb_filter_objectset(), sorcery_realtime_filter_objectset(), sorcery_realtime_retrieve_multiple(), sound_file_exists(), soundcard_writeframe(), span_message(), spandsp_fax_write(), spandsp_log(), spandsp_modems(), spandsp_v21_detect(), spawn_dp_lookup(), spawn_mp3(), speex_get_wb_sz_at(), speex_samples(), speex_write(), speextolin_framein(), spy_generate(), srv_query_read(), srv_result_read(), ssl_verify(), stale_cache_update(), start_moh_exec(), start_monitor_exec(), start_network_thread(), start_rtp(), start_stream(), starttimer(), stasis_app_control_answer(), stasis_app_control_record(), stasis_app_message_handler(), stasis_app_recording_operation(), stasis_app_send(), stasis_app_stored_recording_find_by_name(), stasis_app_user_event(), static_realtime_cb(), stir_shaken_read(), store_boost(), store_config(), store_config_core(), store_digit(), store_mixer(), store_mysql(), store_odbc(), store_pgsql(), store_tone_zone_ring_cadence(), str_to_agent_policy(), str_to_monitor_policy(), stream_echo_perform(), stun_monitor_request(), sub_persistence_recreate(), sub_start_silence(), sub_stop_silence(), subscript(), subscription_established(), subscription_get_handler_from_rdata(), subscription_persistence_load(), subscription_persistence_recreate(), subscription_persistence_update(), swap_subs(), sysinfo_helper(), system_apply(), system_exec_helper(), t38_attach_framehook(), t38_change_state(), t38_reinvite_response_cb(), t38_tx_packet_handler(), taskprocessor_push(), tdd_feed(), tdd_new(), test_alloc(), test_generate_results(), testclient_exec(), timelen_handler_fn(), timezone_add(), to_number(), to_string(), tonepair_alloc(), tonepair_generator(), transfer_call_step1(), transfer_cancel_step2(), transfer_exec(), transfer_redirect(), transmit(), transmit_audio(), transmit_cc_notify(), transmit_invite(), transmit_register(), transmit_request_with_auth(), transmit_response_bysession(), transmit_response_with_auth(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), transmit_state_notify(), transmit_t38(), transport_apply(), transport_tls_file_handler(), transport_tos_handler(), try_calling(), try_firmware(), try_load_key(), try_transfer(), tryexec_exec(), tvfix(), txt_callback(), udptl_pre_apply_config(), uint_handler_fn(), unalloc_sub(), unistim_answer(), unistim_call(), unistim_do_senddigit(), unistim_fixup(), unistim_indicate(), unistim_new(), unistim_request(), unistim_rtp_read(), unistim_sendtext(), unistim_ss(), unistim_write(), unistimsock_read(), unload_dynamic_module(), unload_module(), unlock_read(), unregister_exten(), unshift_push(), unsubscribe(), unsupported_handler(), update2_ldap(), update2_mysql(), update2_odbc(), update2_pgsql(), update2_prepare(), update_config(), update_content_type(), update_from(), update_header(), update_modem_bits(), update_mysql(), update_odbc(), update_pgsql(), update_registry(), update_stats(), update_to_uri(), upqm_exec(), used_blocks(), userevent_exec(), ustmtext(), validate_user_cb(), verbose_exec(), vm_allocate_dh(), vm_check_password_shell(), vm_intro(), vm_mailbox_snapshot_create(), vm_msg_forward(), vm_msg_move(), vm_msg_play(), vm_msg_remove(), vm_msg_snapshot_create(), vmsayname_exec(), volume_read(), volume_write(), vox_read(), vox_write(), vp8_set(), wait_exec(), wait_file(), wait_for_answer(), wait_for_digits(), wait_for_winner(), wait_to_recall_exit(), wait_to_retransfer_exit(), waitforring_exec(), waitstream_core(), waituntil_exec(), wav_close(), wav_read(), wav_seek(), wav_write(), websocket_echo_callback(), while(), write_header(), write_history(), write_stream(), writefile_account(), ws_safe_read(), xmldoc_build_field(), xmldoc_get_syntax_fun(), xmldoc_string_wrap(), xmldoc_update_config_option(), xmldoc_update_config_type(), xmpp_client_receive(), xmpp_client_subscribe_user(), xmpp_client_thread(), xmpp_client_unsubscribe_user(), xmpp_component_register_get_hook(), xmpp_component_register_set_hook(), xmpp_component_service_discovery_get_hook(), xmpp_component_service_discovery_items_hook(), xmpp_pak_presence(), xmpp_pak_s10n(), xmpp_pubsub_delete_node_list(), xmpp_send_cb(), xmpp_send_exec(), xpidf_to_string(), yyparse(), and zombify_threads().

◆ NUMLOGLEVELS

#define NUMLOGLEVELS   32

Definition at line 314 of file logger.h.

Referenced by ast_console_toggle_loglevel().

◆ QUEUELOG

#define QUEUELOG   "queue_log"

Definition at line 35 of file logger.h.

Referenced by init_logger_chain().

◆ SCOPE_ENTER

#define SCOPE_ENTER (   level,
  ... 
)

Non RAII_VAR Scope Trace macros The advantage of these macros is that the EXITs will have the actual line number where the scope exited. Much less code is required as well.

Scope Enter

Parameters
levelThe trace level
(optional)A printf style format string
(optional)Arguments

Definition at line 780 of file logger.h.

Referenced by add_sdp_streams(), apply_negotiated_sdp_stream(), ast_channel_nativeformats_set(), ast_channel_set_stream_topology(), ast_sip_session_create_invite(), ast_sip_session_create_outgoing(), ast_sip_session_media_state_add(), ast_sip_session_regenerate_answer(), ast_sip_session_terminate(), ast_stream_create_resolved(), AST_TEST_DEFINE(), call(), chan_pjsip_answer(), chan_pjsip_call(), chan_pjsip_get_codec(), chan_pjsip_hangup(), chan_pjsip_incoming_ack(), chan_pjsip_incoming_request(), chan_pjsip_incoming_response(), chan_pjsip_incoming_response_update_cause(), chan_pjsip_indicate(), chan_pjsip_new(), chan_pjsip_request_with_stream_topology(), chan_pjsip_session_begin(), chan_pjsip_session_end(), chan_pjsip_set_rtp_peer(), compatible_formats_exist(), create_local_sdp(), create_outgoing_sdp_stream(), delay_request(), dial_exec_full(), generate_session_refresh_sdp(), get_codecs(), handle_incoming_request(), handle_incoming_response(), handle_incoming_sdp(), handle_negotiated_sdp(), handle_negotiated_sdp_session_media(), handle_new_invite_request(), handle_outgoing_request(), handle_outgoing_response(), handle_topology_request_change(), hangup(), invite_collision_timeout(), invite_proceeding(), invite_terminated(), is_media_state_valid(), negotiate_incoming_sdp_stream(), new_invite(), on_topology_change_response(), pbx_start_incoming_request(), request(), reschedule_reinvite(), resolve_refresh_media_states(), send_delayed_request(), send_topology_change_refresh(), session_inv_on_media_update(), session_inv_on_rx_offer(), session_inv_on_state_changed(), session_inv_on_tsx_state_changed(), session_on_rx_request(), session_on_rx_response(), session_on_tsx_state(), set_caps(), set_incoming_call_offer_cap(), sfu_topologies_on_join(), sip_session_refresh(), softmix_bridge_join(), softmix_bridge_stream_sources_update(), softmix_bridge_stream_topology_changed(), test_is_media_state_equal(), test_scope_enter_function(), test_scope_trace(), and wait_for_answer().

◆ SCOPE_ENTER_TASK

#define SCOPE_ENTER_TASK (   level,
  indent,
  ... 
)

Definition at line 788 of file logger.h.

Referenced by answer().

◆ SCOPE_EXIT

#define SCOPE_EXIT (   ...)

Scope Exit.

Parameters
(optional)A printf style format string
(optional)Arguments

This macro can be used at the exit points of a statement block since it just prints the message.

Definition at line 805 of file logger.h.

Referenced by AST_TEST_DEFINE(), create_local_sdp(), handle_incoming_request(), handle_incoming_response(), handle_incoming_sdp(), handle_new_invite_request(), handle_outgoing_request(), handle_outgoing_response(), is_media_state_valid(), resolve_refresh_media_states(), sfu_topologies_on_join(), sip_session_refresh(), and softmix_bridge_stream_sources_update().

◆ SCOPE_EXIT_EXPR

#define SCOPE_EXIT_EXPR (   __expr,
  ... 
)

◆ SCOPE_EXIT_LOG

#define SCOPE_EXIT_LOG (   __log_level,
  ... 
)
Value:
({ \
ast_log(__log_level, " " __VA_ARGS__); \
SCOPE_EXIT(" " __VA_ARGS__); \
})

The following macros will print log messages before running the associated SCOPE_ macro.

Definition at line 928 of file logger.h.

Referenced by softmix_bridge_stream_sources_update().

◆ SCOPE_EXIT_LOG_EXPR

#define SCOPE_EXIT_LOG_EXPR (   __expr,
  __log_level,
  ... 
)
Value:
({ \
ast_log(__log_level, " " __VA_ARGS__); \
SCOPE_EXIT_EXPR(__expr, " " __VA_ARGS__); \
})

Definition at line 946 of file logger.h.

Referenced by create_local_sdp(), handle_incoming_sdp(), and sip_session_refresh().

◆ SCOPE_EXIT_LOG_RTN

#define SCOPE_EXIT_LOG_RTN (   __log_level,
  ... 
)
Value:
({ \
ast_log(__log_level, " " __VA_ARGS__); \
SCOPE_EXIT_RTN(" " __VA_ARGS__); \
})

Definition at line 934 of file logger.h.

Referenced by handle_outgoing_response(), reschedule_reinvite(), and sfu_topologies_on_join().

◆ SCOPE_EXIT_LOG_RTN_VALUE

#define SCOPE_EXIT_LOG_RTN_VALUE (   __value,
  __log_level,
  ... 
)
Value:
({ \
ast_log(__log_level, " " __VA_ARGS__); \
SCOPE_EXIT_RTN_VALUE(__value, " " __VA_ARGS__); \
})

Definition at line 940 of file logger.h.

Referenced by chan_pjsip_incoming_request(), chan_pjsip_indicate(), create_local_sdp(), delay_request(), handle_incoming_sdp(), resolve_refresh_media_states(), send_delayed_request(), and sip_session_refresh().

◆ SCOPE_EXIT_RTN

#define SCOPE_EXIT_RTN (   ...)

◆ SCOPE_EXIT_RTN_VALUE

#define SCOPE_EXIT_RTN_VALUE (   __return_value,
  ... 
)

Scope Exit with return value.

Parameters
__return_valueThe return value
(optional)A printf style format string
(optional)Arguments

This macro can be used at the exit points of a function when a value needs to be returned.

Definition at line 875 of file logger.h.

Referenced by add_sdp_streams(), answer(), apply_negotiated_sdp_stream(), ast_channel_set_stream_topology(), ast_sip_session_create_invite(), ast_sip_session_create_outgoing(), ast_sip_session_media_state_add(), ast_sip_session_regenerate_answer(), ast_stream_create_resolved(), AST_TEST_DEFINE(), call(), chan_pjsip_answer(), chan_pjsip_call(), chan_pjsip_hangup(), chan_pjsip_incoming_ack(), chan_pjsip_incoming_request(), chan_pjsip_indicate(), chan_pjsip_new(), chan_pjsip_request_with_stream_topology(), chan_pjsip_set_rtp_peer(), compatible_formats_exist(), create_local_sdp(), create_outgoing_sdp_stream(), delay_request(), dial_exec_full(), generate_session_refresh_sdp(), handle_incoming_sdp(), handle_negotiated_sdp(), handle_negotiated_sdp_session_media(), handle_topology_request_change(), hangup(), invite_collision_timeout(), invite_proceeding(), invite_terminated(), is_media_state_valid(), negotiate_incoming_sdp_stream(), new_invite(), on_topology_change_response(), pbx_start_incoming_request(), request(), resolve_refresh_media_states(), send_delayed_request(), send_topology_change_refresh(), session_on_rx_request(), session_on_rx_response(), set_caps(), set_incoming_call_offer_cap(), sip_session_refresh(), softmix_bridge_join(), test_is_media_state_equal(), test_scope_enter_function(), and wait_for_answer().

◆ SCOPE_TRACE

#define SCOPE_TRACE (   level,
  ... 
)

Print a trace message with details when a scope is entered or existed.

Parameters
levelThe trace level
(optional)A printf style format string
(optional)Arguments

This will print the file, line and function plus details at the current indent level.

Note
Like RAII_VAR, this macro must be called before any code in the scope.
The variables used to detect scope change will look like __scopevar1234__EXIT and __scopevar1234__ENTER. The ENTER variable and function are needed to prevent mixed code and declaration issues. If we simple called __ast_trace, then this macro would need to be the last line of scope variable declaration. The following would fail.

SCOPE_TRACE(1, "Help!\n"); int i;

Definition at line 749 of file logger.h.

Referenced by __ast_answer(), ast_answer(), ast_bridge_call_with_flags(), ast_bridge_depart(), ast_bridge_impart(), ast_bridge_join(), ast_raw_answer_with_stream_topology(), AST_TEST_DEFINE(), and pre_bridge_setup().

◆ TRACE_ATLEAST

#define TRACE_ATLEAST (   level)
Value:
|| (int)ast_trace_get_by_module(__FILE__) >= (level))))
#define ast_opt_trace_module
Definition: options.h:129
unsigned int ast_trace_get_by_module(const char *module)
Get the trace level for a module.
Definition: main/cli.c:153
#define AST_MODULE
int * level
Definition: logger.c:2223
int option_trace
Definition: options.c:71

Definition at line 637 of file logger.h.

Referenced by ast_stream_create_resolved(), handle_new_invite_request(), and session_on_rx_request().

◆ VERBOSE_HASMAGIC

#define VERBOSE_HASMAGIC (   x)    (*(signed char *) (x) < 0)

Definition at line 193 of file logger.h.

Referenced by console_print().

◆ VERBOSE_MAGIC2LEVEL

#define VERBOSE_MAGIC2LEVEL (   x)    (((char) -*(signed char *) (x)) - 1)

Definition at line 192 of file logger.h.

Referenced by console_print().

◆ VERBOSE_PREFIX_1

#define VERBOSE_PREFIX_1   " "

Definition at line 41 of file logger.h.

Referenced by logger_add_verbose_magic(), and set_header().

◆ VERBOSE_PREFIX_2

#define VERBOSE_PREFIX_2   " == "

Definition at line 42 of file logger.h.

Referenced by logger_add_verbose_magic(), and set_header().

◆ VERBOSE_PREFIX_3

#define VERBOSE_PREFIX_3   " -- "

Definition at line 43 of file logger.h.

Referenced by logger_add_verbose_magic(), and set_header().

◆ VERBOSE_PREFIX_4

#define VERBOSE_PREFIX_4   " > "

Definition at line 44 of file logger.h.

Referenced by logger_add_verbose_magic(), set_header(), and socket_process_helper().

◆ VERBOSITY_ATLEAST

#define VERBOSITY_ATLEAST (   level)    ((level) <= ast_verb_sys_level)

Typedef Documentation

◆ ast_callid

typedef unsigned int ast_callid
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 87 of file logger.h.

Enumeration Type Documentation

◆ ast_logger_results

Enumerator
AST_LOGGER_SUCCESS 

Log channel was created or deleted successfully

AST_LOGGER_FAILURE 

Log channel already exists for create or doesn't exist for deletion of log channel

AST_LOGGER_DECLINE 

Log channel request was not accepted

AST_LOGGER_ALLOC_ERROR 

filename allocation error

Definition at line 48 of file logger.h.

48  {
49  AST_LOGGER_SUCCESS = 0, /*!< Log channel was created or deleted successfully*/
50  AST_LOGGER_FAILURE = 1, /*!< Log channel already exists for create or doesn't exist for deletion of log channel */
51  AST_LOGGER_DECLINE = -1, /*!< Log channel request was not accepted */
52  AST_LOGGER_ALLOC_ERROR = -2 /*!< filename allocation error */
53 };

◆ ast_trace_indent_type

Controls if and when indenting is applied.

Enumerator
AST_TRACE_INDENT_SAME 

Use the existing indent level

AST_TRACE_INDENT_INC_BEFORE 

Increment the indent before printing the message

AST_TRACE_INDENT_INC_AFTER 

Increment the indent after printing the message

AST_TRACE_INDENT_DEC_BEFORE 

Decrement the indent before printing the message

AST_TRACE_INDENT_DEC_AFTER 

Decrement the indent after printing the message

AST_TRACE_INDENT_PROVIDED 

Set the indent to the one provided

AST_TRACE_INDENT_NONE 

Don't use or alter the level

Definition at line 646 of file logger.h.

646  {
647  /*! Use the existing indent level */
649  /*! Increment the indent before printing the message */
651  /*! Increment the indent after printing the message */
653  /*! Decrement the indent before printing the message */
655  /*! Decrement the indent after printing the message */
657  /*! Set the indent to the one provided */
659  /*! Don't use or alter the level */
661 };

Function Documentation

◆ __ast_trace()

void __ast_trace ( const char *  file,
int  line,
const char *  func,
enum ast_trace_indent_type  indent_type,
unsigned long  indent,
const char *  format,
  ... 
)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2405 of file logger.c.

References __LOG_TRACE, ast_free, ast_log_full(), ast_skip_blanks(), ast_str_buffer(), ast_str_create, ast_str_set(), ast_threadstorage_get_ptr(), ast_threadstorage_set_ptr(), AST_TRACE_INDENT_DEC_AFTER, AST_TRACE_INDENT_DEC_BEFORE, AST_TRACE_INDENT_INC_AFTER, AST_TRACE_INDENT_INC_BEFORE, AST_TRACE_INDENT_NONE, AST_TRACE_INDENT_PROVIDED, AST_TRACE_INDENT_SAME, LOTS_O_SPACES, NULL, and S_OR.

2407 {
2408  va_list ap;
2409  unsigned long indent = (unsigned long)ast_threadstorage_get_ptr(&trace_indent);
2410  struct ast_str *fmt = ast_str_create(128);
2411  const char *direction = "";
2412 
2413  if (!fmt) {
2414  return;
2415  }
2416 
2417  if (indent_type == AST_TRACE_INDENT_PROVIDED) {
2418  indent = new_indent;
2419  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2420  } else if (indent_type == AST_TRACE_INDENT_INC_BEFORE) {
2421  indent++;
2422  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2423  } else if (indent_type == AST_TRACE_INDENT_DEC_BEFORE) {
2424  indent--;
2425  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2426  }
2427 
2428  switch(indent_type) {
2429  case AST_TRACE_INDENT_NONE:
2430  case AST_TRACE_INDENT_SAME:
2431  direction = "";
2432  break;
2436  direction = "--> ";
2437  break;
2440  direction = "<-- ";
2441  break;
2442  }
2443 
2444  ast_str_set(&fmt, 0, "%2d %-.*s%s%s:%d %s: %s", (int)indent, (indent_type == AST_TRACE_INDENT_NONE ? 0 : (int)(indent * 4)),
2445  LOTS_O_SPACES, direction, file, line, func, S_OR(ast_skip_blanks(format), "\n"));
2446 
2447  if (indent_type == AST_TRACE_INDENT_INC_AFTER || indent_type == AST_TRACE_INDENT_PROVIDED) {
2448  indent++;
2449  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2450  }
2451  if (indent_type == AST_TRACE_INDENT_DEC_AFTER) {
2452  indent--;
2453  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2454  }
2455 
2456  va_start(ap, format);
2457  ast_log_full(__LOG_TRACE, -1, NULL, 0, NULL, 0, ast_str_buffer(fmt), ap);
2458  va_end(ap);
2459  ast_free(fmt);
2460 }
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Definition: strings.h:714
#define NULL
Definition: resample.c:96
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
Definition: strings.h:1065
int ast_threadstorage_set_ptr(struct ast_threadstorage *ts, void *ptr)
Set a raw pointer from threadstorage.
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Definition: strings.h:584
char * ast_skip_blanks(const char *str)
Gets a pointer to the first non-whitespace character in a string.
Definition: strings.h:157
#define ast_free(a)
Definition: astmm.h:182
void * ast_threadstorage_get_ptr(struct ast_threadstorage *ts)
Retrieve a raw pointer from threadstorage.
#define __LOG_TRACE
Definition: logger.h:251
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one...
Definition: strings.h:79
static void ast_log_full(int level, int sublevel, const char *file, int line, const char *function, ast_callid callid, const char *fmt, va_list ap)
send log messages to syslog and/or the console
Definition: logger.c:2053
direction
static snd_pcm_format_t format
Definition: chan_alsa.c:102
#define LOTS_O_SPACES
Definition: logger.c:2375
#define ast_str_create(init_len)
Create a malloc&#39;ed dynamic length string.
Definition: strings.h:620

◆ __ast_verbose()

void __ast_verbose ( const char *  file,
int  line,
const char *  func,
int  level,
const char *  fmt,
  ... 
)

Send a verbose message (based on verbose level)

This works like ast_log, but prints verbose messages to the console depending on verbosity level set.

ast_verbose(VERBOSE_PREFIX_3 "Whatever %s is happening\n", "nothing");

This will print the message to the console if the verbose level is set to a level >= 3

Note the absence of a comma after the VERBOSE_PREFIX_3. This is important. VERBOSE_PREFIX_1 through VERBOSE_PREFIX_4 are defined.

Version
11 added level parameter
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2198 of file logger.c.

2199 {
2200  ast_callid callid;
2201  va_list ap;
2202 
2203  callid = ast_read_threadstorage_callid();
2204 
2205  va_start(ap, fmt);
2206  __ast_verbose_ap(file, line, func, level, callid, fmt, ap);
2207  va_end(ap);
2208 }
unsigned int ast_callid
Definition: logger.h:87
void __ast_verbose_ap(const char *file, int line, const char *func, int level, ast_callid callid, const char *fmt, va_list ap)
Definition: logger.c:2193
ast_callid ast_read_threadstorage_callid(void)
extracts the callerid from the thread
Definition: logger.c:1962

◆ __ast_verbose_ap()

void __ast_verbose_ap ( const char *  file,
int  line,
const char *  func,
int  level,
ast_callid  callid,
const char *  fmt,
va_list  ap 
)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2193 of file logger.c.

References __LOG_VERBOSE, and ast_log_full().

Referenced by __ast_verbose(), __ast_verbose_callid(), and ast_log_ap().

2194 {
2195  ast_log_full(__LOG_VERBOSE, level, file, line, func, callid, fmt, ap);
2196 }
#define __LOG_VERBOSE
Definition: logger.h:295
static void ast_log_full(int level, int sublevel, const char *file, int line, const char *function, ast_callid callid, const char *fmt, va_list ap)
send log messages to syslog and/or the console
Definition: logger.c:2053

◆ __ast_verbose_callid()

void __ast_verbose_callid ( const char *  file,
int  line,
const char *  func,
int  level,
ast_callid  callid,
const char *  fmt,
  ... 
)

Send a verbose message (based on verbose level) with deliberately specified callid.

just like __ast_verbose, only __ast_verbose_callid allows you to specify which callid is being used for the log without needing to bind it to a thread. NULL is a valid argument for this function and will allow you to specify that a log will never display a call id even when there is a call id bound to the thread.

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2210 of file logger.c.

References __ast_verbose_ap().

2211 {
2212  va_list ap;
2213  va_start(ap, fmt);
2214  __ast_verbose_ap(file, line, func, level, callid, fmt, ap);
2215  va_end(ap);
2216 }
void __ast_verbose_ap(const char *file, int line, const char *func, int level, ast_callid callid, const char *fmt, va_list ap)
Definition: logger.c:2193

◆ _ast_trace_dec_indent()

unsigned long _ast_trace_dec_indent ( void  )

Decrement the indent level.

Returns
The new indent level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2396 of file logger.c.

References ast_threadstorage_get_ptr(), and ast_threadstorage_set_ptr().

2397 {
2398  unsigned long indent = (unsigned long)ast_threadstorage_get_ptr(&trace_indent);
2399  indent--;
2400  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2401 
2402  return indent;
2403 }
int ast_threadstorage_set_ptr(struct ast_threadstorage *ts, void *ptr)
Set a raw pointer from threadstorage.
void * ast_threadstorage_get_ptr(struct ast_threadstorage *ts)
Retrieve a raw pointer from threadstorage.

◆ _ast_trace_get_indent()

unsigned long _ast_trace_get_indent ( void  )

Get the current indent level.

Returns
The current indent level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2377 of file logger.c.

References ast_threadstorage_get_ptr().

2378 {
2379  return (unsigned long)ast_threadstorage_get_ptr(&trace_indent);
2380 }
void * ast_threadstorage_get_ptr(struct ast_threadstorage *ts)
Retrieve a raw pointer from threadstorage.

◆ _ast_trace_inc_indent()

unsigned long _ast_trace_inc_indent ( void  )

Increment the indent level.

Returns
The new indent level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2387 of file logger.c.

References ast_threadstorage_get_ptr(), and ast_threadstorage_set_ptr().

2388 {
2389  unsigned long indent = (unsigned long)ast_threadstorage_get_ptr(&trace_indent);
2390  indent++;
2391  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2392 
2393  return indent;
2394 }
int ast_threadstorage_set_ptr(struct ast_threadstorage *ts, void *ptr)
Set a raw pointer from threadstorage.
void * ast_threadstorage_get_ptr(struct ast_threadstorage *ts)
Retrieve a raw pointer from threadstorage.

◆ _ast_trace_set_indent()

void _ast_trace_set_indent ( unsigned long  indent)

Set the current indent level.

Parameters
indentThe new indent level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2382 of file logger.c.

References ast_threadstorage_set_ptr().

2383 {
2384  ast_threadstorage_set_ptr(&trace_indent, (void*)indent);
2385 }
int ast_threadstorage_set_ptr(struct ast_threadstorage *ts, void *ptr)
Set a raw pointer from threadstorage.

◆ ast_callid_strnprint()

void ast_callid_strnprint ( char *  buffer,
size_t  buffer_size,
ast_callid  callid 
)

copy a string representation of the callid into a target string

Parameters
bufferdestination of callid string (should be able to store 13 characters or more)
buffer_sizemaximum writable length of the string (Less than 13 will result in truncation)
callidCallid for which string is being requested
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1952 of file logger.c.

Referenced by ast_channel_callid_set(), func_channel_read(), handle_showchan(), and iax_pvt_callid_new().

1953 {
1954  snprintf(buffer, buffer_size, "[C-%08x]", callid);
1955 }

◆ ast_callid_threadassoc_add()

int ast_callid_threadassoc_add ( ast_callid  callid)

Adds a known callid to thread storage of the calling thread.

Return values
0- success
non-zero- failure
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1984 of file logger.c.

References ast_log(), ast_threadstorage_get(), LOG_ERROR, and unique_callid.

Referenced by __analog_ss_thread(), __ast_pbx_run(), ast_callid_threadstorage_auto(), async_dial(), attended_transfer_monitor_thread(), bridge_channel_control_thread(), bridge_channel_depart_thread(), bridge_channel_ind_thread(), handle_request_do(), jingle_action_hook(), jingle_outgoing_hook(), mixmonitor_thread(), socket_process_helper(), and softmix_mixing_thread().

1985 {
1986  ast_callid *pointing;
1987 
1988  pointing = ast_threadstorage_get(&unique_callid, sizeof(*pointing));
1989  if (!pointing) {
1990  return -1;
1991  }
1992 
1993  if (*pointing) {
1994  ast_log(LOG_ERROR, "ast_callid_threadassoc_add(C-%08x) on thread "
1995  "already associated with callid [C-%08x].\n", callid, *pointing);
1996  return 1;
1997  }
1998 
1999  *pointing = callid;
2000  return 0;
2001 }
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
unsigned int ast_callid
Definition: logger.h:87
static struct ast_threadstorage unique_callid
Definition: logger.c:91
#define LOG_ERROR
Definition: logger.h:285
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
Definition: logger.c:2101

◆ ast_callid_threadassoc_change()

int ast_callid_threadassoc_change ( ast_callid  callid)

Sets what is stored in the thread storage to the given callid if it does not match what is already there.

Return values
0- success
non-zero- failure
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1971 of file logger.c.

References ast_threadstorage_get(), and unique_callid.

Referenced by autoservice_run(), and bridge_manager_service().

1972 {
1973  ast_callid *id = ast_threadstorage_get(&unique_callid, sizeof(*id));
1974 
1975  if (!id) {
1976  return -1;
1977  }
1978 
1979  *id = callid;
1980 
1981  return 0;
1982 }
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
unsigned int ast_callid
Definition: logger.h:87
static struct ast_threadstorage unique_callid
Definition: logger.c:91

◆ ast_callid_threadassoc_remove()

int ast_callid_threadassoc_remove ( void  )

Removes callid from thread storage of the calling thread.

Return values
0- success
non-zero- failure
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2003 of file logger.c.

References ast_threadstorage_get(), and unique_callid.

Referenced by ast_callid_threadstorage_auto_clean(), attended_transfer_monitor_thread(), handle_request_do(), jingle_action_hook(), jingle_outgoing_hook(), and socket_process().

2004 {
2005  ast_callid *pointing;
2006 
2007  pointing = ast_threadstorage_get(&unique_callid, sizeof(*pointing));
2008  if (!pointing) {
2009  return -1;
2010  }
2011 
2012  if (*pointing) {
2013  *pointing = 0;
2014  return 0;
2015  }
2016 
2017  return -1;
2018 }
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
unsigned int ast_callid
Definition: logger.h:87
static struct ast_threadstorage unique_callid
Definition: logger.c:91

◆ ast_callid_threadstorage_auto()

int ast_callid_threadstorage_auto ( ast_callid callid)

Checks thread storage for a callid and stores a reference if it exists. If not, then a new one will be created, bound to the thread, and a reference to it will be stored.

Parameters
callidpointer to store the callid
Return values
0- callid was found
1- callid was created
-1- the function failed somehow (presumably memory problems)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2020 of file logger.c.

References ast_callid_threadassoc_add(), ast_create_callid(), ast_read_threadstorage_callid(), and tmp().

Referenced by __analog_handle_event(), analog_handle_init_event(), dahdi_handle_event(), dahdi_request(), do_monitor(), handle_clear_alarms(), handle_init_event(), mwi_thread(), my_new_analog_ast_channel(), and my_on_hook().

2021 {
2022  ast_callid tmp;
2023 
2024  /* Start by trying to see if a callid is available from thread storage */
2026  if (tmp) {
2027  *callid = tmp;
2028  return 0;
2029  }
2030 
2031  /* If that failed, try to create a new one and bind it. */
2032  *callid = ast_create_callid();
2033  if (*callid) {
2034  ast_callid_threadassoc_add(*callid);
2035  return 1;
2036  }
2037 
2038  /* If neither worked, then something must have gone wrong. */
2039  return -1;
2040 }
static int tmp()
Definition: bt_open.c:389
unsigned int ast_callid
Definition: logger.h:87
ast_callid ast_read_threadstorage_callid(void)
extracts the callerid from the thread
Definition: logger.c:1962
int ast_callid_threadassoc_add(ast_callid callid)
Adds a known callid to thread storage of the calling thread.
Definition: logger.c:1984
ast_callid ast_create_callid(void)
factory function to create a new uniquely identifying callid.
Definition: logger.c:1957

◆ ast_callid_threadstorage_auto_clean()

void ast_callid_threadstorage_auto_clean ( ast_callid  callid,
int  callid_created 
)

Use in conjunction with ast_callid_threadstorage_auto. Cleans up the references and if the callid was created by threadstorage_auto, unbinds the callid from the threadstorage.

Parameters
callidThe callid set by ast_callid_threadstorage_auto
callid_createdThe integer returned through ast_callid_threadstorage_auto
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2042 of file logger.c.

References ast_callid_threadassoc_remove().

Referenced by __analog_handle_event(), analog_handle_init_event(), dahdi_handle_event(), dahdi_new_callid_clean(), dahdi_request(), do_monitor(), handle_clear_alarms(), handle_init_event(), and mwi_thread().

2043 {
2044  if (callid && callid_created) {
2045  /* If the callid was created rather than simply grabbed from the thread storage, we need to unbind here. */
2047  }
2048 }
int ast_callid_threadassoc_remove(void)
Removes callid from thread storage of the calling thread.
Definition: logger.c:2003

◆ ast_child_verbose()

void ast_child_verbose ( int  level,
const char *  fmt,
  ... 
)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 850 of file logger.c.

References ast_free, ast_malloc, and NULL.

Referenced by launch_script().

851 {
852  char *msg = NULL, *emsg = NULL, *sptr, *eptr;
853  va_list ap, aq;
854  int size;
855 
856  va_start(ap, fmt);
857  va_copy(aq, ap);
858  if ((size = vsnprintf(msg, 0, fmt, ap)) < 0) {
859  va_end(ap);
860  va_end(aq);
861  return;
862  }
863  va_end(ap);
864 
865  if (!(msg = ast_malloc(size + 1))) {
866  va_end(aq);
867  return;
868  }
869 
870  vsnprintf(msg, size + 1, fmt, aq);
871  va_end(aq);
872 
873  if (!(emsg = ast_malloc(size * 2 + 1))) {
874  ast_free(msg);
875  return;
876  }
877 
878  for (sptr = msg, eptr = emsg; ; sptr++) {
879  if (*sptr == '"') {
880  *eptr++ = '\\';
881  }
882  *eptr++ = *sptr;
883  if (*sptr == '\0') {
884  break;
885  }
886  }
887  ast_free(msg);
888 
889  fprintf(stdout, "verbose \"%s\" %d\n", emsg, level);
890  fflush(stdout);
891  ast_free(emsg);
892 }
#define NULL
Definition: resample.c:96
#define ast_malloc(len)
A wrapper for malloc()
Definition: astmm.h:193
#define ast_free(a)
Definition: astmm.h:182

◆ ast_console_puts()

void ast_console_puts ( const char *  string)

write the string to the root console, and all attached network console clients

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1314 of file asterisk.c.

1315 {
1316  /* Send to the root console */
1317  fputs(string, stdout);
1318  fflush(stdout);
1319 
1320  /* Send to any network console clients */
1321  ast_network_puts(string);
1322 }
static void ast_network_puts(const char *string)
write the string to all attached console clients
Definition: asterisk.c:1298

◆ ast_console_puts_mutable()

void ast_console_puts_mutable ( const char *  string,
int  level 
)

log the string to the console, and all attached console clients

Parameters
stringThe message to write to the console
levelThe log level of the message
Version
1.6.1 added level parameter

log the string to the console, and all attached console clients

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1274 of file asterisk.c.

References ast_console_puts_mutable_full(), and console_print().

Referenced by init_logger_chain(), and make_logchannel().

1275 {
1276  ast_console_puts_mutable_full(string, level, 0);
1277 }
void ast_console_puts_mutable_full(const char *message, int level, int sublevel)
log the string to the console, and all attached console clients
Definition: asterisk.c:1281

◆ ast_console_puts_mutable_full()

void ast_console_puts_mutable_full ( const char *  message,
int  level,
int  sublevel 
)

log the string to the console, and all attached console clients

Since
14.0.0
Parameters
messageThe message to write to the console
sublevelIf the log level supports it, the sub-level of the message
levelThe log level of the message
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1281 of file asterisk.c.

References ast_network_puts_mutable(), ast_opt_console, AST_PTHREADT_NULL, console_print(), and consolethread.

Referenced by ast_console_puts_mutable(), and logger_print_normal().

1282 {
1283  /* Send to the root console */
1285 
1286  /* Wake up a poll()ing console */
1288  pthread_kill(consolethread, SIGURG);
1289  }
1290 
1291  /* Send to any network console clients */
1292  ast_network_puts_mutable(message, level, sublevel);
1293 }
static int console_print(const char *s)
Definition: asterisk.c:2162
#define ast_opt_console
Definition: options.h:109
#define AST_PTHREADT_NULL
Definition: lock.h:66
static pthread_t consolethread
Definition: asterisk.c:384
static void ast_network_puts_mutable(const char *string, int level, int sublevel)
log the string to all attached network console clients
Definition: asterisk.c:1255

◆ ast_console_toggle_loglevel()

void ast_console_toggle_loglevel ( int  fd,
int  level,
int  state 
)

enables or disables logging of a specified level to the console fd specifies the index of the console receiving the level change level specifies the index of the logging level being toggled state indicates whether logging will be on or off (0 for off, 1 for on)

enables or disables logging of a specified level to the console fd specifies the index of the console receiving the level change level specifies the index of the logging level being toggled state indicates whether logging will be on or off (0 for off, 1 for on)

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1209 of file asterisk.c.

References AST_MAX_CONNECTS, consoles, console::levels, and NUMLOGLEVELS.

Referenced by handle_logger_set_level().

1210 {
1211  int x;
1212 
1213  if (level >= NUMLOGLEVELS) {
1214  level = NUMLOGLEVELS - 1;
1215  }
1216 
1217  for (x = 0;x < AST_MAX_CONNECTS; x++) {
1218  if (fd == consoles[x].fd) {
1219  /*
1220  * Since the logging occurs when levels are false, set to
1221  * flipped iinput because this function accepts 0 as off and 1 as on
1222  */
1223  consoles[x].levels[level] = state ? 0 : 1;
1224  return;
1225  }
1226  }
1227 }
#define AST_MAX_CONNECTS
Definition: asterisk.c:296
#define NUMLOGLEVELS
Definition: logger.h:314
struct console consoles[AST_MAX_CONNECTS]
Definition: asterisk.c:343
int levels[NUMLOGLEVELS]
Definition: asterisk.c:323

◆ ast_console_toggle_mute()

void ast_console_toggle_mute ( int  fd,
int  silent 
)

mute or unmute a console from logging

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1232 of file asterisk.c.

References ast_cli(), AST_MAX_CONNECTS, consoles, and console::mute.

Referenced by handle_logger_mute().

1233 {
1234  int x;
1235  for (x = 0;x < AST_MAX_CONNECTS; x++) {
1236  if (fd == consoles[x].fd) {
1237  if (consoles[x].mute) {
1238  consoles[x].mute = 0;
1239  if (!silent)
1240  ast_cli(fd, "Console is not muted anymore.\n");
1241  } else {
1242  consoles[x].mute = 1;
1243  if (!silent)
1244  ast_cli(fd, "Console is muted.\n");
1245  }
1246  return;
1247  }
1248  }
1249  ast_cli(fd, "Couldn't find remote console.\n");
1250 }
#define AST_MAX_CONNECTS
Definition: asterisk.c:296
void ast_cli(int fd, const char *fmt,...)
Definition: clicompat.c:6
static int mute
Definition: chan_alsa.c:144
struct console consoles[AST_MAX_CONNECTS]
Definition: asterisk.c:343
int mute
Definition: asterisk.c:320

◆ ast_create_callid()

ast_callid ast_create_callid ( void  )

factory function to create a new uniquely identifying callid.

Return values
Thecall id
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1957 of file logger.c.

References ast_atomic_fetchadd_int(), and next_unique_callid.

Referenced by __ast_pbx_run(), __find_call(), ast_callid_threadstorage_auto(), iax_pvt_callid_new(), and jingle_alloc().

1958 {
1960 }
int ast_atomic_fetchadd_int(volatile int *p, int v)
Atomically add v to *p and return the previous value of *p.
Definition: lock.h:755
static volatile int next_unique_callid
Definition: logger.c:88

◆ ast_debug_get_by_module()

unsigned int ast_debug_get_by_module ( const char *  module)

Get the debug level for a module.

Parameters
modulethe name of module
Returns
the debug level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 136 of file main/cli.c.

References AST_LIST_TRAVERSE, AST_RWLIST_RDLOCK, AST_RWLIST_UNLOCK, and module_level::level.

137 {
138  struct module_level *ml;
139  unsigned int res = 0;
140 
143  if (!strcasecmp(ml->module, module)) {
144  res = ml->level;
145  break;
146  }
147  }
149 
150  return res;
151 }
static struct module_level_list debug_modules
Definition: main/cli.c:107
unsigned int level
Definition: main/cli.c:99
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
map a debug or verbose level to a module name
Definition: main/cli.c:98
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
Definition: linkedlists.h:490
Definition: search.h:40

◆ ast_dynamic_logger_level()

int ast_dynamic_logger_level ( const char *  name)

Checks if a dynamic logger level exists.

Parameters
nameThe name of the dynamic level for which to check existence
Return values
-1if no such dynamic level exists
non-zeronegative to be used with ast_log_dynamic_level for sending messages to this level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2514 of file logger.c.

References ARRAY_LEN, AST_RWLIST_UNLOCK, and AST_RWLIST_WRLOCK.

Referenced by log_exec().

2515 {
2516  int level = -1;
2517  unsigned int x;
2518 
2520 
2521  for (x = 16; x < ARRAY_LEN(levels); x++) {
2522  if (!levels[x]) {
2523  continue;
2524  }
2525  if (!strcasecmp(levels[x], name)) {
2526  level = x;
2527  break;
2528  }
2529  }
2530 
2532 
2533  return level;
2534 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
unsigned int level
Definition: main/cli.c:99
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
static char * levels[NUMLOGLEVELS]
Logging channels used in the Asterisk logging system.
Definition: logger.c:206
static const char name[]
Definition: cdr_mysql.c:74

◆ ast_init_logger_for_socket_console()

void ast_init_logger_for_socket_console ( void  )

load logger.conf configuration for console socket connections

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 684 of file logger.c.

References ast_config_destroy(), ast_config_load2(), ast_copy_string(), ast_variable_retrieve(), CONFIG_STATUS_FILEINVALID, and dateformat.

Referenced by ast_remotecontrol().

685 {
686  struct ast_config *cfg;
687  const char *s;
688  struct ast_flags config_flags = { 0 };
689 
690  if (!(cfg = ast_config_load2("logger.conf", "logger", config_flags)) || cfg == CONFIG_STATUS_FILEINVALID) {
691  return;
692  }
693 
694  if ((s = ast_variable_retrieve(cfg, "general", "dateformat"))) {
696  }
697 
698  ast_config_destroy(cfg);
699 }
#define CONFIG_STATUS_FILEINVALID
struct ast_config * ast_config_load2(const char *filename, const char *who_asked, struct ast_flags flags)
Load a config file.
Definition: main/config.c:3154
void ast_config_destroy(struct ast_config *config)
Destroys a config.
Definition: extconf.c:1290
Structure used to handle boolean flags.
Definition: utils.h:199
const char * ast_variable_retrieve(struct ast_config *config, const char *category, const char *variable)
Definition: main/config.c:694
static char dateformat[256]
Definition: logger.c:79
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
Definition: strings.h:401

◆ ast_is_logger_initialized()

int ast_is_logger_initialized ( void  )

Test if logger is initialized.

Return values
trueif the logger is initialized
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1841 of file logger.c.

References logger_initialized.

Referenced by check_init().

1842 {
1843  return logger_initialized;
1844 }
static int logger_initialized
Definition: logger.c:87

◆ ast_log()

static void ast_log ( int  level,
const char *  file,
int  line,
const char *  function,
const char *  fmt,
  ... 
)

Used for sending a log message This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(AST_LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?\n", "flux capacitor", 10); where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. These are implemented as macros, that will provide the function with the needed arguments.

Parameters
levelType of log event
fileWill be provided by the AST_LOG_* macro
lineWill be provided by the AST_LOG_* macro
functionWill be provided by the AST_LOG_* macro
fmtThis is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-)

Definition at line 130 of file ael_main.c.

References ast_log_ap(), check_eval(), check_expr(), context, exten, find_var(), parse_file(), pbx_find_extension(), set_var(), varz::varname, and varz::varval.

Referenced by ast_add_profile(), ast_callid_threadassoc_add(), ast_log_backtrace(), init_logger(), logger_queue_init(), logger_queue_restart(), logger_register_level(), main(), and rotate_file().

131 {
132  va_list vars;
133  va_start(vars,fmt);
134 
135  printf("LOG: lev:%d file:%s line:%d func: %s ",
136  level, file, line, function);
137  vprintf(fmt, vars);
138  fflush(stdout);
139  va_end(vars);
140 }

◆ ast_log_ap()

void ast_log_ap ( int  level,
const char *  file,
int  line,
const char *  function,
const char *  fmt,
va_list  ap 
)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2110 of file logger.c.

References __ast_verbose_ap(), __LOG_VERBOSE, ast_log_full(), ast_read_threadstorage_callid(), and logmsg::callid.

Referenced by ast_log(), and module_load_error().

2111 {
2112  ast_callid callid;
2113 
2114  callid = ast_read_threadstorage_callid();
2115 
2116  if (level == __LOG_VERBOSE) {
2117  __ast_verbose_ap(file, line, function, 0, callid, fmt, ap);
2118  } else {
2119  ast_log_full(level, -1, file, line, function, callid, fmt, ap);
2120  }
2121 }
unsigned int ast_callid
Definition: logger.h:87
void __ast_verbose_ap(const char *file, int line, const char *func, int level, ast_callid callid, const char *fmt, va_list ap)
Definition: logger.c:2193
ast_callid ast_read_threadstorage_callid(void)
extracts the callerid from the thread
Definition: logger.c:1962
#define __LOG_VERBOSE
Definition: logger.h:295
static void ast_log_full(int level, int sublevel, const char *file, int line, const char *function, ast_callid callid, const char *fmt, va_list ap)
send log messages to syslog and/or the console
Definition: logger.c:2053

◆ ast_log_backtrace()

void ast_log_backtrace ( void  )

Log a backtrace of the current thread's execution stack to the Asterisk log.

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2158 of file logger.c.

Referenced by __ast_assert_failed(), ast_json_vpack(), ast_sched_del(), and AST_TEST_DEFINE().

2159 {
2160 #ifdef HAVE_BKTR
2161  struct ast_bt *bt;
2162  int i = 0;
2163  struct ast_vector_string *strings;
2164 
2165  if (!(bt = ast_bt_create())) {
2166  ast_log(LOG_WARNING, "Unable to allocate space for backtrace structure\n");
2167  return;
2168  }
2169 
2170  if ((strings = ast_bt_get_symbols(bt->addresses, bt->num_frames))) {
2171  int count = AST_VECTOR_SIZE(strings);
2172  struct ast_str *buf = ast_str_create(bt->num_frames * 64);
2173 
2174  if (buf) {
2175  ast_str_append(&buf, 0, "Got %d backtrace record%c\n", count - 3, count - 3 != 1 ? 's' : ' ');
2176  for (i = 3; i < AST_VECTOR_SIZE(strings); i++) {
2177  ast_str_append(&buf, 0, "#%2d: %s\n", i - 3, AST_VECTOR_GET(strings, i));
2178  }
2179  ast_log_safe(__LOG_ERROR, NULL, 0, NULL, "%s\n", ast_str_buffer(buf));
2180  ast_free(buf);
2181  }
2182 
2183  ast_bt_free_symbols(strings);
2184  } else {
2185  ast_log(LOG_ERROR, "Could not allocate memory for backtrace\n");
2186  }
2187  ast_bt_destroy(bt);
2188 #else
2189  ast_log(LOG_WARNING, "Must run configure with '--with-execinfo' for stack backtraces.\n");
2190 #endif /* defined(HAVE_BKTR) */
2191 }
#define ast_bt_free_symbols(string_vector)
Definition: backtrace.h:42
char buf[BUFSIZE]
Definition: eagi_proxy.c:66
#define LOG_WARNING
Definition: logger.h:274
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Definition: strings.h:714
#define ast_bt_get_symbols(addresses, num_frames)
Definition: backtrace.h:41
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
Definition: strings.h:1091
#define ast_bt_destroy(bt)
Definition: backtrace.h:40
#define __LOG_ERROR
Definition: logger.h:284
#define NULL
Definition: resample.c:96
void ast_log_safe(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message with protection against recursion.
Definition: logger.c:2123
#define LOG_ERROR
Definition: logger.h:285
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Definition: strings.h:584
#define ast_bt_create()
Definition: backtrace.h:39
#define ast_free(a)
Definition: astmm.h:182
void * addresses[AST_MAX_BT_FRAMES]
Definition: backtrace.h:52
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
Definition: logger.c:2101
#define AST_VECTOR_GET(vec, idx)
Get an element from a vector.
Definition: vector.h:682
int num_frames
Definition: backtrace.h:54
#define AST_VECTOR_SIZE(vec)
Get the number of elements in a vector.
Definition: vector.h:611
#define ast_str_create(init_len)
Create a malloc&#39;ed dynamic length string.
Definition: strings.h:620

◆ ast_log_callid()

void ast_log_callid ( int  level,
const char *  file,
int  line,
const char *  function,
ast_callid  callid,
const char *  fmt,
  ... 
)

Used for sending a log message with a known call_id This is a modified logger function which is functionally identical to the above logger function, it just include a call_id argument as well. If NULL is specified here, no attempt will be made to join the log message with a call_id.

Parameters
levelType of log event
fileWill be provided by the AST_LOG_* macro
lineWill be provided by the AST_LOG_* macro
functionWill be provided by the AST_LOG_* macro
callidThis is the ast_callid that is associated with the log message. May be NULL.
fmtThis is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2149 of file logger.c.

References ast_log_full().

Referenced by ast_channel_destructor(), and dahdi_cc_callback().

2150 {
2151  va_list ap;
2152  va_start(ap, fmt);
2153  ast_log_full(level, -1, file, line, function, callid, fmt, ap);
2154  va_end(ap);
2155 }
static void ast_log_full(int level, int sublevel, const char *file, int line, const char *function, ast_callid callid, const char *fmt, va_list ap)
send log messages to syslog and/or the console
Definition: logger.c:2053

◆ ast_log_safe()

void ast_log_safe ( int  level,
const char *  file,
int  line,
const char *  function,
const char *  fmt,
  ... 
)

Used for sending a log message with protection against recursion.

Note
This function should be used by all error messages that might be directly or indirectly caused by logging.
See also
ast_log for documentation on the parameters.
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2123 of file logger.c.

References ast_log_full(), ast_read_threadstorage_callid(), ast_threadstorage_get_ptr(), ast_threadstorage_set_ptr(), logmsg::callid, and NULL.

Referenced by __ast_str_helper(), and ast_log_backtrace().

2124 {
2125  va_list ap;
2126  void *recursed = ast_threadstorage_get_ptr(&in_safe_log);
2127  ast_callid callid;
2128 
2129  if (recursed) {
2130  return;
2131  }
2132 
2133  if (ast_threadstorage_set_ptr(&in_safe_log, (void*)1)) {
2134  /* We've failed to set the flag that protects against
2135  * recursion, so bail. */
2136  return;
2137  }
2138 
2139  callid = ast_read_threadstorage_callid();
2140 
2141  va_start(ap, fmt);
2142  ast_log_full(level, -1, file, line, function, callid, fmt, ap);
2143  va_end(ap);
2144 
2145  /* Clear flag so the next allocation failure can be logged. */
2146  ast_threadstorage_set_ptr(&in_safe_log, NULL);
2147 }
unsigned int ast_callid
Definition: logger.h:87
#define NULL
Definition: resample.c:96
int ast_threadstorage_set_ptr(struct ast_threadstorage *ts, void *ptr)
Set a raw pointer from threadstorage.
ast_callid ast_read_threadstorage_callid(void)
extracts the callerid from the thread
Definition: logger.c:1962
void * ast_threadstorage_get_ptr(struct ast_threadstorage *ts)
Retrieve a raw pointer from threadstorage.
static void ast_log_full(int level, int sublevel, const char *file, int line, const char *function, ast_callid callid, const char *fmt, va_list ap)
send log messages to syslog and/or the console
Definition: logger.c:2053

◆ ast_logger_create_channel()

int ast_logger_create_channel ( const char *  log_channel,
const char *  components 
)

Create a log channel.

Parameters
log_channelLog channel to create
componentsLogging config levels to add to the log channel
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1419 of file logger.c.

References AST_LOGGER_ALLOC_ERROR, AST_LOGGER_DECLINE, AST_LOGGER_FAILURE, AST_LOGGER_SUCCESS, AST_RWLIST_INSERT_HEAD, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_strlen_zero, find_logchannel(), global_logmask, logchannel::list, logchannel::logmask, and make_logchannel().

Referenced by ast_ari_asterisk_add_log(), handle_cli_queue_test(), and handle_logger_add_channel().

1420 {
1421  struct logchannel *chan;
1422 
1423  if (ast_strlen_zero(components)) {
1424  return AST_LOGGER_DECLINE;
1425  }
1426 
1428 
1429  chan = find_logchannel(log_channel);
1430  if (chan) {
1432  return AST_LOGGER_FAILURE;
1433  }
1434 
1435  chan = make_logchannel(log_channel, components, 0, 1);
1436  if (!chan) {
1438  return AST_LOGGER_ALLOC_ERROR;
1439  }
1440 
1442  global_logmask |= chan->logmask;
1443 
1445 
1446  return AST_LOGGER_SUCCESS;
1447 }
static unsigned int global_logmask
Definition: logger.c:85
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
char components[0]
Definition: logger.c:155
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
#define ast_strlen_zero(foo)
Definition: strings.h:52
#define AST_RWLIST_INSERT_HEAD
Definition: linkedlists.h:717
struct logchannel::@404 list
unsigned int logmask
Definition: logger.c:135
static struct logchannel * make_logchannel(const char *channel, const char *components, int lineno, int dynamic)
Definition: logger.c:617
static struct logchannel * find_logchannel(const char *channel)
Find a particular logger channel by name.
Definition: logger.c:601

◆ ast_logger_get_channels()

int ast_logger_get_channels ( int(*)(const char *channel, const char *type, const char *status, const char *configuration, void *data)  logentry,
void *  data 
)

Retrieve the existing log channels.

Parameters
logentryA callback to an updater function
dataData passed into the callback for manipulation

For each of the logging channels, logentry will be executed with the channel file name, log type, status of the log, and configuration levels.

Return values
0on success
1on failure
-2on allocation error
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1336 of file logger.c.

References ARRAY_LEN, ast_free, AST_LOGGER_ALLOC_ERROR, AST_LOGGER_FAILURE, AST_LOGGER_SUCCESS, AST_RWLIST_RDLOCK, AST_RWLIST_TRAVERSE, AST_RWLIST_UNLOCK, ast_str_append(), ast_str_buffer(), ast_str_create, ast_str_reset(), logchannel::disabled, logchannel::filename, logchannel::logmask, LOGTYPE_CONSOLE, LOGTYPE_SYSLOG, NULL, and logchannel::type.

Referenced by ast_ari_asterisk_list_log_channels().

1338 {
1339  struct logchannel *chan;
1340  struct ast_str *configs = ast_str_create(64);
1341  int res = AST_LOGGER_SUCCESS;
1342 
1343  if (!configs) {
1344  return AST_LOGGER_ALLOC_ERROR;
1345  }
1346 
1348  AST_RWLIST_TRAVERSE(&logchannels, chan, list) {
1349  unsigned int level;
1350 
1351  ast_str_reset(configs);
1352 
1353  for (level = 0; level < ARRAY_LEN(levels); level++) {
1354  if ((chan->logmask & (1 << level)) && levels[level]) {
1355  ast_str_append(&configs, 0, "%s ", levels[level]);
1356  }
1357  }
1358 
1359  res = logentry(chan->filename, chan->type == LOGTYPE_CONSOLE ? "Console" :
1360  (chan->type == LOGTYPE_SYSLOG ? "Syslog" : "File"), chan->disabled ?
1361  "Disabled" : "Enabled", ast_str_buffer(configs), data);
1362 
1363  if (res) {
1365  ast_free(configs);
1366  configs = NULL;
1367  return AST_LOGGER_FAILURE;
1368  }
1369  }
1371 
1372  ast_free(configs);
1373  configs = NULL;
1374 
1375  return AST_LOGGER_SUCCESS;
1376 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Definition: strings.h:714
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
static char * levels[NUMLOGLEVELS]
Logging channels used in the Asterisk logging system.
Definition: logger.c:206
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
Definition: strings.h:1091
#define NULL
Definition: resample.c:96
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
unsigned int logmask
Definition: logger.c:135
#define AST_RWLIST_TRAVERSE
Definition: linkedlists.h:493
int disabled
Definition: logger.c:137
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Definition: strings.h:584
enum logtypes type
Definition: logger.c:143
#define ast_free(a)
Definition: astmm.h:182
char filename[PATH_MAX]
Definition: logger.c:147
void ast_str_reset(struct ast_str *buf)
Reset the content of a dynamic string. Useful before a series of ast_str_append.
Definition: strings.h:653
#define ast_str_create(init_len)
Create a malloc&#39;ed dynamic length string.
Definition: strings.h:620

◆ ast_logger_get_dateformat()

const char* ast_logger_get_dateformat ( void  )

Get the logger configured date format.

Return values
Thedate format string
Since
13.0.0
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2577 of file logger.c.

References dateformat.

Referenced by set_header().

2578 {
2579  return dateformat;
2580 }
static char dateformat[256]
Definition: logger.c:79

◆ ast_logger_get_queue_limit()

int ast_logger_get_queue_limit ( void  )

Get the maximum number of messages allowed in the processing queue.

Returns
Queue limit
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2587 of file logger.c.

References logger_queue_limit.

Referenced by handle_cli_queue_test().

2588 {
2589  return logger_queue_limit;
2590 }
static int logger_queue_limit
Definition: logger.c:94

◆ ast_logger_register_level()

int ast_logger_register_level ( const char *  name)

Register a new logger level.

Parameters
nameThe name of the level to be registered
Return values
-1if an error occurs
non-zerolevel to be used with ast_log for sending messages to this level
Since
1.8
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2503 of file logger.c.

References AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, available(), and logger_register_level().

Referenced by handle_cli_dynamic_level_test(), handle_cli_performance_test(), handle_cli_queue_test(), and load_module().

2504 {
2505  unsigned int available = 0;
2506 
2508  available = logger_register_level(name);
2510 
2511  return available;
2512 }
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
static int logger_register_level(const char *name)
Definition: logger.c:2464
static const char name[]
Definition: cdr_mysql.c:74
static int available(struct dahdi_pvt **pvt, int is_specific_channel)
Definition: chan_dahdi.c:13058

◆ ast_logger_remove_channel()

int ast_logger_remove_channel ( const char *  log_channel)

Delete the specified log channel.

Parameters
log_channelThe log channel to delete
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1485 of file logger.c.

References ast_free, AST_LOGGER_FAILURE, AST_LOGGER_SUCCESS, AST_RWLIST_REMOVE, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, logchannel::dynamic, logchannel::fileptr, find_logchannel(), logchannel::list, and NULL.

Referenced by ast_ari_asterisk_delete_log(), handle_cli_queue_test(), and handle_logger_remove_channel().

1486 {
1487  struct logchannel *chan;
1488 
1490 
1491  chan = find_logchannel(log_channel);
1492  if (chan && chan->dynamic) {
1494  } else {
1496  return AST_LOGGER_FAILURE;
1497  }
1499 
1500  if (chan->fileptr) {
1501  fclose(chan->fileptr);
1502  chan->fileptr = NULL;
1503  }
1504  ast_free(chan);
1505  chan = NULL;
1506 
1507  return AST_LOGGER_SUCCESS;
1508 }
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
#define NULL
Definition: resample.c:96
struct logchannel::@404 list
int dynamic
Definition: logger.c:153
static struct logchannel * find_logchannel(const char *channel)
Find a particular logger channel by name.
Definition: logger.c:601
#define ast_free(a)
Definition: astmm.h:182
FILE * fileptr
Definition: logger.c:145
#define AST_RWLIST_REMOVE
Definition: linkedlists.h:884

◆ ast_logger_rotate()

int ast_logger_rotate ( void  )

Reload logger while rotating log files.

Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1254 of file logger.c.

References NULL, and reload_logger().

Referenced by action_loggerrotate().

1255 {
1256  return reload_logger(1, NULL);
1257 }
#define NULL
Definition: resample.c:96
static int reload_logger(int rotate, const char *altconf)
Definition: logger.c:1141

◆ ast_logger_rotate_channel()

int ast_logger_rotate_channel ( const char *  log_channel)

Rotate the specified log channel.

Parameters
log_channelThe log channel to rotate
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1259 of file logger.c.

References ast_config_AST_LOG_DIR, AST_LOGGER_FAILURE, AST_LOGGER_SUCCESS, ast_mkdir(), AST_RWLIST_TRAVERSE, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, logchannel::disabled, EVENT_FLAG_SYSTEM, logchannel::filename, logchannel::fileptr, init_logger_chain(), logchannel::list, make_filename(), manager_event, NULL, PATH_MAX, and rotate_file().

Referenced by ast_ari_asterisk_rotate_log().

1260 {
1261  struct logchannel *f;
1262  int success = AST_LOGGER_FAILURE;
1263  char filename[PATH_MAX];
1264 
1265  make_filename(log_channel, filename, sizeof(filename));
1266 
1268 
1270 
1272  if (f->disabled) {
1273  f->disabled = 0; /* Re-enable logging at reload */
1274  manager_event(EVENT_FLAG_SYSTEM, "LogChannel", "Channel: %s\r\nEnabled: Yes\r\n",
1275  f->filename);
1276  }
1277  if (f->fileptr && (f->fileptr != stdout) && (f->fileptr != stderr)) {
1278  fclose(f->fileptr); /* Close file */
1279  f->fileptr = NULL;
1280  if (strcmp(filename, f->filename) == 0) {
1281  rotate_file(f->filename);
1282  success = AST_LOGGER_SUCCESS;
1283  }
1284  }
1285  }
1286 
1288 
1290 
1291  return success;
1292 }
static int init_logger_chain(const char *altconf)
Read config, setup channels.
Definition: logger.c:710
static int rotate_file(const char *filename)
Definition: logger.c:974
static void make_filename(const char *channel, char *filename, size_t size)
create the filename that will be used for a logger channel.
Definition: logger.c:560
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
#define NULL
Definition: resample.c:96
#define EVENT_FLAG_SYSTEM
Definition: manager.h:71
struct logchannel::@404 list
#define AST_RWLIST_TRAVERSE
Definition: linkedlists.h:493
int disabled
Definition: logger.c:137
const char * ast_config_AST_LOG_DIR
Definition: options.c:159
FILE * fileptr
Definition: logger.c:145
char filename[PATH_MAX]
Definition: logger.c:147
#define PATH_MAX
Definition: asterisk.h:40
#define manager_event(category, event, contents,...)
External routines may send asterisk manager events this way.
Definition: manager.h:248
int ast_mkdir(const char *path, int mode)
Recursively create directory path.
Definition: main/utils.c:2231

◆ ast_logger_set_queue_limit()

void ast_logger_set_queue_limit ( int  queue_limit)

Set the maximum number of messages allowed in the processing queue.

Parameters
queue_limit
Returns
Nothing
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2582 of file logger.c.

References logger_queue_limit.

Referenced by handle_cli_queue_test().

2583 {
2584  logger_queue_limit = queue_limit;
2585 }
static int logger_queue_limit
Definition: logger.c:94

◆ ast_logger_unregister_level()

void ast_logger_unregister_level ( const char *  name)

Unregister a previously registered logger level.

Parameters
nameThe name of the level to be unregistered
Returns
nothing
Since
1.8
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2536 of file logger.c.

References ARRAY_LEN, ast_debug, ast_free, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, global_logmask, NULL, and update_logchannels().

Referenced by handle_cli_dynamic_level_test(), handle_cli_performance_test(), handle_cli_queue_test(), load_module(), and unload_module().

2537 {
2538  unsigned int found = 0;
2539  unsigned int x;
2540 
2542 
2543  for (x = 16; x < ARRAY_LEN(levels); x++) {
2544  if (!levels[x]) {
2545  continue;
2546  }
2547 
2548  if (strcasecmp(levels[x], name)) {
2549  continue;
2550  }
2551 
2552  found = 1;
2553  break;
2554  }
2555 
2556  if (found) {
2557  /* take this level out of the global_logmask, to ensure that no new log messages
2558  * will be queued for it
2559  */
2560 
2561  global_logmask &= ~(1 << x);
2562 
2563  ast_free(levels[x]);
2564  levels[x] = NULL;
2566 
2567  ast_debug(1, "Unregistered dynamic logger level '%s' with index %u.\n", name, x);
2568 
2572  } else {
2574  }
2575 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static unsigned int global_logmask
Definition: logger.c:85
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
static char * levels[NUMLOGLEVELS]
Logging channels used in the Asterisk logging system.
Definition: logger.c:206
#define NULL
Definition: resample.c:96
static void update_logchannels(void)
Definition: logger.c:2360
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:452
static const char name[]
Definition: cdr_mysql.c:74
#define ast_free(a)
Definition: astmm.h:182

◆ ast_queue_log()

void ast_queue_log ( const char *  queuename,
const char *  callid,
const char *  agent,
const char *  event,
const char *  fmt,
  ... 
)
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 894 of file logger.c.

Referenced by aqm_exec(), find_queue_by_name_rt(), handle_blind_transfer(), handle_hangup(), handle_queue_add_member(), handle_queue_remove_member(), log_attended_transfer(), manager_add_queue_member(), manager_queue_log_custom(), manager_remove_queue_member(), ql_exec(), queue_agent_cb(), queue_exec(), qupd_exec(), rna(), rqm_exec(), rt_handle_member_record(), set_member_paused(), set_member_penalty_help_members(), set_queue_member_pause(), set_queue_member_ringinuse(), try_calling(), update_realtime_members(), wait_for_answer(), and wait_our_turn().

895 {
896  va_list ap;
897  struct timeval tv;
898  struct ast_tm tm;
899  char qlog_msg[8192];
900  int qlog_len;
901  char time_str[30];
902 
903  if (!logger_initialized) {
904  /* You are too early. We are not open yet! */
905  return;
906  }
907  if (!queuelog_init) {
908  /* We must initialize now since someone is trying to log something. */
910  }
911 
912  if (ast_check_realtime("queue_log")) {
913  tv = ast_tvnow();
914  ast_localtime(&tv, &tm, logfiles.queue_log_realtime_use_gmt ? "GMT" : NULL);
915  ast_strftime(time_str, sizeof(time_str), "%F %T.%6q", &tm);
916  va_start(ap, fmt);
917  vsnprintf(qlog_msg, sizeof(qlog_msg), fmt, ap);
918  va_end(ap);
919  if (logfiles.queue_adaptive_realtime) {
921  AST_APP_ARG(data)[5];
922  );
923  AST_NONSTANDARD_APP_ARGS(args, qlog_msg, '|');
924  /* Ensure fields are large enough to receive data */
925  ast_realtime_require_field("queue_log",
926  "data1", RQ_CHAR, strlen(S_OR(args.data[0], "")),
927  "data2", RQ_CHAR, strlen(S_OR(args.data[1], "")),
928  "data3", RQ_CHAR, strlen(S_OR(args.data[2], "")),
929  "data4", RQ_CHAR, strlen(S_OR(args.data[3], "")),
930  "data5", RQ_CHAR, strlen(S_OR(args.data[4], "")),
931  SENTINEL);
932 
933  /* Store the log */
934  ast_store_realtime("queue_log", "time", time_str,
935  "callid", callid,
936  "queuename", queuename,
937  "agent", agent,
938  "event", event,
939  "data1", S_OR(args.data[0], ""),
940  "data2", S_OR(args.data[1], ""),
941  "data3", S_OR(args.data[2], ""),
942  "data4", S_OR(args.data[3], ""),
943  "data5", S_OR(args.data[4], ""),
944  SENTINEL);
945  } else {
946  ast_store_realtime("queue_log", "time", time_str,
947  "callid", callid,
948  "queuename", queuename,
949  "agent", agent,
950  "event", event,
951  "data", qlog_msg,
952  SENTINEL);
953  }
954 
955  if (!logfiles.queue_log_to_file) {
956  return;
957  }
958  }
959 
960  if (qlog) {
961  va_start(ap, fmt);
962  qlog_len = snprintf(qlog_msg, sizeof(qlog_msg), "%ld|%s|%s|%s|%s|", (long)time(NULL), callid, queuename, agent, event);
963  vsnprintf(qlog_msg + qlog_len, sizeof(qlog_msg) - qlog_len, fmt, ap);
964  va_end(ap);
966  if (qlog) {
967  fprintf(qlog, "%s\n", qlog_msg);
968  fflush(qlog);
969  }
971  }
972 }
static int queuelog_init
Definition: logger.c:86
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
struct ast_tm * ast_localtime(const struct timeval *timep, struct ast_tm *p_tm, const char *zone)
Timezone-independent version of localtime_r(3).
Definition: localtime.c:1739
int ast_check_realtime(const char *family)
Check if realtime engine is configured for family.
Definition: main/config.c:3363
Definition: astman.c:222
void logger_queue_start(void)
Start the ast_queue_log() logger.
Definition: logger.c:1854
struct timeval ast_tvnow(void)
Returns current timeval. Meant to replace calls to gettimeofday().
Definition: time.h:150
const char * args
#define NULL
Definition: resample.c:96
static FILE * qlog
Definition: logger.c:193
static int logger_initialized
Definition: logger.c:87
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
#define SENTINEL
Definition: compiler.h:87
int ast_store_realtime(const char *family,...) attribute_sentinel
Create realtime configuration.
Definition: main/config.c:3570
int ast_realtime_require_field(const char *family,...) attribute_sentinel
Inform realtime what fields that may be stored.
Definition: main/config.c:3382
#define AST_NONSTANDARD_APP_ARGS(args, parse, sep)
Performs the &#39;nonstandard&#39; argument separation process for an application.
int ast_strftime(char *buf, size_t len, const char *format, const struct ast_tm *tm)
Special version of strftime(3) that handles fractions of a second. Takes the same arguments as strfti...
Definition: localtime.c:2524
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one...
Definition: strings.h:79
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application&#39;s arguments.
static struct @403 logfiles
#define AST_APP_ARG(name)
Define an application argument.

◆ ast_read_threadstorage_callid()

ast_callid ast_read_threadstorage_callid ( void  )

extracts the callerid from the thread

Return values
Non-zeroCall id related to the thread
0if no call_id is present in the thread
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 1962 of file logger.c.

References ast_threadstorage_get(), and unique_callid.

Referenced by __ast_pbx_run(), __ast_verbose(), ast_callid_threadstorage_auto(), ast_dial_run(), ast_log_ap(), ast_log_safe(), bridge_channel_internal_join(), bridge_impart_internal(), common_recall_channel_setup(), iax2_request(), jingle_alloc(), launch_monitor_thread(), local_request_with_stream_topology(), media_request_helper(), sip_request_call(), and socket_process().

1963 {
1964  ast_callid *callid;
1965 
1966  callid = ast_threadstorage_get(&unique_callid, sizeof(*callid));
1967 
1968  return callid ? *callid : 0;
1969 }
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
unsigned int ast_callid
Definition: logger.h:87
static struct ast_threadstorage unique_callid
Definition: logger.c:91

◆ ast_register_verbose()

int ast_register_verbose ( void(*)(const char *string verboser)

◆ ast_trace_get_by_module()

unsigned int ast_trace_get_by_module ( const char *  module)

Get the trace level for a module.

Parameters
modulethe name of module
Returns
the trace level
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 153 of file main/cli.c.

References AST_LIST_TRAVERSE, AST_RWLIST_RDLOCK, AST_RWLIST_UNLOCK, and module_level::level.

154 {
155  struct module_level *ml;
156  unsigned int res = 0;
157 
160  if (!strcasecmp(ml->module, module)) {
161  res = ml->level;
162  break;
163  }
164  }
166 
167  return res;
168 }
unsigned int level
Definition: main/cli.c:99
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
map a debug or verbose level to a module name
Definition: main/cli.c:98
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
static struct module_level_list trace_modules
Definition: main/cli.c:108
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
Definition: linkedlists.h:490
Definition: search.h:40

◆ ast_unregister_verbose()

int ast_unregister_verbose ( void(*)(const char *string verboser)

◆ ast_verb_console_get()

int ast_verb_console_get ( void  )

Get this thread's console verbosity level.

Return values
verbositylevel of the console.
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2323 of file logger.c.

References AST_RWLIST_RDLOCK, AST_RWLIST_UNLOCK, ast_threadstorage_get(), verb_console::level, my_verb_console, and option_verbose.

Referenced by handle_show_settings(), and handle_verbose().

2324 {
2325  struct verb_console *console;
2326  int verb_level;
2327 
2328  console = ast_threadstorage_get(&my_verb_console, sizeof(*console));
2330  if (!console) {
2331  verb_level = 0;
2332  } else if (console->level) {
2333  verb_level = *console->level;
2334  } else {
2335  verb_level = option_verbose;
2336  }
2338  return verb_level;
2339 }
static struct ast_threadstorage my_verb_console
Definition: logger.c:2294
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
int option_verbose
Definition: options.c:67
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
int * level
Definition: logger.c:2223

◆ ast_verb_console_register()

void ast_verb_console_register ( int *  level)

Register this thread's console verbosity level pointer.

Parameters
levelWhere the verbose level value is.
Returns
Nothing
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2296 of file logger.c.

References AST_RWLIST_INSERT_HEAD, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_threadstorage_get(), ast_verb_update(), verb_console::level, and my_verb_console.

Referenced by netconsole().

2297 {
2298  struct verb_console *console;
2299 
2300  console = ast_threadstorage_get(&my_verb_console, sizeof(*console));
2301  if (!console || !level) {
2302  return;
2303  }
2304  console->level = level;
2305 
2309  ast_verb_update();
2310 }
Definition: test_heap.c:38
static struct ast_threadstorage my_verb_console
Definition: logger.c:2294
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
void ast_verb_update(void)
Re-evaluate the system max verbosity level (ast_verb_sys_level).
Definition: logger.c:2232
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
#define AST_RWLIST_INSERT_HEAD
Definition: linkedlists.h:717
int * level
Definition: logger.c:2223

◆ ast_verb_console_set()

void ast_verb_console_set ( int  verb_level)

Set this thread's console verbosity level.

Parameters
verb_levelNew level to set.
Returns
Nothing
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2341 of file logger.c.

References AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_threadstorage_get(), ast_verb_update(), verb_console::level, my_verb_console, and option_verbose.

Referenced by handle_verbose().

2342 {
2343  struct verb_console *console;
2344 
2345  console = ast_threadstorage_get(&my_verb_console, sizeof(*console));
2346  if (!console) {
2347  return;
2348  }
2349 
2351  if (console->level) {
2352  *console->level = verb_level;
2353  } else {
2354  option_verbose = verb_level;
2355  }
2357  ast_verb_update();
2358 }
static struct ast_threadstorage my_verb_console
Definition: logger.c:2294
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
void ast_verb_update(void)
Re-evaluate the system max verbosity level (ast_verb_sys_level).
Definition: logger.c:2232
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
int option_verbose
Definition: options.c:67
int * level
Definition: logger.c:2223

◆ ast_verb_console_unregister()

void ast_verb_console_unregister ( void  )

Unregister this thread's console verbosity level.

Returns
Nothing
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2312 of file logger.c.

References ast_threadstorage_get(), my_verb_console, and verb_console_unregister().

Referenced by netconsole().

2313 {
2314  struct verb_console *console;
2315 
2316  console = ast_threadstorage_get(&my_verb_console, sizeof(*console));
2317  if (!console) {
2318  return;
2319  }
2320  verb_console_unregister(console);
2321 }
static struct ast_threadstorage my_verb_console
Definition: logger.c:2294
void * ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size)
Retrieve thread storage.
static void verb_console_unregister(struct verb_console *console)
Definition: logger.c:2275

◆ ast_verb_update()

void ast_verb_update ( void  )

Re-evaluate the system max verbosity level (ast_verb_sys_level).

Returns
Nothing
Examples:
/usr/src/asterisk-18.5.0/include/asterisk/logger.h.

Definition at line 2232 of file logger.c.

References AST_LIST_TRAVERSE, ast_mutex_lock, ast_mutex_unlock, AST_RWLIST_RDLOCK, AST_RWLIST_TRAVERSE, AST_RWLIST_UNLOCK, ast_verb_sys_level, verb_console::level, option_verbose, verb_update_lock, and logchannel::verbosity.

Referenced by ast_verb_console_register(), ast_verb_console_set(), init_logger(), reload_logger(), and verb_console_unregister().

2233 {
2234  struct logchannel *log;
2235  struct verb_console *console;
2236  int verb_level;
2237 
2239 
2241 
2242  /* Default to the root console verbosity. */
2243  verb_level = option_verbose;
2244 
2245  /* Determine max remote console level. */
2246  AST_LIST_TRAVERSE(&verb_consoles, console, node) {
2247  if (verb_level < *console->level) {
2248  verb_level = *console->level;
2249  }
2250  }
2252 
2253  /* Determine max logger channel level. */
2255  AST_RWLIST_TRAVERSE(&logchannels, log, list) {
2256  if (verb_level < log->verbosity) {
2257  verb_level = log->verbosity;
2258  }
2259  }
2261 
2262  ast_verb_sys_level = verb_level;
2263 
2265 }
Definition: test_heap.c:38
static ast_mutex_t verb_update_lock
Definition: logger.c:2230
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
int option_verbose
Definition: options.c:67
#define ast_mutex_lock(a)
Definition: lock.h:187
int verbosity
Definition: logger.c:141
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
#define AST_RWLIST_TRAVERSE
Definition: linkedlists.h:493
int ast_verb_sys_level
Definition: options.c:64
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
Definition: linkedlists.h:490
int * level
Definition: logger.c:2223
#define ast_mutex_unlock(a)
Definition: lock.h:188