Wed Jan 8 2020 09:50:14

Asterisk developer's documentation


logger.h File Reference

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

#include "asterisk/options.h"

Go to the source code of this file.

Data Structures

struct  ast_bt
 

Macros

#define __LOG_DEBUG   0
 
#define __LOG_DTMF   6
 
#define __LOG_ERROR   4
 
#define __LOG_NOTICE   2
 
#define __LOG_VERBOSE   5
 
#define __LOG_WARNING   3
 
#define _A_   __FILE__, __LINE__, __PRETTY_FUNCTION__
 
#define _LOGGER_BACKTRACE_H
 
#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_VERBOSE   __LOG_VERBOSE, _A_
 
#define AST_LOG_WARNING   __LOG_WARNING, _A_
 
#define AST_MAX_BT_FRAMES   32
 
#define ast_verb(level,...)
 
#define ast_verbose(...)   __ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)
 
#define ast_verbose_ap(fmt, ap)   __ast_verbose_ap(__FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ap)
 
#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_VERBOSE   __LOG_VERBOSE, _A_
 
#define LOG_WARNING   __LOG_WARNING, _A_
 
#define NUMLOGLEVELS   32
 
#define QUEUELOG   "queue_log"
 
#define VERBOSE_PREFIX_1   " "
 
#define VERBOSE_PREFIX_2   " == "
 
#define VERBOSE_PREFIX_3   " -- "
 
#define VERBOSE_PREFIX_4   " > "
 
#define VERBOSITY_ATLEAST(level)   (option_verbose >= (level) || (ast_opt_verb_module && ast_verbose_get_by_module(AST_MODULE) >= (level)))
 

Functions

void __ast_verbose (const char *file, int line, const char *func, const char *fmt,...)
 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 abscence of a comma after the VERBOSE_PREFIX_3. This is important. VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined. More...
 
void __ast_verbose_ap (const char *file, int line, const char *func, const char *fmt, va_list ap)
 
void ast_backtrace (void)
 
struct ast_btast_bt_create (void)
 
void * ast_bt_destroy (struct ast_bt *bt)
 
int ast_bt_get_addresses (struct ast_bt *bt)
 
char ** ast_bt_get_symbols (void **addresses, size_t num_frames)
 
void ast_child_verbose (int level, const char *fmt,...)
 
void ast_console_puts (const char *string)
 
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_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...
 
unsigned int ast_debug_get_by_module (const char *module)
 Get the debug level for a module. 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...
 
int ast_logger_register_level (const char *name)
 Register a new logger level. 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,...)
 
int ast_register_verbose (void(*verboser)(const char *string)) attribute_warn_unused_result
 
int ast_unregister_verbose (void(*verboser)(const char *string)) attribute_warn_unused_result
 
unsigned int ast_verbose_get_by_module (const char *module)
 Get the verbose level for a module. More...
 
int logger_reload (void)
 Reload logger without rotating log files. More...
 

Detailed Description

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

Definition in file logger.h.

Macro Definition Documentation

#define __LOG_DEBUG   0
#define __LOG_DTMF   6

Definition at line 176 of file logger.h.

Referenced by log_exec().

#define __LOG_ERROR   4
#define __LOG_NOTICE   2

Definition at line 132 of file logger.h.

Referenced by init_logger_chain(), and log_exec().

#define __LOG_VERBOSE   5

Definition at line 165 of file logger.h.

Referenced by __ast_verbose_ap(), ast_log(), log_exec(), logger_print_normal(), and network_verboser().

#define __LOG_WARNING   3

Definition at line 143 of file logger.h.

Referenced by init_logger_chain(), and log_exec().

#define _A_   __FILE__, __LINE__, __PRETTY_FUNCTION__

Definition at line 116 of file logger.h.

#define _LOGGER_BACKTRACE_H

Definition at line 259 of file logger.h.

#define ast_debug (   level,
  ... 
)
Value:
do { \
ast_log(AST_LOG_DEBUG, __VA_ARGS__); \
} while (0)
int option_debug
Definition: asterisk.c:182
#define AST_MODULE
Definition: evt.c:58
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:1207
if(yyss+yystacksize-1<=yyssp)
Definition: ast_expr2.c:1874
#define ast_opt_dbg_module
Definition: options.h:126
#define AST_LOG_DEBUG
Definition: logger.h:127
unsigned int ast_debug_get_by_module(const char *module)
Get the debug level for a module.
Definition: cli.c:123

Log a DEBUG message.

Parameters
levelThe minimum value of option_debug for this message to get logged

Definition at line 236 of file logger.h.

Referenced by __adsi_transmit_messages(), __analog_handle_event(), __analog_ss_thread(), __ast_answer(), __ast_channel_masquerade(), __ast_context_destroy(), __ast_dsp_call_progress(), __ast_pbx_run(), __ast_play_and_record(), __ast_read(), __dahdi_exception(), __expire_registry(), __find_callno(), __init_manager(), __oh323_destroy(), __oh323_rtp_create(), __oh323_update_info(), __schedule_action(), __send_lagrq(), __send_ping(), __sip_ack(), __sip_autodestruct(), __sip_destroy(), __sip_reliable_xmit(), __sip_semi_ack(), __sip_xmit(), __ssl_setup(), _ast_device_state(), _ast_odbc_request_obj2(), _macro_exec(), _sip_tcp_helper_thread(), access_counter_file(), acf_curl_helper(), acf_curlopt_helper(), acf_curlopt_write(), acf_faxopt_write(), acf_jabberreceive_read(), acf_odbc_read(), acf_rand_exec(), acf_version_exec(), action_hangup(), action_waitevent(), actual_load_config(), add_email_attachment(), add_event_to_list(), add_header_offhook(), add_realm_authentication(), add_sdp(), add_sip_domain(), adsi_begin_download(), adsi_load_session(), adsi_load_vmail(), adsi_transmit_message_full(), agent_bridgedchannel(), agent_call(), agent_cont_sleep(), agent_hangup(), agent_read(), agent_request(), agent_write(), agi_exec_full(), aji_act_hook(), aji_handle_message(), aji_handle_presence(), aji_handle_pubsub_error(), aji_recv(), aji_recv_loop(), aji_tls_handshake(), alarmreceiver_exec(), alloc_sub(), alsa_card_init(), alsa_write(), analog_answer(), analog_attempt_transfer(), 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(), answer_call(), app_exec(), append_transaction(), append_var_and_value_to_filter(), apply_directmedia_ha(), array(), ast_add_extension2_lockopt(), ast_add_hint(), ast_ais_cmd(), ast_ais_evt_membership_changed(), ast_app_exec_macro(), ast_append_ha(), ast_apply_ha(), ast_autochan_destroy(), ast_autochan_new_channel(), ast_autochan_setup(), ast_backtrace(), ast_bridge_call(), ast_bridge_destroy(), ast_bridge_features_enable(), ast_bridge_handle_trip(), ast_bridge_merge(), ast_bridge_new(), ast_calendar_clear_events(), ast_cdr_detach(), ast_cdr_submit_batch(), ast_channel_bridge(), ast_channel_inherit_variables(), ast_channel_register(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_channel_unregister(), ast_check_hangup(), ast_check_signature_bin(), ast_codec_choose(), ast_config_text_file_save(), ast_context_find_or_create(), ast_control_streamfile(), ast_db_del(), ast_dial_run(), ast_do_masquerade(), ast_do_pickup(), ast_dsp_busydetect(), ast_dsp_process(), ast_dsp_set_busy_pattern(), ast_eivr_setvariable(), ast_find_ourip(), ast_generic_bridge(), ast_get_encoded_char(), ast_get_enum(), ast_get_txt(), ast_hangup(), ast_iax2_new(), ast_indicate_data(), ast_io_add(), ast_io_dump(), ast_io_wait(), ast_ivr_menu_run_internal(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_logger_register_level(), ast_logger_unregister_level(), ast_manager_unregister(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_ouraddrfor(), ast_parse_allow_disallow(), ast_parse_arg(), ast_pickup_call(), ast_pktccops_gate_alloc(), ast_prod(), ast_read_generator_actions(), ast_rtcp_read(), ast_rtp_change_source(), ast_rtp_codecs_payload_formats(), ast_rtp_codecs_payloads_copy(), ast_rtp_codecs_payloads_set_m_type(), ast_rtp_codecs_payloads_unset(), ast_rtp_dtmf_end_with_duration(), ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_instance_new(), ast_rtp_new(), ast_rtp_prop_set(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_remote_address_set(), ast_rtp_update_source(), ast_rtp_write(), 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_it(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), 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_number_full_da(), ast_say_number_full_de(), ast_say_number_full_en(), 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_it(), ast_say_number_full_nl(), ast_say_number_full_no(), ast_say_number_full_ru(), ast_say_number_full_zh(), ast_sched_add_variable(), ast_sched_del(), ast_sched_dump(), ast_sched_runq(), ast_sched_wait(), ast_sched_when(), ast_search_dns(), ast_senddigit_begin(), ast_set_default_eid(), ast_settimeout_full(), ast_sip_ouraddrfor(), ast_sockaddr_resolve_first_af(), ast_sockaddr_split_hostport(), ast_softhangup_nolock(), ast_srtp_add_stream(), ast_srtp_change_source(), ast_srtp_unprotect(), ast_str_retrieve_variable(), ast_str_substitute_variables_full(), ast_streamfile(), ast_stun_handle_packet(), ast_stun_request(), ast_tcptls_client_create(), ast_tcptls_server_start(), ast_tcptls_server_stop(), ast_tone_detect_init(), ast_translate(), ast_udptl_bridge(), ast_udptl_read(), ast_unlock_path_lockfile(), ast_write(), ast_writestream(), ast_xmldoc_load_documentation(), async_agi_read_frame(), attempt_transfer(), audiohook_inheritance_fixup(), audiohook_read_frame_both(), auth_http_callback(), authenticate(), background_detect_exec(), bridge_array_add(), bridge_array_remove(), bridge_channel_dtmf_stream(), bridge_channel_feature(), bridge_channel_join(), bridge_channel_join_multithreaded(), bridge_channel_join_singlethreaded(), bridge_check_dissolve(), bridge_exec(), bridge_make_compatible(), bridge_p2p_rtp_write(), bridge_thread(), build_parkinglot(), build_peer(), build_reply_digest(), build_route(), build_transactions(), builtin_atxfer(), builtin_blindtransfer(), cache_get_callno_locked(), cache_lookup_internal(), cache_save_hint(), calc_metric(), calc_rxstamp(), calc_timestamp(), caldav_destructor(), caldav_load_calendar(), calendar_destructor(), calendar_event_destructor(), calendar_query_exec(), callerid_feed_jp(), callerid_get_dtmf(), calltoken_required(), can_ring_entry(), cdata(), cdr_handler(), chan_ringing(), change_callid_pvt(), change_redirecting_information(), change_t38_state(), channel_spy(), check_availability(), check_beep(), check_bridge(), check_goto_on_transfer(), check_key(), check_match(), check_password(), check_peer_ok(), check_pendings(), check_provisioning(), check_resync(), check_srcaddr(), cleaned_basedn(), cleanup_all_regs(), cleanup_connection(), cli_console_dial(), cli_odbc_read(), cli_odbc_write(), clm_track_cb(), close_mailbox(), common_exec(), compare_weight(), conf_add(), conf_del(), conf_run(), config_function_read(), config_handler(), config_ldap(), config_module(), config_pgsql(), config_text_file_load(), connection_made(), console_read(), controlplayback_exec(), cops_connect(), cops_construct_gate(), cops_gate_cmd(), cops_getmsg(), cops_sendmsg(), copy_parkinglot(), create_addr(), create_dirpath(), create_dtmf_frame(), create_dynamic_parkinglot(), create_followme_number(), create_vmaccount(), crypto_load(), custom_prepare(), dahdi_bridge(), dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_fixup(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_link(), dahdi_new(), dahdi_queryoption(), dahdi_r2_get_channel_category(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_send_keypad_facility_exec(), dahdi_sendtext(), dahdi_setoption(), dahdi_train_ec(), dahdi_translate(), dahdi_unlink(), dahdi_write(), data_provider_find(), db_get_common(), deactivate_silence_generator(), decode_frame(), decode_length(), del_exec(), deltree_exec(), destroy_bridge(), destroy_conference_bridge(), destroy_event(), destroy_pgsql(), destroy_table_cache(), determine_firstline_parts(), devstate_event(), dial_exec_full(), dial_handle_playtones(), dial_trunk(), dialog_needdestroy(), dialog_unlink_all(), disa_exec(), disable_t38(), dispatch_thread_handler(), do_cdr(), do_directory(), do_magic_pickup(), do_monitor(), do_pktccops(), do_proxy_auth(), do_register(), do_register_expire(), do_say(), do_setnat(), do_state_change(), do_waiting(), 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(), evt_event_deliver_cb(), ewscal_destructor(), ewscal_load_calendar(), exchangecal_destructor(), exchangecal_get_events_between(), exchangecal_load_calendar(), expand_gosub_args(), expire_register(), extension_state_cb(), external_rtp_create(), fax_session_new(), fax_session_reserve(), feature_interpret(), feature_interpret_helper(), festival_exec(), file_read(), file_write(), filter(), find_account(), find_best_technology(), find_call(), find_command(), find_conf(), find_conf_realtime(), find_parkinglot(), find_peer(), find_queue_by_name_rt(), find_realtime_gw(), find_subchannel_and_lock(), find_table(), find_table_cb(), find_tpeer(), find_user(), findmeexec(), func_inheritance_write(), func_mute_write(), function_db_delete(), function_db_read(), g726_open(), generator_force(), generic_fax_exec(), generic_http_callback(), get_also_info(), get_destination(), get_ewscal_ids_for(), get_input(), get_lock(), get_member_status(), get_parking_exten(), get_refer_info(), get_sip_pvt_byid_locked(), getproviderstate(), gosub_exec(), gosub_run(), gtalk_alloc(), gtalk_answer(), gtalk_hangup_farend(), gtalk_indicate(), gtalk_parser(), gtalk_rtp_read(), gtalk_update_stun(), gtalk_yuck(), handle_cli_agi_add_cmd(), handle_command_response(), handle_devstate_change(), handle_frame(), handle_getoption(), handle_gosub(), handle_incoming(), handle_input(), handle_invite_replaces(), handle_jack_audio(), handle_offhook_message(), handle_onhook_message(), handle_output(), handle_pri_destroy_span(), 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_invite(), handle_response_notify(), handle_response_refer(), handle_response_register(), handle_response_subscribe(), handle_soft_key_event_message(), handle_statechange(), handle_stimulus_message(), handle_streamfile(), handle_tcptls_connection(), handle_uri(), HandleCallOutgoing(), hangup_cause2sip(), hangup_connection(), http_post_callback(), iax2_answer(), iax2_call(), iax2_destroy(), iax2_devicestate(), iax2_do_register(), iax2_hangup(), iax2_indicate(), iax2_provision(), iax2_read(), iax2_start_transfer(), iax2_transfer(), iax2_trunk_queue(), iax2_write(), iax_park_thread(), iax_provision_version(), ical_load_calendar(), icalendar_destructor(), ices_exec(), icesencode(), iconv_read(), init_jack_data(), initialize_initreq(), initialize_mutehook(), initialize_udptl(), instance_destructor(), invent_message(), io_grow(), is_our_turn(), is_read_allowed(), is_write_allowed(), isAnsweringMachine(), jingle_alloc(), jingle_answer(), jingle_hangup_farend(), jingle_is_answered(), jingle_parser(), jingle_rtp_read(), join_conference_bridge(), join_queue(), kqueue_timer_ack(), last_message_index(), launch_asyncagi(), launch_netscript(), ldap_loadentry(), ldap_reconnect(), leave_queue(), leave_voicemail(), load_config(), load_module(), load_modules(), load_realtime_queue(), local_attended_transfer(), local_bridge_loop(), local_bridgedchannel(), local_devicestate(), local_hangup(), local_indicate(), local_write(), log_events(), log_jitterstats(), login_exec(), lua_find_extension(), make_email_file(), make_trunk(), manage_parked_call(), manager_show_dialplan_helper(), match_filter(), measurenoise(), meetme_cmd_helper(), message_template_build(), message_template_parse_filebody(), 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(), mkif(), mkintf(), moh_class_destructor(), moh_scan_files(), monmp3thread(), mp3_exec(), multiplexed_add_or_remove(), multiplexed_bridge_create(), multiplexed_bridge_destroy(), multiplexed_bridge_join(), multiplexed_bridge_leave(), multiplexed_bridge_suspend(), multiplexed_bridge_unsuspend(), multiplexed_thread_function(), mute_add_audiohook(), mute_callback(), my_dahdi_write(), my_dial_digits(), my_get_callerid(), my_handle_dtmf(), my_pri_dial_digits(), my_send_callerid(), nbs_call(), nbs_hangup(), nbs_xread(), NBScat_exec(), network_change_event_cb(), new_find_extension(), notify_metermaids(), notify_new_message(), obproxy_get(), odbc_load_module(), odbc_release_obj2(), odbc_txn_free(), oh323_answer(), oh323_call(), oh323_destroy(), oh323_destroy_alias(), oh323_destroy_peer(), oh323_destroy_user(), oh323_hangup(), oh323_indicate(), oh323_request(), oh323_rtp_read(), on_dns_update_mwi(), on_dns_update_peer(), on_dns_update_registry(), 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(), park_call_full(), park_space_reserve(), parkinglot_activate_cb(), parkinglot_addref(), parkinglot_feature_flag_cfg(), parkinglot_unref(), 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(), pbx_builtin_gotoif(), pbx_builtin_gotoiftime(), pbx_extension_helper(), pbx_substitute_variables_helper_full(), peer_set_srcaddr(), peercnt_add(), peercnt_modify(), peercnt_remove(), 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(), play_sound_file(), pop_exec(), post_raw(), precache_transactions(), pri_dchannel(), pri_destroy_dchan(), pri_find_empty_chan(), pri_find_empty_nobch(), pri_send_keypad_facility_exec(), printdigest(), proc_session_timer(), process_ast_dsp(), process_clearcache(), process_cn_rfc3389(), process_collection(), process_config(), process_crypto(), process_dtmf_cisco(), process_dtmf_rfc2833(), process_message(), process_message_callback(), process_request(), process_sdp(), process_sdp_a_audio(), process_sdp_a_image(), process_sdp_o(), progress(), PVT_TO_CHANNEL(), queue_exec(), queue_set_param(), queue_voice_frame(), radius_log(), raw_hangup(), readexten_exec(), really_quit(), realtime_destroy_handler(), realtime_handler(), realtime_ldap_base_ap(), realtime_ldap_entry_to_var(), realtime_ldap_result_to_vars(), realtime_multi_handler(), realtime_multi_pgsql(), realtime_peer(), realtime_pgsql(), realtime_store_handler(), realtime_update2_handler(), realtime_update_handler(), realtimefield_read(), rebuild_matrix(), receive_ademco_contact_id(), receive_dtmf_digits(), receivefax_exec(), receivefax_t38_init(), record_exec(), reg_source_db(), regex(), register_request(), registry_addref(), registry_unref(), release_transaction(), reload_config(), reload_followme(), reload_queue_members(), remote_bridge_loop(), remote_hold(), remove_exten_if_exist(), replace(), reqprep(), require_pgsql(), resend_response(), resolve_first(), restart_session_timer(), restore_conference(), retrans_pkt(), ring_one(), rqm_exec(), rt_extend_conf(), rtp_learning_rtp_seq_update(), run_agi(), run_externnotify(), run_ras(), safe_append(), save_conference(), save_to_folder(), sayname(), scan_service(), scan_thread(), sched_delay_remove(), schedule_calendar_event(), schedule_delivery(), sdp_crypto_activate(), sdp_crypto_offer(), sdp_crypto_process(), sdp_crypto_setup(), search_directory(), search_directory_sub(), select_entry(), semicolon_count_var(), send_callerid(), send_command(), send_digit_to_chan(), send_eivr_event(), send_ews_request_and_parse(), send_packet(), send_request(), send_response(), send_trunk(), send_waveform_to_channel(), sendfax_exec(), sendfax_t38_init(), sendmail(), sendpage(), set_actual_rxgain(), set_actual_txgain(), set_config(), set_dtmf_payload(), set_format(), set_local_capabilities(), set_member_paused(), set_peer_capabilities(), set_peercnt_limit(), set_peercnt_limit_all_cb(), setup_incoming_call(), setup_inheritable_audiohook(), setup_rtp_connection(), sig_pri_aoc_d_from_pri(), sig_pri_digit_begin(), sig_pri_handle_cis_subcmds(), sig_pri_handle_subcmds(), sig_pri_hangup(), sig_pri_indicate(), sig_pri_send_mwi_indication(), sip_addheader(), sip_alloc(), sip_alreadygone(), sip_answer(), sip_call(), sip_destroy(), sip_destroy_peer(), sip_devicestate(), sip_do_reload(), sip_dump_history(), sip_fixup(), sip_hangup(), sip_indicate(), sip_new(), sip_park_thread(), sip_pickup(), sip_prepare_socket(), sip_queryoption(), sip_registry_destroy(), sip_removeheader(), sip_request_call(), sip_rtp_read(), sip_senddigit_begin(), sip_senddigit_end(), sip_sendhtml(), sip_sendtext(), sip_set_rtp_peer(), sip_set_udptl_peer(), sip_setoption(), sip_tcptls_read(), sip_transfer(), skinny_answer(), skinny_hangup(), skinny_indicate(), skinny_rtp_read(), skinny_session(), skinny_ss(), skinny_transfer(), sla_handle_dial_state_event(), sla_queue_event_conf(), sla_station_destructor(), sla_station_exec(), sla_trunk_destructor(), smart_bridge_operation(), smdi_toggle_mwi(), socket_process(), socket_read(), spandsp_fax_read(), srtp_event_cb(), start_session_timer(), start_stream(), startelm(), stop_session_timer(), store_next_lin(), store_next_rr(), store_pgsql(), substituted(), swap_subs(), t30_phase_e_handler(), tcptls_stream_fopen(), tcptls_stream_read(), tcptls_stream_write(), tds_message_handler(), testclient_exec(), testserver_exec(), timerfd_timer_ack(), timing_read(), tone_detect(), 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_response_with_sdp(), transmit_t38(), transmit_trunk(), try_calling(), try_load_key(), udptl_build_packet(), udptl_rx_packet(), unalloc_sub(), unistim_fixup(), unistim_hangup(), unistim_rtp_read(), unload_module(), unload_pgsql(), unlock_read(), unref_ewscal(), unwrap_timestamp(), update2_ldap(), update2_pgsql(), update_call_counter(), update_conf(), update_connectedline(), update_ldap(), update_pgsql(), update_qe_rule(), update_realtime_members(), vm_authenticate(), vm_change_password(), vm_change_password_shell(), vm_delete(), vm_execmain(), vm_newuser(), vm_options(), vmsayname_exec(), wait_for_answer(), wait_for_output(), wait_for_winner(), write_metadata(), WriteMemoryCallback(), and xml_translate().

#define AST_LOG_DEBUG   __LOG_DEBUG, _A_

Definition at line 127 of file logger.h.

Referenced by actual_load_config(), and check_password().

#define AST_LOG_DTMF   __LOG_DTMF, _A_

Definition at line 182 of file logger.h.

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

Definition at line 171 of file logger.h.

#define AST_MAX_BT_FRAMES   32

Definition at line 261 of file logger.h.

Referenced by ast_bt_get_addresses().

#define ast_verb (   level,
  ... 
)

Definition at line 243 of file logger.h.

Referenced by __analog_handle_event(), __analog_ss_thread(), __ast_context_destroy(), __ast_custom_function_register(), __ast_format_register(), __ast_pbx_run(), __ast_play_and_record(), __ast_register_translator(), __ast_udptl_reload(), __dahdi_exception(), __ssl_setup(), _macro_exec(), _while_exec(), accept_thread(), acf_odbc_read(), action_login(), add_realm_authentication(), adsi_exec(), adsi_prog(), advanced_options(), agent_call(), agent_read(), agent_thread(), alarmreceiver_exec(), alloc_sub(), analog_attempt_transfer(), analog_dnd(), analog_exception(), analog_handle_init_event(), analog_hangup(), analog_ss_thread(), aoc_display_decoded_debug(), app_exec(), append_mapping(), ast_add_extension2_lockopt(), ast_agi_register(), ast_agi_unregister(), ast_aji_disconnect(), ast_app_has_voicemail(), ast_app_inboxcount(), ast_app_inboxcount2(), ast_app_messagecount(), ast_bridge_call(), ast_bridge_timelimit(), ast_calendar_register(), ast_calendar_unregister(), ast_cdr_unregister(), ast_channel_bridge(), ast_channel_register(), ast_channel_unregister(), ast_config_text_file_save(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_control_streamfile(), ast_custom_function_unregister(), ast_dnsmgr_release(), ast_eivr_senddtmf(), ast_fax_tech_register(), ast_fax_tech_unregister(), ast_format_unregister(), ast_get_srv(), 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_netsock_set_qos(), ast_odbc_find_table(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_record_review(), ast_register_application2(), ast_register_feature(), ast_register_indication_country(), ast_rtp_engine_register2(), ast_rtp_engine_unregister(), ast_rtp_glue_register2(), ast_rtp_glue_unregister(), ast_rtp_instance_bridge(), ast_set_indication_country(), ast_set_qos(), ast_speech_register(), ast_speech_unregister(), ast_streamfile(), ast_udptl_read(), ast_udptl_write(), ast_unregister_application(), ast_unregister_translator(), async_wait(), attempt_thread(), attempt_transfer(), auth_http_callback(), background_detect_exec(), begin_dial_channel(), blr_ebl(), blr_txt(), build_channels(), build_conf(), build_device(), build_gateway(), builtin_automixmonitor(), builtin_automonitor(), builtin_blindtransfer(), builtin_disconnect(), cb_extensionstate(), channel_spy(), chanspy_exec(), check_for_conference(), check_send_queue(), cli_console_mute(), close_call(), close_client(), conf_exec(), conf_run(), config_device(), config_line(), config_load(), config_module(), config_odbc_prepare(), config_text_file_load(), console_answer(), console_call(), console_digit_begin(), console_digit_end(), console_hangup(), console_indicate(), console_text(), context_merge(), context_merge_incls_swits_igps_other_registrars(), cpeid_exec(), create_client(), create_jb(), dahdi_bridge(), dahdi_dnd(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_restart(), dahdiras_exec(), database_increment(), debug_check_frame_for_silence(), del_exec(), deltree_exec(), destroy_all_channels(), dial_exec_full(), dialout(), dnsmgr_refresh(), do_forward(), do_idle_thread(), do_message(), do_monitor(), do_notify(), do_reload(), do_waiting(), eivr_comm(), exchangecal_write_event(), execute_cb(), feature_interpret_helper(), feature_request_and_dial(), find_conf_realtime(), find_line_by_name(), find_subchannel_and_lock(), find_subchannel_by_name(), find_table(), findmeexec(), flash_exec(), generic_fax_exec(), generic_http_callback(), get_folder(), get_input(), gosub_run(), handle_button_template_req_message(), handle_capabilities_res_message(), handle_cli_h323_hangup(), handle_command_response(), handle_enbloc_call_message(), handle_exec(), handle_frame(), handle_frame_ownerless(), handle_getoption(), handle_gosub(), handle_init_event(), handle_keypad_button_message(), handle_message(), handle_open_receive_channel_ack_message(), handle_register_message(), handle_request(), handle_response(), handle_response_info(), handle_response_message(), handle_skinny_reset(), handle_soft_key_event_message(), handle_stimulus_message(), handle_streamfile(), handle_tcptls_connection(), handle_verbose(), HandleCallIncoming(), HandleCallOutgoing(), iax2_ack_registry(), iax2_bridge(), iax2_exec(), iax2_hangup(), iax2_prov_app(), iax_provision_reload(), init_phone_step2(), internal_dnsmgr_lookup(), isAnsweringMachine(), key_dial_page(), launch_script(), leave_voicemail(), length_determination_odbc_prepare(), listener(), load_config(), load_module(), load_modules(), load_pbx(), log_events(), logger_print_normal(), login_exec(), lua_pbx_exec(), manage_parked_call(), meetme_menu_admin_extended(), mgcp_answer(), mgcp_hangup(), mgcp_new(), mgcp_request(), mgcp_ss(), misdn_bridge(), mixmonitor_ds_close_fs(), mixmonitor_thread(), moh_alloc(), moh_files_alloc(), moh_release(), mwi_event_cb(), my_distinctive_ring(), my_handle_dtmf(), my_send_callerid(), netconsole(), odbc_load_module(), odbc_log(), oh323_call(), park_call_full(), parkandannounce_exec(), parked_call_exec(), parse_config(), parse_register_contact(), ParseBookmark(), parsing(), pbx_builtin_goto(), pbx_builtin_pushvar_helper(), pbx_builtin_setvar_helper(), pbx_builtin_waitexten(), pbx_extension_helper(), pgsql_log(), phone_hangup(), play_message_callerid(), play_record_review(), pri_dchannel(), pri_fixup_principle(), pri_ss_thread(), privacy_exec(), process_applicationmap_line(), process_ast_dsp(), process_dahdi(), process_request(), purge_sessions(), queue_exec(), rcv_mac_addr(), rcv_resume_connection_with_server(), read_exec(), realtime_exec(), receive_ademco_contact_id(), receive_dtmf_digits(), receivefax_exec(), refresh_all_favorite(), refresh_list(), reg_source_db(), register_group(), register_group_feature(), RegisterExtension(), reload(), reload_config(), reload_firmware(), reload_logger(), ring_entry(), rna(), rtp_reload(), run_agi(), run_ras(), say_periodic_announcement(), say_position(), send_blink_cursor(), send_client(), send_cursor_pos(), send_cwcidspill(), send_date_time(), send_date_time2(), send_date_time3(), send_end_call(), send_favorite(), send_led_update(), send_no_ring(), send_ping(), send_raw_client(), send_retransmit(), send_ring(), send_select_output(), send_start_timer(), send_stop_timer(), send_text(), send_text_status(), send_texttitle(), send_tone(), send_tone_burst(), SendDialTone(), sendfax_exec(), Sendicon(), session_do(), set_config(), setformat(), setup_dahdi_int(), setup_incoming_call(), setup_privacy_args(), sig_pri_attempt_transfer(), sig_pri_call(), sig_pri_handle_cis_subcmds(), sig_pri_handle_subcmds(), skinny_answer(), skinny_call(), skinny_extensionstate_cb(), skinny_get_rtp_peer(), skinny_hangup(), skinny_hold(), skinny_indicate(), skinny_new(), skinny_register(), skinny_reload(), skinny_request(), skinny_session(), skinny_set_rtp_peer(), skinny_ss(), skinny_unhold(), smdi_load(), sms_debug(), sms_exec(), sms_handleincoming_proto2(), sms_process(), socket_process(), start_network_thread(), start_resource(), start_rtp(), store_config(), swap_subs(), timeout_write(), TransferCallStep1(), transmit_callinfo(), transmit_clear_display_message(), transmit_clearpromptmessage(), transmit_displaynotify(), transmit_displaypromptstatus(), transmit_response(), transmit_ringer_mode(), try_load_key(), unistim_answer(), unistim_call(), unistim_do_senddigit(), unistim_hangup(), unistim_indicate(), unistim_new(), unistim_reload(), unistim_request(), unistim_senddigit_end(), unistim_sendtext(), unistim_ss(), unistimsock_read(), unload_module(), UnregisterExtension(), update_registry(), vm_authenticate(), vm_change_password(), vm_execmain(), wait_for_answer(), wait_for_winner(), waitfor_exec(), waitforring_exec(), and write_metadata().

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

Definition at line 79 of file logger.h.

#define ast_verbose_ap (   fmt,
  ap 
)    __ast_verbose_ap(__FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ap)

Definition at line 83 of file logger.h.

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

Definition at line 37 of file logger.h.

#define EVENTLOG   "event_log"

Definition at line 34 of file logger.h.

#define LOG_DEBUG   __LOG_DEBUG, _A_

Definition at line 122 of file logger.h.

Referenced by _get_mohbyname(), add_exten_to_pattern_tree(), add_publish_event(), agent_call(), aji_devstate_cb(), aji_handle_pubsub_event(), aji_mwi_cb(), analog_ss_thread(), announce_thread(), ast_audiohook_write_frame(), ast_backtrace(), ast_bridge_call(), ast_bt_get_symbols(), ast_channel_audiohook_count_by_source(), ast_channel_audiohook_count_by_source_running(), ast_connected_line_parse_data(), ast_event_cb(), ast_redirecting_parse_data(), ast_rtcp_read(), ast_say_date_with_format_th(), ast_say_enumeration_full_he(), ast_say_number_full_se(), ast_say_number_full_ur(), ast_say_number_full_zh(), ast_set_owners_and_peers(), ast_unlock_path_flock(), audiohook_read_frame_both(), calc_metric(), check_header(), clear_dialed_interfaces(), create_match_char_tree(), dahdi_accept_r2_call_exec(), dahdi_answer(), dahdi_ast_cause_to_r2_cause(), dahdi_handle_event(), dahdi_hangup(), dahdi_r2_get_link(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_offered(), dahdi_r2_write_log(), dahdi_read(), dahdi_request(), dahdi_send_callrerouting_facility_exec(), device2chan(), do_monitor(), gtalk_is_accepted(), gtalk_is_answered(), gtalk_ringing_ack(), handle_request_subscribe(), http_post_callback(), ilbctolin_framein(), leave_voicemail(), manager_modulecheck(), mfcr2_monitor(), moh_class_destructor(), my_is_dialing(), my_set_waitingfordt(), odbc_obj_disconnect(), pbx_find_extension(), prep_email_sub_vars(), pri_send_callrerouting_facility_exec(), pri_ss_thread(), process_dahdi(), process_dtmf_rfc2833(), realtime_ldap_base_ap(), ring_entry(), scan_service(), scheduled_destroy(), sig_pri_call(), sig_pri_indicate(), sig_pri_request(), sig_pri_send_aoce_termination_request(), skinny_transfer(), smdi_read(), span_message(), spandsp_log(), tps_taskprocessor_destroy(), try_calling(), and unref_mansession().

#define LOG_ERROR   __LOG_ERROR, _A_

Definition at line 155 of file logger.h.

Referenced by __agent_start_monitoring(), __analog_handle_event(), __ast_custom_function_register(), __ast_data_register(), __ast_data_unregister(), __ast_read(), __oh323_rtp_create(), __sip_reliable_xmit(), _macro_exec(), _sip_tcp_helper_thread(), accept_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_iaxvar_write(), acf_jabberstatus_read(), acf_mailbox_exists(), acf_meetme_info(), acf_odbc_read(), acf_odbc_write(), acf_sort_exec(), acf_sprintf(), acf_strptime(), acf_transaction_write(), action_getvar(), actual_load_config(), add_event_to_list(), add_exten_to_pattern_tree(), add_priority(), add_rt_multi_cfg_entry(), add_subscribe_event(), add_to_agi(), ael2_parse(), ael2_print(), aes_helper(), agent_get_base_channel(), aji_act_hook(), aji_client_connect(), aji_client_info_handler(), aji_create_client(), aji_dinfo_handler(), aji_ditems_handler(), aji_find_version(), aji_handle_message(), aji_handle_presence(), aji_handle_pubsub_error(), aji_handle_pubsub_event(), aji_handle_subscribe(), aji_initialize(), aji_join_exec(), aji_leave_exec(), aji_pruneregister(), aji_recv_loop(), aji_register_approve_handler(), aji_register_query_handler(), aji_reload(), aji_send_raw_chat(), aji_sendgroup_exec(), aji_set_group_presence(), aji_set_presence(), aji_start_sasl(), aji_status_exec(), alloc_expr_node(), alloc_resampler(), alsa_card_init(), alsa_read(), alsa_write(), analog_hangup(), analog_request(), analogsub_to_dahdisub(), answer_call(), anti_injection(), aoc_parse_ie(), app_exec(), aqm_exec(), ast_add_extension2_lockopt(), ast_agi_send(), ast_ais_clm_load_module(), ast_ais_clm_unload_module(), ast_ais_evt_load_module(), ast_ais_evt_unload_module(), ast_aji_create_chat(), ast_aji_invite_chat(), ast_app_group_match_get_count(), ast_apply_ha(), ast_bt_create(), ast_careful_fwrite(), ast_carefulwrite(), ast_cdr_alloc(), ast_cdr_engine_init(), ast_cdr_serialize_variables(), ast_cdr_setvar(), ast_cel_check_retire_linkedid(), ast_cel_fill_record(), ast_cel_linkedid_ref(), ast_channel_queryoption(), ast_channel_setoption(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_config_text_file_save(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), ast_data_get(), ast_data_retrieve(), ast_device_state_engine_init(), ast_dsp_busydetect(), ast_enable_distributed_devstate(), ast_event_cb(), ast_event_check_subscriber(), ast_event_get_cached(), ast_event_get_ie_pltype(), ast_event_get_ie_type_name(), ast_event_get_type_name(), ast_event_subscribe_new(), ast_framehook_attach(), ast_func_read(), ast_func_read2(), ast_func_write(), ast_get_encoded_char(), ast_get_group(), ast_heap_create(), ast_http_send(), ast_iax2_new(), ast_jb_put(), ast_lock_path_lockfile(), ast_monitor_change_fname(), ast_netsock_bindaddr(), ast_odbc_find_table(), ast_ouraddrfor(), ast_pbx_outgoing_exten(), ast_playtones_start(), ast_readconfig(), ast_remotecontrol(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_continuation(), ast_rtp_dtmf_end_with_duration(), ast_rtp_instance_make_compatible(), ast_rtp_instance_new(), ast_rtp_new(), ast_rtp_sendcng(), ast_safe_fork(), ast_sched_runq(), ast_sched_thread_create(), ast_security_event_report(), ast_sockaddr_hash(), ast_sockaddr_parse(), ast_sockaddr_resolve(), ast_sockaddr_stringify_fmt(), ast_srtp_policy_alloc(), ast_srtp_unprotect(), ast_str_substitute_variables_full(), ast_taskprocessor_get(), ast_taskprocessor_name(), ast_taskprocessor_push(), ast_tcptls_client_create(), ast_tcptls_client_start(), ast_tcptls_close_session_file(), ast_tcptls_server_read(), ast_tcptls_server_root(), ast_tcptls_server_start(), ast_tcptls_server_write(), ast_thread_inhibit_escalations(), ast_tps_init(), ast_unlock_path_lockfile(), ast_xmldoc_load_documentation(), astobj2_init(), async_wait(), authenticate_reply(), bridge_array_add(), bridge_call_thread_launch(), build_calendar(), build_callno_limits(), build_cc_interfaces_chanvar(), build_channels(), build_device(), build_event_channel(), build_peer(), build_route(), build_user(), builtin_automixmonitor(), builtin_automonitor(), 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(), callerid_feed(), callerid_feed_jp(), callerid_read(), callerid_write(), canmatch(), cb_events(), cdata(), cdr_handler(), chan_ringing(), chanspy_exec(), check_break(), check_continue(), check_event_type(), check_goto(), check_label(), check_pval_item(), check_srcaddr(), check_user_full(), check_vars(), cli_fax_show_session(), cli_fax_show_sessions(), close_mansession_file(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_extension(), complete_dialplan_remove_include(), conf_exec(), config_curl(), config_device(), config_function_read(), config_handler(), config_ldap(), config_load(), config_module(), config_text_file_load(), connectedline_read(), connectedline_write(), connection_made(), console_request(), context_merge(), copy_rules(), count_lines(), create_dynamic_parkinglot(), create_jb(), create_match_char_tree(), create_vmaccount(), csv_log(), csv_quote(), custom_log(), dahdi_call(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_new_pri_nobch_channel(), dahdi_pri_error(), dahdi_r2_get_link(), dahdi_r2_on_call_init(), dahdi_r2_on_os_error(), dahdi_r2_on_protocol_error(), dahdi_r2_set_context(), dahdi_r2_write_log(), dahdi_sendtext(), dahdi_status_data_provider_get(), dahdi_test_timer(), dahdi_timer_set_rate(), dahdi_translate(), dahdi_version_data_provider_get(), dahdi_write_frame(), dahdiscan_exec(), data_channels_provider_handler(), data_result_generate(), data_result_generate_node(), data_search_generate(), data_structure_compatible(), delete_old_messages(), destroy_curl(), determine_starting_point(), device2chan(), device_state_cb(), devstate_cache_cb(), devstate_change_collector_cb(), devstate_write(), dial_exec_full(), dialgroup_write(), dialog_ref_debug(), directory_exec(), disable_t38(), dispatch_thread_handler(), dnsmgr_init(), do_magic_pickup(), do_message(), do_monitor(), do_notify(), do_reload(), do_say(), dundi_query_read(), dundi_result_read(), duplicate_pseudo(), eagi_exec(), eivr_comm(), enable_jack_hook(), encode_open_type(), endelm(), enum_query_read(), enum_result_read(), event_channel_destroy(), evt_event_deliver_cb(), ewscal_load_calendar(), exchangecal_get_events_between(), exchangecal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exec(), execif_exec(), exists(), extension_matches(), extenspy_exec(), external_rtp_create(), fax_rate_str_to_int(), fax_session_new(), fax_session_reserve(), festival_exec(), fetch_icalendar(), file2format(), file_read(), file_write(), filter(), find_conf(), find_matching_endwhile(), find_pval_goto_item(), find_table(), find_transaction(), find_transcoders(), findmeexec(), forward_message(), func_channel_write_real(), function_fieldnum_helper(), generic_fax_exec(), get_agi_cmd(), get_ewscal_ids_for(), get_input(), get_lock(), get_member_penalty(), get_name_and_number(), get_pattern_node(), gosub_exec(), gosub_run(), gtalk_alloc(), gtalk_create_candidates(), gtalk_create_member(), gtalk_invite(), gtalk_load_config(), gtalk_newcall(), gtalk_request(), gtalk_sendtext(), handle_call_token(), handle_cli_h323_cycle_gk(), handle_devstate_change(), handle_gosub(), handle_incoming(), handle_input(), handle_invite_replaces(), handle_jack_audio(), handle_open_receive_channel_ack_message(), handle_options(), handle_register_message(), handle_request_invite_st(), handle_tcptls_connection(), 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(), init_acf_query(), init_jack_data(), init_timing_thread(), inotify_daemon(), internal_ao2_ref(), INTERNAL_OBJ(), isexten_function_read(), jack_hook_callback(), jack_hook_write(), jb_error_output(), jb_get_and_deliver(), jingle_alloc(), jingle_create_candidates(), jingle_create_member(), jingle_digit(), jingle_newcall(), jingle_request(), jingle_sendtext(), join_conference_bridge(), kqueue_timer_open(), launch_asyncagi(), ldap_loadentry(), ldap_reconnect(), leave_voicemail(), lintoulaw(), listener(), listfilter(), load_column_config(), load_config(), load_config_meetme(), load_module(), load_odbc_config(), load_or_reload_lua_stuff(), load_pbx(), load_resource_list(), load_values_config(), local_alloc(), local_setoption(), local_write(), log_exec(), logger_queue_init(), logger_queue_restart(), lua_find_extension(), lua_get_state(), manage_parked_call(), manager_log(), matchmore(), message_template_build(), message_template_parse_filebody(), mfcr2_monitor(), mgcp_senddigit_begin(), mgcp_senddigit_end(), 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_thread(), mkintf(), monmp3thread(), mssql_connect(), multicast_rtp_write(), multiplexed_nudge(), mute_add_audiohook(), mute_fragment(), mwi_sub_event_cb(), mwi_unsub_event_cb(), my_dial_digits(), my_dsp_set_digitmode(), my_start_cid_detect(), my_wink(), netconsole(), odbc_load_module(), odbc_log(), ogg_vorbis_open(), ogg_vorbis_rewrite(), ogg_vorbis_write(), oh323_alloc(), oh323_digit_begin(), oh323_digit_end(), oh323_read(), oh323_set_rtp_peer(), op_func(), open_stream(), 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_call_full(), parkinglot_activate(), parse_config(), parse_gain_value(), parse_tag(), 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_substitute_variables_helper_full(), peek_read(), peer_iphash_cb(), peercnt_add(), pgsql_log(), pgsql_reconnect(), phone_request(), pitchshift_helper(), policy_set_suite(), prep_email_sub_vars(), prepare_pri(), pri_dchannel(), process_config(), process_dahdi(), process_message_callback(), process_sdp(), process_text_line(), process_via(), progress(), pthread_timer_set_rate(), pvalCheckType(), pvalGlobalsAddStatement(), pvalTopLevAddObject(), queue_function_exists(), queue_function_memberpenalty_read(), queue_function_memberpenalty_write(), queue_function_qac(), queue_function_qac_dep(), queue_function_queuememberlist(), queue_function_queuewaitingcount(), queue_function_var(), queue_reload_request(), queue_voice_frame(), quote(), radius_log(), rcvfax_exec(), read_agent_config(), read_config_maps(), readfile_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(), receive_digit(), receivefax_exec(), receivefax_t38_init(), redirecting_read(), redirecting_write(), regex(), register_verify(), reload(), reload_config(), reload_followme(), reload_queue_members(), reload_queue_rules(), reload_queues(), remove_by_peercallno(), remove_by_transfercallno(), replace(), replace_callno(), require_curl(), require_pgsql(), res_srtp_new(), resample_frame(), restart_monitor(), restart_pktc_thread(), retrydial_exec(), return_exec(), say_init_mode(), scan_thread(), sdl_setup(), sdp_crypto_offer(), sdp_crypto_process(), sdp_crypto_setup(), send_ews_request_and_parse(), sendfax_exec(), sendfax_t38_init(), session_do(), set_active(), set_config(), set_fax_t38_caps(), set_member_penalty(), setup_dahdi_int(), setup_filestack(), setup_incoming_call(), setup_rtp_connection(), setup_srtp(), sha1(), shared_read(), shared_write(), sig_pri_call(), sig_pri_get_orig_dialstring(), sig_pri_handle_subcmds(), sig_pri_make_cc_dialstring(), sig_pri_start_pri(), signal_pipe(), sip_acf_channel_read(), sip_check_authtimeout(), sip_indicate(), sip_queryoption(), sip_register(), sip_reload(), sip_request_call(), sip_setoption(), sip_sipredirect(), sip_st_alloc(), sip_tcptls_write(), sip_threadinfo_create(), skinny_call(), skinny_req_parse(), 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(), softmix_bridge_thread(), soundcard_init(), span_message(), spandsp_fax_new(), spandsp_fax_read(), spandsp_fax_start(), spandsp_log(), speex_read(), speex_write(), sqlite_log(), srv_result_read(), ssl_lock(), stackpeek_read(), start_monitor_exec(), start_network_thread(), start_poll_thread(), start_session_timer(), start_stream(), startelm(), store_by_peercallno(), store_by_transfercallno(), store_curl(), stun_monitor_request(), stun_start_monitor(), subscribe_event_destroy(), sysinfo_helper(), tcptls_stream_close(), tdd_feed(), tds_error_handler(), tds_load_module(), tds_log(), thread_inhibits_escalations(), timeout_read(), timeout_write(), timerfd_timer_ack(), timerfd_timer_close(), timerfd_timer_disable_continuous(), timerfd_timer_enable_continuous(), timerfd_timer_get_event(), timerfd_timer_open(), timerfd_timer_set_rate(), timing_read(), tps_processing_function(), tps_taskprocessor_destroy(), tps_taskprocessor_pop(), transmit(), transmit_audio(), transmit_response_using_temp(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), transmit_t38(), try_calling(), unistim_call(), unistim_set_rtp_peer(), unload_module(), unsignal_pipe(), update2_curl(), update2_ldap(), update2_pgsql(), update2_prepare(), update_call_counter(), update_curl(), update_ldap(), update_pgsql(), volume_write(), wait_for_output(), while(), write_password_to_file(), writefile(), xmldoc_build_field(), xmldoc_string_cleanup(), and yyerror().

#define LOG_NOTICE   __LOG_NOTICE, _A_

Definition at line 133 of file logger.h.

Referenced by __analog_handle_event(), __ast_read(), __ast_request_and_dial(), __ast_udptl_reload(), __auto_congest(), __iax2_poke_noanswer(), __init_manager(), _extension_match_core(), accept_thread(), acf_jabberreceive_read(), acf_jabberstatus_read(), acf_meetme_info(), action_hangup(), add_in_calls(), add_out_calls(), admin_exec(), adsi_prog(), agent_read(), aji_client_info_handler(), aji_dinfo_handler(), aji_handle_presence(), aji_status_exec(), alsa_request(), alsa_write(), analog_handle_init_event(), analog_ss_thread(), answer_call(), app_exec(), apply_outgoing(), aqm_exec(), ast_alaw_init(), ast_app_dtget(), ast_app_group_match_get_count(), ast_append_ha(), ast_call_forward(), ast_channel_log(), ast_cli_perms_init(), ast_config_engine_register(), ast_context_remove_extension_callerid2(), ast_decrypt_bin(), ast_dsp_busydetect(), ast_encrypt_bin(), ast_io_remove(), ast_module_reload(), ast_pickup_call(), ast_process_pending_reloads(), ast_queue_cc_frame(), ast_register_feature(), ast_rtp_read(), ast_sip_ouraddrfor(), ast_udptl_write(), ast_ulaw_init(), attempt_thread(), attempt_transfer(), auth_http_callback(), authenticate(), authenticate_reply(), authenticate_verify(), build_peer(), callerid_feed(), callerid_feed_jp(), can_ring_entry(), cb_events(), cc_esc_publish_handler(), cdr_merge_vars(), channel_admin_exec(), chanspy_exec(), check_auth(), check_key(), check_post(), check_rtp_timeout(), check_user_full(), cleanup_connection(), compose_func_args(), config_device(), config_line(), config_load(), config_module(), config_odbc(), console_request(), console_video_start(), copy_header(), copy_via_headers(), crement_function_read(), crypto_load(), dahdi_bridge(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_r2_disconnect_call(), dahdi_r2_on_call_offered(), dahdi_r2_on_line_blocked(), dahdi_r2_on_line_idle(), dahdi_send_callrerouting_facility_exec(), dahdi_setoption(), db_get_common(), destroy_trans(), dial_exec_full(), dnsmgr_refresh(), do_autokill(), do_forward(), 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(), feature_exec_app(), feature_request_and_dial(), ffmpeg_decode(), find_account(), find_subchannel_and_lock(), find_subchannel_by_name(), finish_bookmark(), forward_message(), get_canmatch_exten(), gosub_run(), group_count_function_read(), gtalk_create_candidates(), gtalk_handle_dtmf(), gtalk_hangup_farend(), gtalk_is_accepted(), gtalk_newcall(), gtalk_parser(), gtalk_sendhtml(), handle_clear_alarms(), handle_cli_indication_add(), handle_command_response(), handle_gosub(), handle_incoming(), handle_init_event(), handle_invite_replaces(), handle_playtones(), handle_request(), handle_request_bye(), handle_request_invite(), handle_request_notify(), handle_request_options(), handle_request_publish(), 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(), HandleCallIncoming(), HandleCallOutgoing(), iax2_canmatch(), iax2_exec(), iax2_exists(), iax2_matchmore(), iax2_poke_peer(), iax2_prov_app(), iax2_send(), iax_park_thread(), iax_provision_reload(), import_ch(), ivr_dispatch(), jingle_create_candidates(), jingle_handle_dtmf(), jingle_hangup_farend(), jingle_indicate(), jingle_is_answered(), jingle_newcall(), jingle_parser(), jingle_sendhtml(), join_queue(), ldap_loadentry(), load_config(), load_config_meetme(), load_module(), load_modules(), load_odbc_config(), load_or_reload_lua_stuff(), local_alloc(), local_ast_moh_start(), local_call(), log_jack_status(), login_exec(), manage_parked_call(), manager_isdn_handler(), measurenoise(), meetmemute(), message_template_parse_emailbody(), mfcr2_monitor(), mgcp_call(), mgcp_fixup(), mgcp_request(), mgcp_rtp_read(), mgcpsock_read(), misdn_bridge(), misdn_hangup(), mixmonitor_exec(), mkintf(), monmp3thread(), mpeg4_decode(), mssql_connect(), mwi_thread(), my_distinctive_ring(), my_handle_dchan_exception(), my_handle_dtmf(), my_handle_notify_message(), nbs_request(), new_find_extension(), odbc_obj_connect(), oh323_call(), oh323_request(), oh323_rtp_read(), open_mailbox(), oss_request(), parse_config(), parse_moved_contact(), parse_register_contact(), ParseBookmark(), parsing(), pbx_extension_helper(), pbx_find_extension(), pbx_live_dangerously(), pbx_load_module(), phone_request(), pickup_by_exten(), pickup_by_group(), pickup_exec(), pickupchan_exec(), pri_check_restart(), pri_dchannel(), pri_find_dchan(), process_applicationmap_line(), process_ast_dsp(), process_cn_rfc3389(), process_config(), process_dahdi(), process_sdp(), purge_old_messages(), queue_function_qac_dep(), read_agent_config(), read_password_from_file(), realtime_exec(), reg_source_db(), register_group(), register_group_feature(), register_verify(), registry_rerequest(), reload(), reload_config(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_queues(), ring_entry(), rqm_exec(), scan_service(), sdp_crypto_process(), set_config(), set_ulimit(), setup_dahdi_int(), setup_filestack(), setup_incoming_call(), setup_privacy_args(), setup_rtp_connection(), sip_dump_history(), 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(), sla_station_exec(), smdi_load(), smoother_frame_feed(), sms_messagerx2(), sms_process(), sms_readfile(), sms_writefile(), socket_process(), srv_datastore_setup(), start_spying(), stun_monitor_request(), stun_start_monitor(), stun_stop_monitor(), system_exec_helper(), tdd_feed(), tds_load_module(), tds_log(), tds_message_handler(), testclient_exec(), testserver_exec(), timed_read(), transmit_refer(), transmit_register(), try_calling(), try_load_key(), try_suggested_sip_codec(), unistim_request(), unistimsock_read(), unload_module(), update2_pgsql(), update2_prepare(), update_call_counter(), update_common_options(), update_key(), update_pgsql(), update_registry(), update_scoreboard(), wait_for_answer(), wait_for_winner(), and waituntil_exec().

#define LOG_VERBOSE   __LOG_VERBOSE, _A_

Definition at line 166 of file logger.h.

Referenced by bridge_call_thread(), and unload_module().

#define LOG_WARNING   __LOG_WARNING, _A_

Definition at line 144 of file logger.h.

Referenced by __adsi_transmit_messages(), __analog_handle_event(), __analog_ss_thread(), __ast_answer(), __ast_bridge_technology_register(), __ast_channel_alloc_ap(), __ast_channel_masquerade(), __ast_cli_register(), __ast_cli_unregister(), __ast_dsp_call_progress(), __ast_format_register(), __ast_http_load(), __ast_pbx_run(), __ast_play_and_record(), __ast_queue_frame(), __ast_read(), __ast_register_translator(), __ast_smoother_feed(), __ast_string_field_init(), __ast_udptl_reload(), __attempt_transmit(), __dahdi_exception(), __find_callno(), __init_manager(), __mgcp_xmit(), __oh323_destroy(), __oh323_new(), __oh323_rtp_create(), __set_address_from_contact(), __sip_autodestruct(), __sip_pretend_ack(), __sip_xmit(), __ssl_setup(), __transmit_response(), __unload_module(), _analog_get_index(), _ast_odbc_request_obj2(), _dahdi_get_index(), _dsp_init(), _enum_array_map(), _extension_match_core(), _macro_exec(), _moh_register(), _sip_tcp_helper_thread(), _while_exec(), accept_thread(), acf_cc_read(), acf_cc_write(), acf_curl_helper(), 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_odbc_read(), acf_odbc_write(), acf_strftime(), acf_strptime(), acf_transaction_write(), ack_trans(), action_bridge(), action_command(), add_agent(), add_agi_cmd(), add_calltoken_ignore(), add_cc_call_info_to_response(), add_cfg_entry(), add_codec_to_answer(), add_content(), add_email_attachment(), add_exten_to_pattern_tree(), add_extensions(), add_features_datastore(), add_header(), add_ie(), add_line(), add_priority(), add_publish_event(), add_realm_authentication(), add_redirect(), add_rt_multi_cfg_entry(), add_sdp(), add_sip_domain(), add_subscribe_event(), admin_exec(), adsi_careful_send(), adsi_get_cpeid(), adsi_get_cpeinfo(), adsi_load_session(), adsi_process(), adsi_prog(), adsi_transmit_message_full(), aes_helper(), agent_answer(), agent_call(), agent_fixup(), agent_new(), agentmonitoroutgoing_exec(), agi_exec_full(), aji_act_hook(), aji_create_buddy(), aji_create_client(), aji_delete_node_list(), aji_dinfo_handler(), aji_load_config(), aji_recv(), aji_recv_loop(), aji_send_exec(), aji_send_raw_chat(), aji_status_exec(), alarmreceiver_exec(), alloc_sub(), alsa_card_init(), alsa_indicate(), alsa_new(), alsa_request(), alsa_write(), analog_answer(), analog_attempt_transfer(), analog_call(), analog_exception(), analog_handle_init_event(), analog_hangup(), analog_ss_thread(), aoc_append_ie(), aoc_parse_ie(), app_exec(), append_ie(), append_mailbox(), apply_general_options(), apply_option(), apply_options_full(), apply_outgoing(), aqm_exec(), ast_adsi_install_funcs(), ast_agi_register(), ast_agi_unregister(), ast_alaw_init(), ast_aoc_create(), ast_aoc_decode(), ast_aoc_encode(), ast_app_exec_macro(), ast_app_exec_sub(), ast_app_expand_sub_args(), ast_append_ha(), ast_async_goto(), ast_autoservice_start(), ast_backtrace(), ast_best_codec(), ast_bridge_call(), ast_bridge_timelimit(), ast_calendar_register(), ast_cc_get_param(), ast_cc_set_param(), ast_cdr_end(), ast_cdr_merge(), ast_cdr_register(), ast_cdr_submit_batch(), ast_cel_get_ama_flag_name(), ast_channel_bridge(), ast_channel_destructor(), ast_channel_make_compatible_helper(), ast_channel_register(), ast_check_signature(), ast_check_signature_bin(), ast_check_timing2(), ast_cli_perms_init(), ast_codec_get_len(), ast_codec_get_samples(), ast_config_internal_load(), ast_connected_line_build_data(), ast_connected_line_parse_data(), ast_context_remove_extension_callerid2(), ast_context_verify_includes(), ast_db_gettree(), ast_db_put(), ast_decrypt_bin(), ast_do_masquerade(), ast_do_pickup(), ast_dsp_call_progress(), ast_dsp_noise(), ast_dsp_process(), ast_dsp_silence(), ast_dtmf_stream(), ast_enable_packet_fragmentation(), ast_encrypt_bin(), ast_event_check_subscriber(), ast_event_get_cached(), ast_event_new(), ast_event_queue(), ast_event_queue_and_cache(), ast_extension_close(), ast_fax_state_to_str(), ast_filehelper(), ast_find_ourip(), ast_format_str_reduce(), ast_format_unregister(), ast_get_enum(), ast_get_group(), ast_handle_cc_control_frame(), ast_hangup(), ast_http_get_post_vars(), ast_http_send(), ast_iax2_new(), ast_include_new(), ast_indicate_data(), ast_io_remove(), ast_ivr_menu_run_internal(), ast_jb_put(), ast_linear_stream(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_logger_register_level(), ast_makesocket(), ast_manager_register_struct(), ast_module_reload(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_netsock_bindaddr(), ast_netsock_set_qos(), ast_odbc_direct_execute(), ast_odbc_find_table(), ast_odbc_prepare_and_execute(), ast_odbc_sanity_check(), ast_odbc_smart_execute(), ast_openstream_full(), ast_openvstream(), ast_ouraddrfor(), ast_parse_allow_disallow(), ast_parse_digest(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_pbx_run_args(), ast_pbx_start(), ast_pickup_call(), ast_pktccops_gate_alloc(), ast_prod(), ast_pthread_create_detached_stack(), ast_pthread_create_stack(), ast_read_image(), ast_read_textfile(), ast_readaudio_callback(), ast_readconfig(), ast_readfile(), ast_readvideo_callback(), ast_record_review(), ast_redirecting_build_data(), ast_redirecting_parse_data(), ast_register_application2(), ast_register_switch(), ast_remotecontrol(), ast_request(), ast_rtcp_read(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_end_with_duration(), ast_rtp_engine_register2(), ast_rtp_glue_register2(), ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_write(), ast_safe_fork(), ast_safe_system(), 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_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_number_full_pt(), ast_sched_del(), ast_search_dns(), ast_security_event_report(), ast_set_cc_offer_timer(), ast_set_cc_recall_timer(), ast_set_ccbs_available_timer(), ast_set_ccnr_available_timer(), ast_set_priority(), ast_set_qos(), ast_sign_bin(), ast_sip_ouraddrfor(), 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_streamfile(), ast_taskprocessor_get(), ast_tcptls_client_create(), ast_tcptls_server_root(), ast_tls_read_conf(), ast_translate_path_steps(), ast_translator_build_path(), ast_udptl_bridge(), ast_udptl_new_with_bindaddr(), ast_udptl_proto_register(), ast_udptl_read(), ast_udptl_write(), ast_ulaw_init(), ast_unload_resource(), ast_waitfordigit_full(), ast_write(), ast_writefile(), ast_writestream(), ast_xmldoc_load_documentation(), ast_yyerror(), async_wait(), asyncgoto_exec(), attempt_transfer(), auth_credentials(), auth_exec(), auth_http_callback(), authenticate_verify(), autoservice_run(), background_detect_exec(), balance_stack(), base64_helper(), base_encode(), blacklist_read(), blr_ebl(), blr_txt(), board_setup(), bridge_call_thread(), bridge_exec(), bridge_make_compatible(), bridge_p2p_rtp_write(), build_alias(), build_channels(), build_conf(), build_device(), build_event_channel(), build_gateway(), build_mapping(), build_parkinglot(), build_peer(), build_user(), builtin_atxfer(), builtin_automixmonitor(), builtin_blindtransfer(), bump_gains(), cache_get_callno_locked(), calc_cost(), 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(), callerid_feed(), callerid_feed_jp(), callerid_get_dtmf(), callerpres_read(), callerpres_write(), canary_thread(), careful_write(), cb_events(), cc_available(), cc_caller_requested(), cc_esc_publish_handler(), cc_handle_publish_error(), cccancel_exec(), cdr_handler(), chan_misdn_log(), chanavail_exec(), channel_admin_exec(), channel_spy(), channel_to_session(), chanspy_exec(), check_abstract_reference(), check_access(), check_app_args(), check_auth(), check_compat(), check_context_names(), check_day(), check_dow(), check_expr2_input(), check_for_conference(), check_goto(), check_header(), check_header_fmt(), check_includes(), check_macro_returns(), check_month(), check_pval_item(), check_switch_expr(), check_timerange(), check_via(), clear_caller(), clearcbone(), cleardisplay(), clearflag(), cleartimer(), close_call(), close_client(), commit_exec(), compile_script(), complete_dialplan_add_extension(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), complete_transfer(), compress_subclass(), conf_add(), conf_del(), conf_exec(), conf_flush(), conf_queue_dtmf(), conf_run(), confbridge_exec(), config_handler(), config_ldap(), config_load(), config_module(), config_odbc(), config_parse_variables(), config_pgsql(), config_text_file_load(), console_autoanswer(), console_cmd(), console_indicate(), console_request(), controlplayback_exec(), cops_connect(), cops_gate_cmd(), cops_sendmsg(), copy(), count_exec(), create_addr(), create_dirpath(), create_dynamic_parkinglot(), create_jb(), create_new_socket(), create_queue_member(), create_video_frame(), crement_function_read(), crypto_load(), csv_log(), custom_prepare(), cut_internal(), dahdi_accept_r2_call_exec(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_callwait(), dahdi_confmute(), dahdi_digit_begin(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_fake_event(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_link(), dahdi_new(), dahdi_new_pri_nobch_channel(), dahdi_open(), dahdi_pri_error(), dahdi_pri_message(), dahdi_r2_get_channel_category(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_offered(), dahdi_r2_write_log(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_ring_phone(), dahdi_send_callrerouting_facility_exec(), dahdi_sendtext(), dahdi_set_hook(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), dahdi_translate(), dahdi_write(), dahdiras_exec(), dbinit(), deadagi_exec(), dec_init(), del_exec(), destroy_odbc(), destroy_pgsql(), destroy_pval_item(), destroy_session(), destroy_trans(), determine_starting_point(), devstate_write(), dial_exec_full(), dial_handle_playtones(), dialgroup_read(), dialgroup_write(), dictate_exec(), digitcollect(), digitdirect(), disa_exec(), disable_jack_hook(), disable_t38(), display_last_error(), display_nat_warning(), dns_parse_answer(), do_idle_thread(), do_monitor(), do_notify(), do_pktccops(), do_reload(), do_say(), do_waiting(), dump_queue_members(), 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(), eventhandler(), ewscal_load_calendar(), exchangecal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exec_exec(), execif_exec(), expand_gosub_args(), ext_cmp_pattern_pos(), extension_matches(), extenspy_exec(), extstate_read(), fax_generator_generate(), fax_rate_str_to_int(), fbuf_append(), feature_exec_app(), festival_exec(), fetch_icalendar(), ffmpeg_encode(), file_read(), file_write(), filename_parse(), filter(), finalize_content(), find_cache(), find_call_locked(), find_conf(), find_conf_realtime(), find_desc(), find_details(), find_engine(), find_line_by_instance(), find_or_create(), find_or_create_details(), find_queue_by_name_rt(), 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(), forkcdr_exec(), frame_trace_helper(), framein(), func_args(), func_channel_read(), func_channel_write(), func_channel_write_real(), func_channels_read(), func_check_sipdomain(), func_header_read(), func_inheritance_write(), func_mchan_read(), func_mchan_write(), func_mute_write(), function_agent(), function_db_delete(), function_db_exists(), function_db_read(), function_db_write(), function_enum(), function_eval(), function_eval2(), function_realtime_read(), function_realtime_readdestroy(), function_realtime_store(), function_realtime_write(), function_sipchaninfo_read(), function_sippeer(), function_txtcidname(), g719read(), g719write(), g723_len(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gen_generate(), gen_nextfile(), generic_execute(), generic_fax_exec(), generic_http_callback(), generic_prepare(), get_alarms(), get_also_info(), get_button_template(), get_calleridname(), get_comma(), get_crypto_attrib(), get_destination(), get_domain(), get_in_brackets_const(), get_in_brackets_full(), get_input(), get_ip_and_port_from_sdp(), get_params(), 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(), gsm_read(), gsm_seek(), gsm_write(), gsmtolin_framein(), gtalk_alloc(), gtalk_call(), gtalk_create_candidates(), gtalk_create_member(), gtalk_free_pvt(), gtalk_is_answered(), gtalk_load_config(), gtalk_new(), gtalk_newcall(), gtalk_parser(), gtalk_request(), gtalk_show_channels(), gtalk_update_externip(), gtalk_update_stun(), gtalk_write(), gui_init(), 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_call_token(), handle_callforward_button(), handle_capabilities_res_message(), handle_cc_subscribe(), handle_cli_indication_add(), handle_cli_indication_remove(), handle_command_response(), handle_common_options(), handle_enbloc_call_message(), handle_error(), handle_exec(), handle_getoption(), handle_hd_hf(), handle_incoming(), handle_init_event(), handle_invite_replaces(), handle_keypad_button_message(), handle_message(), handle_mousedown(), handle_offhook_message(), handle_onhook_message(), handle_pri_service_generic(), handle_recordfile(), handle_register_message(), 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_soft_key_event_message(), handle_stimulus_message(), handle_t38_options(), handle_tcptls_connection(), handle_transfer_button(), handle_updates(), HandleCallIncoming(), HandleCallOutgoing(), hash_read(), hashkeys_read(), hashkeys_read2(), hint_read(), httpd_helper_thread(), iax2_ack_registry(), iax2_bridge(), iax2_call(), iax2_canmatch(), iax2_devicestate(), iax2_do_register(), iax2_exec(), iax2_exists(), iax2_fixup(), iax2_hangup(), iax2_matchmore(), iax2_poke_peer(), iax2_register(), iax2_request(), iax2_send(), iax2_trunk_queue(), iax_error_output(), iax_process_template(), iax_template_parse(), ical_load_calendar(), icalendar_add_event(), ices_exec(), icesencode(), iconv_read(), iftime(), ilbc_read(), ilbc_write(), ilbctolin_framein(), in_band_indication(), increase_call_count(), init_acf_query(), init_app_class(), init_req(), init_resp(), initialize_cc_max_requests(), inprocess_count(), insert_penaltychange(), inspect_module(), isAnsweringMachine(), jack_hook_callback(), jack_hook_write(), jb_get_and_deliver(), jb_warning_output(), jingle_alloc(), jingle_call(), jingle_create_candidates(), jingle_create_member(), jingle_free_pvt(), jingle_load_config(), jingle_new(), jingle_newcall(), jingle_request(), jingle_show_channels(), jingle_write(), jpeg_read_image(), jpeg_write_image(), key_call(), Keyfavorite(), keypad_cfg_read(), keypad_pick_up(), keypad_setup(), keypad_toggle(), kp_match_area(), 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(), listener(), load_column_config(), load_config(), load_config_meetme(), load_dynamic_module(), load_indications(), load_module(), load_modules(), load_moh_classes(), load_odbc_config(), load_pbx(), load_pktccops_config(), load_resource(), load_tech_calendars(), load_values_config(), local_answer(), local_ast_moh_cleanup(), local_ast_moh_start(), local_devicestate(), local_fixup(), local_new(), local_read(), local_write(), login_exec(), lpc10tolin_framein(), macroif_exec(), main(), make_number(), make_str(), make_trunk(), manage_parked_call(), manage_parkinglot(), manager_show_dialplan_helper(), manager_sipnotify(), map_video_codec(), masq_park_call(), math(), md5(), meetme_menu_admin_extended(), memcpy_decrypt(), memcpy_encrypt(), 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_class_destructor(), moh_files_alloc(), moh_files_generator(), moh_files_release(), moh_generate(), moh_release(), moh_scan_files(), mohalloc(), monmp3thread(), morsecode_exec(), mp3_exec(), mp3play(), multicast_send_control_packet(), multiplexed_bridge_create(), multiplexed_thread_function(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), mwi_thread(), my_all_subchannels_hungup(), my_callwait(), my_distinctive_ring(), my_get_callerid(), my_handle_dtmf(), my_is_off_hook(), my_new_pri_ast_channel(), my_pri_dial_digits(), my_pri_ss7_open_media(), my_send_callerid(), my_set_cadence(), my_x_handler(), nbs_alloc(), nbs_call(), nbs_hangup(), nbs_new(), nbs_xwrite(), NBScat_exec(), NBScatplay(), netconsole(), notify_new_message(), odbc_load_module(), odbc_log(), odbc_obj_connect(), odbc_obj_disconnect(), odbc_register_class(), odbc_release_obj2(), ogg_vorbis_read(), ogg_vorbis_rewrite(), ogg_vorbis_seek(), ogg_vorbis_trunc(), ogg_vorbis_write(), oh323_call(), oh323_fixup(), oh323_hangup(), oh323_indicate(), oh323_request(), oh323_write(), old_milliwatt_exec(), onevent(), op_colon(), op_div(), op_eq(), op_eqtilde(), op_func(), op_minus(), op_negate(), op_plus(), op_rem(), op_times(), OpenHistory(), 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(), page_exec(), park_call_exec(), park_space_reserve(), parkandannounce_exec(), parked_call_exec(), parkinglot_activate_cb(), parkinglot_config_read(), parkinglot_is_marked_cb(), parse(), parse_apps(), parse_args(), parse_buffers_policy(), parse_config(), parse_empty_options(), parse_events(), parse_ie(), parse_minse(), parse_naptr(), parse_options(), parse_register_contact(), parse_request(), parse_session_expires(), parse_srv(), parse_tone_zone(), ParseBookmark(), parsing(), 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_saydate(), pbx_builtin_saynumber(), pbx_builtin_saytime(), pbx_builtin_setvar(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_exec(), pbx_extension_helper(), pbx_find_extension(), pbx_live_dangerously(), pbx_load_config(), pbx_parseable_goto(), 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_validate_presence(), pidf_validate_tuple(), pitchshift_helper(), pktccops_add_ippool(), play_message(), play_message_on_chan(), play_moh_exec(), play_record_review(), playback_exec(), playtones_alloc(), playtones_generator(), pop_exec(), post_raw(), powerof(), pqm_exec(), precache_trans(), precache_transactions(), pri_active_dchan_index(), pri_create_spanmap(), pri_create_trunkgroup(), pri_dchannel(), pri_find_dchan(), pri_find_fixup_principle(), pri_fixup_principle(), pri_resolve_span(), pri_ss_thread(), privacy_exec(), private_enum_init(), proc_422_rsp(), proc_session_timer(), process_applicationmap_line(), process_ast_dsp(), process_config(), process_crypto(), process_dahdi(), process_echocancel(), process_message_callback(), process_opcode(), process_output(), process_request(), process_returncode(), process_sdp(), process_sdp_a_audio(), process_sdp_c(), process_sdp_o(), process_text_line(), process_via(), profile_set_param(), proxy_from_config(), proxy_update(), pw_cb(), ql_exec(), queue_exec(), queue_file(), queue_function_qac(), queue_function_qac_dep(), queue_function_queuememberlist(), queue_function_queuememberpaused(), queue_function_queuememberstatus(), queue_function_queuewaitingcount(), queue_function_var(), queue_set_param(), queue_transfer_fixup(), quote(), rcv_mac_addr(), read_config(), read_config_maps(), read_exec(), readexten_exec(), readfile_exec(), readmimefile(), realtime_destroy_handler(), realtime_directory(), realtime_exec(), realtime_handler(), realtime_ldap_base_ap(), realtime_multi_handler(), realtime_multi_ldap(), realtime_multi_odbc(), realtime_multi_pgsql(), realtime_odbc(), realtime_peer(), realtime_peer_by_addr(), realtime_peer_get_sippeer_helper(), realtime_pgsql(), realtime_require_handler(), realtime_store_handler(), realtime_update2_handler(), realtime_update_handler(), realtime_user(), realtimefield_read(), receive_message(), receivefax_exec(), receivefax_t38_init(), record_exec(), refresh_list(), regex(), register_exten(), register_peer_exten(), register_verify(), registry_rerequest(), reload(), reload_config(), reload_firmware(), reload_followme(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_single_member(), reload_single_queue(), remote_bridge_loop(), remove_from_queue(), reply_digest(), require_odbc(), require_pgsql(), reset_conf(), resolve_first(), respprep(), restart_monitor(), restart_pktc_thread(), restore_conference(), restore_gains(), retrans_pkt(), retrydial_exec(), revert_fax_buffers(), rollback_exec(), rotate_file(), rqm_exec(), rt_handle_member_record(), rtp_reload(), run_agi(), run_ras(), s_streamwait3(), safe_append(), save_conference(), say_date(), say_date_with_format(), say_datetime(), say_datetime_from_now(), say_init_mode(), say_number_full(), say_time(), saycountedadj_exec(), saycountednoun_exec(), scan_service(), schedule(), sdl_setup(), sdp_crypto_activate(), sdp_crypto_process(), select_entry(), send_callerid(), send_client(), send_delay(), send_dtmf(), send_ews_request_and_parse(), send_request(), send_retransmit(), send_select_output(), send_tone_burst(), send_waveform_to_channel(), send_waveform_to_fd(), senddtmf_exec(), sendfax_exec(), sendfax_t38_init(), sendimage_exec(), sendmail(), sendtext_exec(), sendurl_exec(), session_do(), set(), set_bridge_features_on_config(), set_config(), set_crypto_policy(), set_destination(), set_format(), set_full_cmd(), set_insecure_flags(), set_member_paused(), set_moh_exec(), set_state(), set_ulimit(), set_var(), setcallerid_pres_exec(), setflag(), setformat(), setup_dahdi_int(), setup_privacy_args(), setup_stunaddr(), setup_transfer_datastore(), sha1(), shared_read(), shared_write(), shell_helper(), shift_pop(), show_chanstats_cb(), show_dialplan_helper(), showdisplay(), showkeys(), sig_pri_call(), sig_pri_digit_begin(), sig_pri_handle_hold(), sig_pri_handle_retrieve(), sig_pri_handle_subcmds(), sig_pri_hangup(), sip_acf_channel_read(), sip_addheader(), sip_call(), sip_cc_monitor_suspend(), sip_cli_notify(), sip_dtmfmode(), sip_fixup(), sip_hangup(), sip_indicate(), sip_new(), sip_parse_host(), sip_parse_register_line(), sip_pidf_validate(), sip_request_call(), sip_scheddestroy(), sip_sendhtml(), sip_subscribe_mwi(), sip_tcptls_read(), sip_write(), sipsock_read(), siren14read(), siren14write(), siren7read(), siren7write(), skel_exec(), skinny_call(), skinny_fixup(), skinny_hangup(), skinny_hold(), skinny_indicate(), skinny_new(), skinny_newcall(), skinny_register(), skinny_request(), skinny_ss(), skinny_transfer(), skinny_unhold(), skinny_write(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_load_config(), sla_station_exec(), slinear_read(), slinear_write(), smdi_msg_read(), smdi_msg_retrieve_read(), sms_generate(), sms_handleincoming(), sms_log(), sms_readfile(), socket_process(), socket_process_meta(), socket_read(), softhangup_exec(), soundcard_writeframe(), span_message(), spandsp_fax_write(), spandsp_log(), spandsp_modems(), 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(), start_moh_exec(), start_monitor_exec(), start_network_thread(), start_rtp(), start_stream(), starttimer(), store_boost(), store_config(), store_config_core(), store_digit(), store_mixer(), store_odbc(), store_pgsql(), store_tone_zone_ring_cadence(), str_to_agent_policy(), str_to_monitor_policy(), stun_monitor_request(), subscript(), swap_subs(), switch(), switch_video_out(), sysinfo_helper(), system_exec_helper(), t38_tx_packet_handler(), tdd_feed(), tdd_new(), testclient_exec(), timezone_add(), to_number(), to_string(), tonepair_alloc(), tonepair_generator(), tps_processing_function(), transfer_exec(), TransferCallStep1(), transmit(), transmit_audio(), transmit_cc_notify(), transmit_invite(), transmit_register(), transmit_request_with_auth(), transmit_response(), transmit_response_with_auth(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), transmit_state_notify(), transmit_t38(), try_calling(), try_firmware(), try_load_key(), try_transfer(), tryexec_exec(), turn_on_off(), tvfix(), txt_callback(), unalloc_sub(), unistim_answer(), unistim_call(), unistim_do_senddigit(), unistim_fixup(), unistim_hangup(), unistim_indicate(), unistim_new(), unistim_request(), unistim_rtp_read(), unistim_senddigit_end(), unistim_sendtext(), unistim_ss(), unistim_write(), unistimsock_read(), unload_module(), unlock_read(), unregister_exten(), unshift_push(), update2_ldap(), update2_odbc(), update2_pgsql(), update2_prepare(), update_common_options(), update_config(), update_header(), update_ldap(), update_modem_bits(), update_odbc(), update_pgsql(), update_registry(), update_stats(), upqm_exec(), usage_context_add_ramp(), usage_context_add_spaces(), used_blocks(), userevent_exec(), verbose_exec(), vm_check_password_shell(), vm_intro(), vmsayname_exec(), volume_write(), vox_read(), vox_write(), wait_file(), wait_for_answer(), wait_for_winner(), wait_moh_exec(), waitfor_exec(), waitforring_exec(), waitstream_core(), waituntil_exec(), wav_close(), wav_read(), wav_seek(), wav_write(), while(), write_header(), write_history(), write_stream(), writefile(), xmldoc_build_field(), xmldoc_get_syntax_fun(), and xmldoc_string_wrap().

#define NUMLOGLEVELS   32

Definition at line 184 of file logger.h.

Referenced by ast_console_toggle_loglevel().

#define QUEUELOG   "queue_log"

Definition at line 35 of file logger.h.

#define VERBOSE_PREFIX_1   " "

Definition at line 41 of file logger.h.

Referenced by console_verboser(), and verbose_exec().

#define VERBOSE_PREFIX_4   " > "

Definition at line 44 of file logger.h.

Referenced by console_verboser(), socket_process(), and verbose_exec().

#define VERBOSITY_ATLEAST (   level)    (option_verbose >= (level) || (ast_opt_verb_module && ast_verbose_get_by_module(AST_MODULE) >= (level)))

Function Documentation

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

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 abscence of a comma after the VERBOSE_PREFIX_3. This is important. VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined.

Send a verbose message (based on verbose level)

Definition at line 1556 of file logger.c.

References __ast_verbose_ap().

1557 {
1558  va_list ap;
1559 
1560  va_start(ap, fmt);
1561  __ast_verbose_ap(file, line, func, fmt, ap);
1562  va_end(ap);
1563 }
void __ast_verbose_ap(const char *file, int line, const char *func, const char *fmt, va_list ap)
Definition: logger.c:1520
void __ast_verbose_ap ( const char *  file,
int  line,
const char *  func,
const char *  fmt,
va_list  ap 
)

Definition at line 1520 of file logger.c.

References __LOG_VERBOSE, ast_alloca, AST_DYNSTR_BUILD_FAILED, ast_localtime(), ast_log(), ast_opt_timestamp, ast_str_buffer(), ast_str_set_va(), ast_str_thread_get(), ast_strftime(), ast_tvnow(), verbose_buf, and VERBOSE_BUF_INIT_SIZE.

Referenced by __ast_verbose(), and ast_verbose().

1521 {
1522  struct ast_str *buf = NULL;
1523  int res = 0;
1524 
1526  return;
1527 
1528  if (ast_opt_timestamp) {
1529  struct timeval now;
1530  struct ast_tm tm;
1531  char date[40];
1532  char *datefmt;
1533 
1534  now = ast_tvnow();
1535  ast_localtime(&now, &tm, NULL);
1536  ast_strftime(date, sizeof(date), dateformat, &tm);
1537  datefmt = ast_alloca(strlen(date) + 3 + strlen(fmt) + 1);
1538  sprintf(datefmt, "%c[%s] %s", 127, date, fmt);
1539  fmt = datefmt;
1540  } else {
1541  char *tmp = ast_alloca(strlen(fmt) + 2);
1542  sprintf(tmp, "%c%s", 127, fmt);
1543  fmt = tmp;
1544  }
1545 
1546  /* Build string */
1547  res = ast_str_set_va(&buf, 0, fmt, ap);
1548 
1549  /* If the build failed then we can drop this allocated message */
1550  if (res == AST_DYNSTR_BUILD_FAILED)
1551  return;
1552 
1553  ast_log(__LOG_VERBOSE, file, line, func, "%s", ast_str_buffer(buf));
1554 }
#define ast_alloca(size)
call __builtin_alloca to ensure we get gcc builtin semantics
Definition: utils.h:653
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Definition: strings.h:497
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:1570
int ast_str_set_va(struct ast_str **buf, ssize_t max_len, const char *fmt, va_list ap)
Set a dynamic string from a va_list.
Definition: strings.h:792
struct timeval ast_tvnow(void)
Returns current timeval. Meant to replace calls to gettimeofday().
Definition: time.h:142
#define VERBOSE_BUF_INIT_SIZE
Definition: logger.c:207
#define ast_opt_timestamp
Definition: options.h:117
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Definition: strings.h:364
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:1207
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:2351
static char dateformat[256]
Definition: logger.c:69
#define __LOG_VERBOSE
Definition: logger.h:165
static struct ast_threadstorage verbose_buf
Definition: logger.c:206
struct ast_str * ast_str_thread_get(struct ast_threadstorage *ts, size_t init_len)
Retrieve a thread locally stored dynamic string.
Definition: strings.h:669
void ast_backtrace ( void  )

Definition at line 1492 of file logger.c.

References ast_bt::addresses, ast_bt_create(), ast_bt_destroy(), ast_bt_get_symbols(), ast_debug, ast_log(), ast_std_free(), LOG_DEBUG, LOG_WARNING, and ast_bt::num_frames.

1493 {
1494 #ifdef HAVE_BKTR
1495  struct ast_bt *bt;
1496  int i = 0;
1497  char **strings;
1498 
1499  if (!(bt = ast_bt_create())) {
1500  ast_log(LOG_WARNING, "Unable to allocate space for backtrace structure\n");
1501  return;
1502  }
1503 
1504  if ((strings = ast_bt_get_symbols(bt->addresses, bt->num_frames))) {
1505  ast_debug(1, "Got %d backtrace record%c\n", bt->num_frames, bt->num_frames != 1 ? 's' : ' ');
1506  for (i = 3; i < bt->num_frames - 2; i++) {
1507  ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i - 3, bt->addresses[i], strings[i]);
1508  }
1509 
1510  ast_std_free(strings);
1511  } else {
1512  ast_debug(1, "Could not allocate memory for backtrace\n");
1513  }
1514  ast_bt_destroy(bt);
1515 #else
1516  ast_log(LOG_WARNING, "Must run configure with '--with-execinfo' for stack backtraces.\n");
1517 #endif /* defined(HAVE_BKTR) */
1518 }
struct ast_bt * ast_bt_create(void)
Definition: logger.c:1304
void ast_std_free(void *ptr)
#define LOG_WARNING
Definition: logger.h:144
char ** ast_bt_get_symbols(void **addresses, size_t num_frames)
Definition: logger.c:1335
#define LOG_DEBUG
Definition: logger.h:122
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:236
Definition: logger.h:267
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:1207
void * addresses[AST_MAX_BT_FRAMES]
Definition: logger.h:269
int num_frames
Definition: logger.h:271
void * ast_bt_destroy(struct ast_bt *bt)
Definition: logger.c:1326
struct ast_bt* ast_bt_create ( void  )

Definition at line 1304 of file logger.c.

References ast_bt::alloced, ast_bt_get_addresses(), ast_calloc, ast_log(), and LOG_ERROR.

Referenced by ast_backtrace().

1305 {
1306  struct ast_bt *bt = ast_calloc(1, sizeof(*bt));
1307  if (!bt) {
1308  ast_log(LOG_ERROR, "Unable to allocate memory for backtrace structure!\n");
1309  return NULL;
1310  }
1311 
1312  bt->alloced = 1;
1313 
1315 
1316  return bt;
1317 }
Definition: logger.h:267
unsigned int alloced
Definition: logger.h:273
#define LOG_ERROR
Definition: logger.h:155
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:1207
#define ast_calloc(a, b)
Definition: astmm.h:82
int ast_bt_get_addresses(struct ast_bt *bt)
Definition: logger.c:1319
void* ast_bt_destroy ( struct ast_bt bt)

Definition at line 1326 of file logger.c.

References ast_bt::alloced, and ast_free.

Referenced by ast_backtrace().

1327 {
1328  if (bt->alloced) {
1329  ast_free(bt);
1330  }
1331 
1332  return NULL;
1333 }
unsigned int alloced
Definition: logger.h:273
#define ast_free(a)
Definition: astmm.h:97
int ast_bt_get_addresses ( struct ast_bt bt)

Definition at line 1319 of file logger.c.

References ast_bt::addresses, AST_MAX_BT_FRAMES, and ast_bt::num_frames.

Referenced by __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_wrlock(), and ast_bt_create().

1320 {
1321  bt->num_frames = backtrace(bt->addresses, AST_MAX_BT_FRAMES);
1322 
1323  return 0;
1324 }
void * addresses[AST_MAX_BT_FRAMES]
Definition: logger.h:269
#define AST_MAX_BT_FRAMES
Definition: logger.h:261
int num_frames
Definition: logger.h:271
char** ast_bt_get_symbols ( void **  addresses,
size_t  num_frames 
)

Definition at line 1335 of file logger.c.

References ast_calloc, ast_free, ast_log(), ast_malloc, ast_std_calloc(), ast_std_free(), ast_std_realloc(), ast_strlen_zero(), ast_utils_which(), LOG_DEBUG, ast_bt::num_frames, and S_OR.

Referenced by ao2_bt(), and ast_backtrace().

1336 {
1337  char **strings;
1338 #if defined(BETTER_BACKTRACES)
1339  int stackfr;
1340  bfd *bfdobj; /* bfd.h */
1341  Dl_info dli; /* dlfcn.h */
1342  long allocsize;
1343  asymbol **syms = NULL; /* bfd.h */
1344  bfd_vma offset; /* bfd.h */
1345  const char *lastslash;
1346  asection *section;
1347  const char *file, *func;
1348  unsigned int line;
1349  char address_str[128];
1350  char msg[1024];
1351  size_t strings_size;
1352  size_t *eachlen;
1353 #endif
1354 
1355 #if defined(BETTER_BACKTRACES)
1356  strings_size = num_frames * sizeof(*strings);
1357 
1358  eachlen = ast_calloc(num_frames, sizeof(*eachlen));
1359  strings = ast_std_calloc(num_frames, sizeof(*strings));
1360  if (!eachlen || !strings) {
1361  ast_free(eachlen);
1362  ast_std_free(strings);
1363  return NULL;
1364  }
1365 
1366  for (stackfr = 0; stackfr < num_frames; stackfr++) {
1367  int found = 0, symbolcount;
1368 
1369  msg[0] = '\0';
1370 
1371  if (!dladdr(addresses[stackfr], &dli)) {
1372  continue;
1373  }
1374 
1375  if (strcmp(dli.dli_fname, "asterisk") == 0) {
1376  char asteriskpath[256];
1377 
1378  if (!(dli.dli_fname = ast_utils_which("asterisk", asteriskpath, sizeof(asteriskpath)))) {
1379  /* This will fail to find symbols */
1380  ast_log(LOG_DEBUG, "Failed to find asterisk binary for debug symbols.\n");
1381  dli.dli_fname = "asterisk";
1382  }
1383  }
1384 
1385  lastslash = strrchr(dli.dli_fname, '/');
1386  if ((bfdobj = bfd_openr(dli.dli_fname, NULL)) &&
1387  bfd_check_format(bfdobj, bfd_object) &&
1388  (allocsize = bfd_get_symtab_upper_bound(bfdobj)) > 0 &&
1389  (syms = ast_malloc(allocsize)) &&
1390  (symbolcount = bfd_canonicalize_symtab(bfdobj, syms))) {
1391 
1392  if (bfdobj->flags & DYNAMIC) {
1393  offset = addresses[stackfr] - dli.dli_fbase;
1394  } else {
1395  offset = addresses[stackfr] - (void *) 0;
1396  }
1397 
1398  for (section = bfdobj->sections; section; section = section->next) {
1399  if (!bfd_get_section_flags(bfdobj, section) & SEC_ALLOC ||
1400  section->vma > offset ||
1401  section->size + section->vma < offset) {
1402  continue;
1403  }
1404 
1405  if (!bfd_find_nearest_line(bfdobj, section, syms, offset - section->vma, &file, &func, &line)) {
1406  continue;
1407  }
1408 
1409  /* file can possibly be null even with a success result from bfd_find_nearest_line */
1410  file = file ? file : "";
1411 
1412  /* Stack trace output */
1413  found++;
1414  if ((lastslash = strrchr(file, '/'))) {
1415  const char *prevslash;
1416 
1417  for (prevslash = lastslash - 1; *prevslash != '/' && prevslash >= file; prevslash--) {
1418  }
1419  if (prevslash >= file) {
1420  lastslash = prevslash;
1421  }
1422  }
1423  if (dli.dli_saddr == NULL) {
1424  address_str[0] = '\0';
1425  } else {
1426  snprintf(address_str, sizeof(address_str), " (%p+%lX)",
1427  dli.dli_saddr,
1428  (unsigned long) (addresses[stackfr] - dli.dli_saddr));
1429  }
1430  snprintf(msg, sizeof(msg), "%s:%u %s()%s",
1431  lastslash ? lastslash + 1 : file, line,
1432  S_OR(func, "???"),
1433  address_str);
1434 
1435  break; /* out of section iteration */
1436  }
1437  }
1438  if (bfdobj) {
1439  bfd_close(bfdobj);
1440  ast_free(syms);
1441  }
1442 
1443  /* Default output, if we cannot find the information within BFD */
1444  if (!found) {
1445  if (dli.dli_saddr == NULL) {
1446  address_str[0] = '\0';
1447  } else {
1448  snprintf(address_str, sizeof(address_str), " (%p+%lX)",
1449  dli.dli_saddr,
1450  (unsigned long) (addresses[stackfr] - dli.dli_saddr));
1451  }
1452  snprintf(msg, sizeof(msg), "%s %s()%s",
1453  lastslash ? lastslash + 1 : dli.dli_fname,
1454  S_OR(dli.dli_sname, "<unknown>"),
1455  address_str);
1456  }
1457 
1458  if (!ast_strlen_zero(msg)) {
1459  char **tmp;
1460 
1461  eachlen[stackfr] = strlen(msg) + 1;
1462  if (!(tmp = ast_std_realloc(strings, strings_size + eachlen[stackfr]))) {
1463  ast_std_free(strings);
1464  strings = NULL;
1465  break; /* out of stack frame iteration */
1466  }
1467  strings = tmp;
1468  strings[stackfr] = (char *) strings + strings_size;
1469  strcpy(strings[stackfr], msg);/* Safe since we just allocated the room. */
1470  strings_size += eachlen[stackfr];
1471  }
1472  }
1473 
1474  if (strings) {
1475  /* Recalculate the offset pointers because of the reallocs. */
1476  strings[0] = (char *) strings + num_frames * sizeof(*strings);
1477  for (stackfr = 1; stackfr < num_frames; stackfr++) {
1478  strings[stackfr] = strings[stackfr - 1] + eachlen[stackfr - 1];
1479  }
1480  }
1481  ast_free(eachlen);
1482 
1483 #else /* !defined(BETTER_BACKTRACES) */
1484 
1485  strings = backtrace_symbols(addresses, num_frames);
1486 #endif /* defined(BETTER_BACKTRACES) */
1487  return strings;
1488 }
void ast_std_free(void *ptr)
char * ast_utils_which(const char *binary, char *fullpath, size_t fullpath_size)
Resolve a binary to a full pathname.
Definition: utils.c:2364
void * ast_std_realloc(void *ptr, size_t size)
#define LOG_DEBUG
Definition: logger.h:122
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Definition: strings.h:63
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:1207
#define ast_free(a)
Definition: astmm.h:97
void * ast_std_calloc(size_t nmemb, size_t size)
void * addresses[AST_MAX_BT_FRAMES]
Definition: logger.h:269
int num_frames
Definition: logger.h:271
#define ast_calloc(a, b)
Definition: astmm.h:82
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one...
Definition: strings.h:77
#define ast_malloc(a)
Definition: astmm.h:91
void ast_child_verbose ( int  level,
const char *  fmt,
  ... 
)

Definition at line 430 of file logger.c.

References ast_free, ast_malloc, and option_verbose.

Referenced by launch_script().

431 {
432  char *msg = NULL, *emsg = NULL, *sptr, *eptr;
433  va_list ap, aq;
434  int size;
435 
436  /* Don't bother, if the level isn't that high */
437  if (option_verbose < level) {
438  return;
439  }
440 
441  va_start(ap, fmt);
442  va_copy(aq, ap);
443  if ((size = vsnprintf(msg, 0, fmt, ap)) < 0) {
444  va_end(ap);
445  va_end(aq);
446  return;
447  }
448  va_end(ap);
449 
450  if (!(msg = ast_malloc(size + 1))) {
451  va_end(aq);
452  return;
453  }
454 
455  vsnprintf(msg, size + 1, fmt, aq);
456  va_end(aq);
457 
458  if (!(emsg = ast_malloc(size * 2 + 1))) {
459  ast_free(msg);
460  return;
461  }
462 
463  for (sptr = msg, eptr = emsg; ; sptr++) {
464  if (*sptr == '"') {
465  *eptr++ = '\\';
466  }
467  *eptr++ = *sptr;
468  if (*sptr == '\0') {
469  break;
470  }
471  }
472  ast_free(msg);
473 
474  fprintf(stdout, "verbose \"%s\" %d\n", emsg, level);
475  fflush(stdout);
476  ast_free(emsg);
477 }
int option_verbose
Definition: asterisk.c:181
#define ast_free(a)
Definition: astmm.h:97
#define ast_malloc(a)
Definition: astmm.h:91
void ast_console_puts ( const char *  string)

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

Definition at line 1222 of file asterisk.c.

References ast_network_puts().

1223 {
1224  fputs(string, stdout);
1225  fflush(stdout);
1226  ast_network_puts(string);
1227 }
static void ast_network_puts(const char *string)
write the string to all attached console clients
Definition: asterisk.c:1209
void ast_console_puts_mutable ( const char *  string,
int  level 
)

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

Version
1.6.1 added level parameter

Definition at line 1199 of file asterisk.c.

References ast_network_puts_mutable().

Referenced by init_logger_chain(), logger_print_normal(), and make_logchannel().

1200 {
1201  fputs(string, stdout);
1202  fflush(stdout);
1203  ast_network_puts_mutable(string, level);
1204 }
static void ast_network_puts_mutable(const char *string, int level)
log the string to all attached console clients
Definition: asterisk.c:1182
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)

Definition at line 1136 of file asterisk.c.

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

Referenced by handle_logger_set_level().

1137 {
1138  int x;
1139 
1140  if (level >= NUMLOGLEVELS) {
1141  level = NUMLOGLEVELS - 1;
1142  }
1143 
1144  for (x = 0;x < AST_MAX_CONNECTS; x++) {
1145  if (fd == consoles[x].fd) {
1146  /*
1147  * Since the logging occurs when levels are false, set to
1148  * flipped iinput because this function accepts 0 as off and 1 as on
1149  */
1150  consoles[x].levels[level] = state ? 0 : 1;
1151  return;
1152  }
1153  }
1154 }
#define AST_MAX_CONNECTS
Definition: asterisk.c:158
#define NUMLOGLEVELS
Definition: logger.h:184
struct console consoles[AST_MAX_CONNECTS]
Definition: asterisk.c:225
int levels[NUMLOGLEVELS]
Definition: asterisk.c:207
void ast_console_toggle_mute ( int  fd,
int  silent 
)

mute or unmute a console from logging

Definition at line 1159 of file asterisk.c.

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

Referenced by handle_logger_mute().

1160 {
1161  int x;
1162  for (x = 0;x < AST_MAX_CONNECTS; x++) {
1163  if (fd == consoles[x].fd) {
1164  if (consoles[x].mute) {
1165  consoles[x].mute = 0;
1166  if (!silent)
1167  ast_cli(fd, "Console is not muted anymore.\n");
1168  } else {
1169  consoles[x].mute = 1;
1170  if (!silent)
1171  ast_cli(fd, "Console is muted.\n");
1172  }
1173  return;
1174  }
1175  }
1176  ast_cli(fd, "Couldn't find remote console.\n");
1177 }
#define AST_MAX_CONNECTS
Definition: asterisk.c:158
void ast_cli(int fd, const char *fmt,...)
Definition: cli.c:105
static int mute
Definition: chan_alsa.c:135
struct console consoles[AST_MAX_CONNECTS]
Definition: asterisk.c:225
int mute
Definition: asterisk.c:204
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

Definition at line 123 of file cli.c.

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

124 {
125  struct module_level *ml;
126  unsigned int res = 0;
127 
129  AST_LIST_TRAVERSE(&debug_modules, ml, entry) {
130  if (!strcasecmp(ml->module, module)) {
131  res = ml->level;
132  break;
133  }
134  }
136 
137  return res;
138 }
unsigned int level
Definition: cli.c:88
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Definition: linkedlists.h:150
static struct module_level_list debug_modules
Definition: cli.c:96
map a debug or verbose level to a module name
Definition: cli.c:87
#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
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? :-)

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.

Definition at line 1207 of file logger.c.

References __LOG_DEBUG, __LOG_VERBOSE, ast_calloc_with_stringfields, ast_cond_signal, AST_DYNSTR_BUILD_FAILED, ast_free, ast_get_tid(), AST_LIST_INSERT_TAIL, AST_LIST_LOCK, AST_LIST_UNLOCK, ast_localtime(), AST_PTHREADT_NULL, AST_RWLIST_EMPTY, ast_str_buffer(), ast_str_set_va(), ast_str_thread_get(), ast_strftime(), ast_string_field_set, ast_tvnow(), close_logger_thread, logmsg::level, levels, logmsg::line, logchannel::list, log_buf, LOG_BUF_INIT_SIZE, logcond, logger_print_normal(), LOGMSG_NORMAL, LOGMSG_VERBOSE, logthread, option_debug, option_verbose, logmsg::process_id, term_filter_escapes(), and logmsg::type.

Referenced by __adsi_transmit_messages(), __agent_start_monitoring(), __analog_handle_event(), __analog_ss_thread(), __ast_answer(), __ast_bridge_technology_register(), __ast_channel_alloc_ap(), __ast_channel_masquerade(), __ast_cli_register(), __ast_cli_unregister(), __ast_custom_function_register(), __ast_data_register(), __ast_data_unregister(), __ast_dsp_call_progress(), __ast_format_register(), __ast_http_load(), __ast_pbx_run(), __ast_play_and_record(), __ast_queue_frame(), __ast_read(), __ast_register_translator(), __ast_request_and_dial(), __ast_smoother_feed(), __ast_string_field_init(), __ast_udptl_reload(), __ast_verbose_ap(), __attempt_transmit(), __auto_congest(), __dahdi_exception(), __find_callno(), __iax2_poke_noanswer(), __init_manager(), __mgcp_xmit(), __oh323_destroy(), __oh323_new(), __oh323_rtp_create(), __oh323_update_info(), __set_address_from_contact(), __sip_autodestruct(), __sip_pretend_ack(), __sip_reliable_xmit(), __sip_xmit(), __ssl_setup(), __transmit_response(), __unload_module(), _analog_get_index(), _ast_odbc_request_obj2(), _ast_sockaddr_from_sin(), _ast_sockaddr_port(), _ast_sockaddr_set_port(), _ast_sockaddr_to_sin(), _dahdi_get_index(), _dsp_init(), _enum_array_map(), _extension_match_core(), _get_mohbyname(), _lookup_timer(), _macro_exec(), _moh_register(), _sip_show_peers(), _sip_tcp_helper_thread(), _while_exec(), accept_thread(), access_counter_file(), acf_cc_read(), acf_cc_write(), 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_fetch(), acf_iaxvar_read(), acf_iaxvar_write(), acf_if(), acf_isexten_exec(), acf_jabberreceive_read(), acf_jabberstatus_read(), acf_mailbox_exists(), acf_meetme_info(), acf_odbc_read(), acf_odbc_write(), acf_sort_exec(), acf_sprintf(), acf_strftime(), acf_strptime(), acf_transaction_write(), ack_trans(), action_bridge(), action_command(), action_getvar(), action_hangup(), actual_load_config(), add_agent(), add_agi_cmd(), add_calltoken_ignore(), add_cc_call_info_to_response(), add_cfg_entry(), add_codec_to_answer(), add_content(), add_email_attachment(), add_event_to_list(), add_exten_to_pattern_tree(), add_extensions(), add_features_datastore(), add_header(), add_ie(), add_in_calls(), add_line(), add_out_calls(), add_priority(), add_publish_event(), add_realm_authentication(), add_redirect(), add_rt_multi_cfg_entry(), add_sdp(), add_sip_domain(), add_subscribe_event(), add_to_agi(), admin_exec(), adsi_begin(), adsi_careful_send(), adsi_get_cpeid(), adsi_get_cpeinfo(), adsi_load_session(), adsi_process(), adsi_prog(), adsi_transmit_message_full(), advanced_options(), ael2_parse(), ael2_print(), aes_helper(), agent_answer(), agent_call(), agent_fixup(), agent_get_base_channel(), agent_new(), agent_read(), agentmonitoroutgoing_exec(), agi_exec_full(), aji_act_hook(), aji_client_connect(), aji_client_info_handler(), aji_create_buddy(), aji_create_client(), aji_delete_node_list(), aji_devstate_cb(), aji_dinfo_handler(), aji_ditems_handler(), aji_find_version(), aji_handle_message(), aji_handle_presence(), aji_handle_pubsub_error(), aji_handle_pubsub_event(), aji_handle_subscribe(), aji_initialize(), aji_join_exec(), aji_leave_exec(), aji_load_config(), aji_mwi_cb(), aji_pruneregister(), aji_recv(), aji_recv_loop(), aji_register_approve_handler(), aji_register_query_handler(), aji_reload(), aji_send_exec(), aji_send_raw_chat(), aji_sendgroup_exec(), aji_set_group_presence(), aji_set_presence(), aji_start_sasl(), aji_status_exec(), alarmreceiver_exec(), alloc_expr_node(), alloc_resampler(), alloc_sub(), alsa_card_init(), alsa_indicate(), alsa_new(), alsa_read(), alsa_request(), alsa_write(), analog_answer(), analog_attempt_transfer(), analog_call(), analog_exception(), analog_handle_init_event(), analog_hangup(), analog_request(), analog_ss_thread(), analogsub_to_dahdisub(), announce_thread(), answer_call(), anti_injection(), aoc_append_ie(), aoc_parse_ie(), app_exec(), append_ie(), append_mailbox(), apply_general_options(), apply_option(), apply_options_full(), apply_outgoing(), aqm_exec(), ast_add_extension2_lockopt(), ast_adsi_install_funcs(), ast_agi_register(), ast_agi_send(), ast_agi_unregister(), ast_ais_clm_load_module(), ast_ais_clm_unload_module(), ast_ais_evt_load_module(), ast_ais_evt_unload_module(), ast_aji_create_chat(), ast_aji_invite_chat(), ast_alaw_init(), ast_aoc_create(), ast_aoc_decode(), ast_aoc_encode(), ast_app_dtget(), ast_app_exec_macro(), ast_app_exec_sub(), ast_app_expand_sub_args(), ast_app_group_match_get_count(), ast_append_ha(), ast_apply_ha(), ast_async_goto(), ast_audiohook_write_frame(), ast_autoservice_start(), ast_backtrace(), ast_best_codec(), ast_bridge_call(), ast_bridge_end_dtmf(), ast_bridge_timelimit(), ast_bt_create(), ast_bt_get_symbols(), ast_calendar_register(), ast_call_forward(), ast_careful_fwrite(), ast_carefulwrite(), ast_cc_get_param(), ast_cc_set_param(), ast_cdr_alloc(), ast_cdr_end(), ast_cdr_engine_init(), ast_cdr_merge(), ast_cdr_register(), ast_cdr_serialize_variables(), ast_cdr_setvar(), ast_cdr_submit_batch(), ast_cel_check_retire_linkedid(), ast_cel_fill_record(), ast_cel_get_ama_flag_name(), ast_cel_linkedid_ref(), ast_channel_audiohook_count_by_source(), ast_channel_audiohook_count_by_source_running(), ast_channel_bridge(), ast_channel_destructor(), ast_channel_log(), ast_channel_make_compatible_helper(), ast_channel_queryoption(), ast_channel_register(), ast_channel_setoption(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_check_signature(), ast_check_signature_bin(), ast_check_timing2(), ast_cli_perms_init(), ast_codec_get_len(), ast_codec_get_samples(), ast_codec_pref_getsize(), ast_config_engine_register(), ast_config_internal_load(), ast_config_text_file_save(), ast_connected_line_build_data(), ast_connected_line_parse_data(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), ast_context_verify_includes(), ast_data_get(), ast_data_retrieve(), ast_db_gettree(), ast_db_put(), ast_decrypt_bin(), ast_device_state_engine_init(), ast_do_masquerade(), ast_do_pickup(), ast_dsp_busydetect(), ast_dsp_call_progress(), ast_dsp_noise(), ast_dsp_process(), ast_dsp_silence(), ast_dtmf_stream(), ast_enable_distributed_devstate(), ast_enable_packet_fragmentation(), ast_encrypt_bin(), ast_event_cb(), ast_event_check_subscriber(), ast_event_get_cached(), ast_event_get_ie_pltype(), ast_event_get_ie_type_name(), ast_event_get_type_name(), ast_event_new(), ast_event_queue(), ast_event_queue_and_cache(), ast_event_subscribe_new(), ast_extension_close(), ast_fax_log(), ast_fax_state_to_str(), ast_filehelper(), ast_find_ourip(), ast_format_str_reduce(), ast_format_unregister(), ast_framehook_attach(), ast_func_read(), ast_func_read2(), ast_func_write(), ast_get_encoded_char(), ast_get_enum(), ast_get_group(), ast_handle_cc_control_frame(), ast_hangup(), ast_heap_create(), ast_http_get_post_vars(), ast_http_send(), ast_iax2_new(), ast_include_new(), ast_indicate_data(), ast_io_remove(), ast_ivr_menu_run_internal(), ast_jb_put(), ast_linear_stream(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_logger_register_level(), ast_makesocket(), ast_manager_register_struct(), ast_module_reload(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_netsock_bindaddr(), ast_netsock_set_qos(), ast_odbc_direct_execute(), ast_odbc_find_table(), ast_odbc_prepare_and_execute(), ast_odbc_sanity_check(), ast_odbc_smart_execute(), ast_openstream_full(), ast_openvstream(), ast_ouraddrfor(), ast_parse_allow_disallow(), ast_parse_digest(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_pbx_run_args(), ast_pbx_start(), ast_pickup_call(), ast_pktccops_gate_alloc(), ast_playtones_start(), ast_process_pending_reloads(), ast_prod(), ast_pthread_create_detached_stack(), ast_pthread_create_stack(), ast_queue_cc_frame(), ast_read_image(), ast_read_textfile(), ast_readaudio_callback(), ast_readconfig(), ast_readfile(), ast_readvideo_callback(), ast_record_review(), ast_redirecting_build_data(), ast_redirecting_parse_data(), ast_register_application2(), ast_register_feature(), ast_register_switch(), ast_remotecontrol(), ast_request(), ast_rtcp_read(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_continuation(), ast_rtp_dtmf_end_with_duration(), ast_rtp_engine_register2(), ast_rtp_glue_register2(), ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_instance_make_compatible(), ast_rtp_instance_new(), ast_rtp_new(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_sendcng(), ast_rtp_write(), ast_safe_fork(), ast_safe_system(), 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_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_he(), ast_say_number_full_pt(), ast_say_number_full_se(), ast_say_number_full_ur(), ast_say_number_full_zh(), ast_sched_del(), ast_sched_runq(), ast_sched_thread_create(), ast_search_dns(), ast_security_event_report(), ast_set_cc_offer_timer(), ast_set_cc_recall_timer(), ast_set_ccbs_available_timer(), ast_set_ccnr_available_timer(), ast_set_owners_and_peers(), ast_set_priority(), ast_set_qos(), ast_sign_bin(), ast_sip_ouraddrfor(), ast_slinfactory_feed(), ast_smoother_read(), ast_sockaddr_hash(), ast_sockaddr_parse(), ast_sockaddr_resolve(), ast_sockaddr_split_hostport(), ast_sockaddr_stringify_fmt(), ast_speech_register(), ast_srtp_add_stream(), ast_srtp_change_source(), ast_srtp_policy_alloc(), ast_srtp_protect(), ast_srtp_unprotect(), ast_stopstream(), ast_str_substitute_variables_full(), ast_streamfile(), ast_taskprocessor_get(), ast_taskprocessor_name(), ast_taskprocessor_push(), ast_tcptls_client_create(), ast_tcptls_client_start(), ast_tcptls_close_session_file(), ast_tcptls_server_read(), ast_tcptls_server_root(), ast_tcptls_server_start(), ast_tcptls_server_write(), ast_thread_inhibit_escalations(), ast_tls_read_conf(), ast_tps_init(), ast_translate_path_steps(), ast_translator_build_path(), ast_udptl_bridge(), ast_udptl_new_with_bindaddr(), ast_udptl_proto_register(), ast_udptl_read(), ast_udptl_write(), ast_ulaw_init(), ast_unload_resource(), ast_unlock_path_flock(), ast_unlock_path_lockfile(), ast_waitfordigit_full(), ast_write(), ast_writefile(), ast_writestream(), ast_xmldoc_load_documentation(), ast_yyerror(), astobj2_init(), async_wait(), asyncgoto_exec(), attempt_thread(), attempt_transfer(), au_seek(), au_trunc(), audiohook_read_frame_both(), auth_credentials(), auth_exec(), auth_http_callback(), authenticate(), authenticate_reply(), authenticate_verify(), autoservice_run(), background_detect_exec(), balance_stack(), base64_helper(), base_encode(), blacklist_read(), blr_ebl(), blr_txt(), board_setup(), bridge_array_add(), bridge_call_thread(), bridge_call_thread_launch(), bridge_exec(), bridge_make_compatible(), bridge_p2p_rtp_write(), build_alias(), build_calendar(), build_callno_limits(), build_cc_interfaces_chanvar(), build_channels(), build_conf(), build_device(), build_event_channel(), build_gateway(), build_mapping(), build_parkinglot(), build_peer(), build_route(), build_user(), builtin_atxfer(), builtin_automixmonitor(), builtin_automonitor(), builtin_blindtransfer(), bump_gains(), cache_get_callno_locked(), calc_cost(), calc_metric(), calculate_far_max_ifp(), calculate_local_max_datagram(), caldav_add_event(), caldav_get_events_between(), caldav_load_calendar(), caldav_request(), caldav_write_event(), calendar_busy_exec(), calendar_devstate_change(), calendar_event_notify(), calendar_event_read(), calendar_join_attendees(), calendar_query_exec(), calendar_query_result_exec(), calendar_write_exec(), callerid_feed(), callerid_feed_jp(), callerid_get_dtmf(), callerid_read(), callerid_write(), callerpres_read(), callerpres_write(), can_ring_entry(), canary_thread(), canmatch(), careful_write(), cb_events(), cc_available(), cc_caller_requested(), cc_esc_publish_handler(), cc_handle_publish_error(), cccancel_exec(), cdata(), cdr_handler(), cdr_merge_vars(), chan_misdn_log(), chan_ringing(), chanavail_exec(), channel_admin_exec(), channel_spy(), channel_to_session(), chanspy_exec(), check_abstract_reference(), check_access(), check_app_args(), check_auth(), check_break(), check_compat(), check_context_names(), check_continue(), check_day(), check_dow(), check_event_type(), check_expr2_input(), check_for_conference(), check_goto(), check_header(), check_header_fmt(), check_includes(), check_key(), check_label(), check_macro_returns(), check_month(), check_password(), check_post(), check_pval_item(), check_rtp_timeout(), check_srcaddr(), check_switch_expr(), check_timerange(), check_user_full(), check_vars(), check_via(), cleanup_connection(), clear_caller(), clear_dialed_interfaces(), clearcbone(), cleardisplay(), clearflag(), cleartimer(), cli_fax_show_session(), cli_fax_show_sessions(), close_call(), close_client(), close_lib(), close_mailbox(), close_mansession_file(), commit_exec(), compile_script(), complete_dialplan_add_extension(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_extension(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), complete_transfer(), compose_func_args(), compress_subclass(), conf_add(), conf_del(), conf_exec(), conf_flush(), conf_queue_dtmf(), conf_run(), confbridge_exec(), config_curl(), config_device(), config_function_read(), config_handler(), config_ldap(), config_line(), config_load(), config_module(), config_odbc(), config_parse_variables(), config_pgsql(), config_text_file_load(), connectedline_read(), connectedline_write(), connection_made(), console_autoanswer(), console_cmd(), console_indicate(), console_request(), console_video_start(), context_merge(), controlplayback_exec(), cops_connect(), cops_gate_cmd(), cops_sendmsg(), copy(), copy_header(), copy_message(), copy_rules(), copy_via_headers(), count_exec(), count_lines(), create_addr(), create_dirpath(), create_dynamic_parkinglot(), create_jb(), create_match_char_tree(), create_new_socket(), create_queue_member(), create_video_frame(), create_vmaccount(), crement_function_read(), crypto_load(), csv_log(), csv_quote(), custom_log(), custom_prepare(), cut_internal(), dahdi_accept_r2_call_exec(), dahdi_answer(), dahdi_ast_cause_to_r2_cause(), dahdi_bridge(), dahdi_call(), dahdi_callwait(), dahdi_confmute(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_digit_begin(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_fake_event(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_link(), dahdi_new(), dahdi_new_pri_nobch_channel(), dahdi_open(), dahdi_pri_error(), dahdi_pri_message(), dahdi_r2_disconnect_call(), dahdi_r2_get_channel_category(), dahdi_r2_get_link(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_init(), dahdi_r2_on_call_offered(), dahdi_r2_on_line_blocked(), dahdi_r2_on_line_idle(), dahdi_r2_on_os_error(), dahdi_r2_on_protocol_error(), dahdi_r2_set_context(), dahdi_r2_write_log(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_ring_phone(), dahdi_send_callrerouting_facility_exec(), dahdi_sendtext(), dahdi_set_hook(), dahdi_setoption(), dahdi_show_channel(), dahdi_status_data_provider_get(), dahdi_test_timer(), dahdi_timer_set_rate(), dahdi_train_ec(), dahdi_translate(), dahdi_version_data_provider_get(), dahdi_write(), dahdi_write_frame(), dahdiras_exec(), dahdiscan_exec(), data_channels_provider_handler(), data_result_generate(), data_result_generate_node(), data_search_generate(), data_structure_compatible(), db_get_common(), dbinit(), deadagi_exec(), dec_init(), del_exec(), delete_old_messages(), destroy_curl(), destroy_odbc(), destroy_pgsql(), destroy_pval_item(), destroy_session(), destroy_trans(), determine_starting_point(), device2chan(), device_state_cb(), devstate_cache_cb(), devstate_change_collector_cb(), devstate_write(), dial_exec_full(), dial_handle_playtones(), dialgroup_read(), dialgroup_write(), dialog_ref_debug(), dictate_exec(), digitcollect(), digitdirect(), directory_exec(), disa_exec(), disable_jack_hook(), disable_t38(), dispatch_thread_handler(), display_last_error(), display_nat_warning(), dns_parse_answer(), dnsmgr_init(), dnsmgr_refresh(), do_autokill(), do_forward(), do_idle_thread(), do_magic_pickup(), do_message(), do_monitor(), do_notify(), do_pktccops(), do_register(), do_reload(), do_say(), do_waiting(), dump_queue(), dump_queue_members(), dundi_answer_entity(), dundi_answer_query(), dundi_discover(), dundi_encrypt(), dundi_error_output(), dundi_exec(), dundi_helper(), dundi_lookup_internal(), dundi_precache_full(), dundi_precache_internal(), dundi_prop_precache(), dundi_query(), dundi_query_read(), dundi_result_read(), dundi_rexmit(), dundi_send(), dundi_xmit(), dundifunc_read(), duplicate_pseudo(), eagi_exec(), ebl_callback(), enable_jack_hook(), encode_open_type(), endelm(), enum_callback(), enum_query_read(), enum_result_read(), event_channel_destroy(), eventhandler(), evt_event_deliver_cb(), ewscal_load_calendar(), exchangecal_get_events_between(), exchangecal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exec(), exec_exec(), execif_exec(), exists(), expand_gosub_args(), ext_cmp_pattern_pos(), extension_matches(), extenspy_exec(), external_rtp_create(), extstate_read(), fax_generator_generate(), fax_rate_str_to_int(), fax_session_new(), fax_session_reserve(), fbuf_append(), feature_exec_app(), feature_request_and_dial(), festival_exec(), fetch_icalendar(), ffmpeg_decode(), ffmpeg_encode(), file2format(), file_read(), file_write(), filename_parse(), filestream_close(), filter(), finalize_content(), find_account(), find_cache(), find_call_locked(), find_conf(), find_conf_realtime(), find_desc(), find_details(), find_engine(), find_line_by_instance(), find_matching_endwhile(), find_or_create(), find_or_create_details(), find_pval_goto_item(), find_queue_by_name_rt(), find_sdp(), find_speeddial_by_instance(), find_subchannel_and_lock(), find_subchannel_by_instance_reference(), find_subchannel_by_name(), find_subchannel_by_reference(), find_table(), find_transaction(), find_transcoders(), findmeexec(), finish_bookmark(), flash_exec(), fn_wrapper(), forkcdr_exec(), forward_message(), frame_trace_helper(), framein(), func_args(), func_channel_read(), func_channel_write(), func_channel_write_real(), func_channels_read(), func_check_sipdomain(), func_header_read(), func_inheritance_write(), func_mchan_read(), func_mchan_write(), func_mute_write(), function_agent(), function_db_delete(), function_db_exists(), function_db_read(), function_db_write(), function_enum(), function_eval(), function_eval2(), function_fieldnum_helper(), function_realtime_read(), function_realtime_readdestroy(), function_realtime_store(), function_realtime_write(), function_sipchaninfo_read(), function_sippeer(), function_txtcidname(), g719read(), g719seek(), g719trunc(), g719write(), g723_len(), g723_read(), g723_trunc(), g723_write(), g726_read(), g726_write(), g729_read(), g729_trunc(), g729_write(), generic_execute(), generic_fax_exec(), generic_http_callback(), generic_prepare(), get_agi_cmd(), get_alarms(), get_also_info(), get_button_template(), get_calleridname(), get_canmatch_exten(), get_comma(), get_crypto_attrib(), get_destination(), get_domain(), get_ewscal_ids_for(), get_in_brackets_const(), get_in_brackets_full(), get_input(), get_ip_and_port_from_sdp(), get_lock(), get_member_penalty(), get_name_and_number(), get_params(), 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(), gosub_run(), gosubif_exec(), goto_exten(), goto_line(), goto_line_rel(), group_count_function_read(), group_function_read(), group_function_write(), gsm_read(), gsm_seek(), gsm_tell(), gsm_trunc(), gsm_write(), gsmtolin_framein(), gtalk_alloc(), gtalk_call(), gtalk_create_candidates(), gtalk_create_member(), gtalk_free_pvt(), gtalk_handle_dtmf(), gtalk_hangup_farend(), gtalk_invite(), gtalk_is_accepted(), gtalk_is_answered(), gtalk_load_config(), gtalk_new(), gtalk_newcall(), gtalk_parser(), gtalk_request(), gtalk_ringing_ack(), gtalk_sendhtml(), gtalk_sendtext(), gtalk_show_channels(), gtalk_update_externip(), gtalk_update_stun(), gtalk_write(), gui_init(), h261_decap(), h263_decap(), h263_encap(), h263_open(), h263_read(), h263_trunc(), h263_write(), h263p_decap(), h263p_encap(), h264_decap(), h264_encap(), h264_open(), h264_read(), h264_trunc(), h264_write(), handle_alarms(), handle_call_token(), handle_callforward_button(), handle_capabilities_res_message(), handle_cc_subscribe(), handle_clear_alarms(), handle_cli_h323_cycle_gk(), handle_cli_indication_add(), handle_cli_indication_remove(), handle_command_response(), handle_common_options(), handle_devstate_change(), handle_enbloc_call_message(), handle_error(), handle_exec(), handle_getoption(), handle_gosub(), handle_hd_hf(), handle_incoming(), handle_init_event(), handle_input(), handle_invite_replaces(), handle_jack_audio(), handle_keypad_button_message(), handle_message(), handle_mousedown(), handle_offhook_message(), handle_onhook_message(), handle_open_receive_channel_ack_message(), handle_options(), handle_playtones(), handle_pri_service_generic(), handle_recordfile(), handle_register_message(), handle_request(), handle_request_bye(), handle_request_info(), handle_request_invite(), handle_request_invite_st(), handle_request_notify(), handle_request_options(), handle_request_publish(), handle_request_register(), handle_request_subscribe(), handle_response(), handle_response_info(), handle_response_invite(), handle_response_message(), handle_response_notify(), handle_response_peerpoke(), handle_response_publish(), handle_response_refer(), handle_response_register(), handle_response_subscribe(), handle_response_update(), handle_soft_key_event_message(), handle_stimulus_message(), handle_t38_options(), handle_tcptls_connection(), handle_transfer_button(), handle_updates(), HandleCallIncoming(), HandleCallOutgoing(), hash_read(), hashkeys_read(), hashkeys_read2(), hint_read(), http_post_callback(), httpd_helper_thread(), iax2_ack_registry(), iax2_bridge(), iax2_call(), iax2_canmatch(), iax2_devicestate(), iax2_do_register(), iax2_dup_variable_datastore(), iax2_exec(), iax2_exists(), iax2_fixup(), iax2_hangup(), iax2_matchmore(), iax2_poke_peer(), iax2_prov_app(), iax2_register(), iax2_request(), iax2_send(), iax2_trunk_queue(), iax_error_output(), iax_frame_wrap(), iax_park_thread(), iax_process_template(), iax_provision_reload(), iax_provision_version(), iax_template_parse(), ical_load_calendar(), icalendar_add_event(), icalendar_update_events(), ices_exec(), icesencode(), iconv_read(), iftime(), ilbc_read(), ilbc_trunc(), ilbc_write(), ilbctolin_framein(), import_ch(), in_band_indication(), increase_call_count(), init_acf_query(), init_app_class(), init_jack_data(), init_req(), init_resp(), init_timing_thread(), initialize_cc_max_requests(), initialize_udptl(), inotify_daemon(), inprocess_count(), insert_penaltychange(), inspect_module(), internal_ao2_ref(), INTERNAL_OBJ(), invent_message(), is_valid_dtmf(), isAnsweringMachine(), isexten_function_read(), ivr_dispatch(), jack_hook_callback(), jack_hook_write(), jb_error_output(), jb_get_and_deliver(), jb_warning_output(), jingle_alloc(), jingle_call(), jingle_create_candidates(), jingle_create_member(), jingle_digit(), jingle_free_pvt(), jingle_handle_dtmf(), jingle_hangup_farend(), jingle_indicate(), jingle_is_answered(), jingle_load_config(), jingle_new(), jingle_newcall(), jingle_parser(), jingle_request(), jingle_sendhtml(), jingle_sendtext(), jingle_show_channels(), jingle_write(), join_conference_bridge(), join_queue(), jpeg_read_image(), jpeg_write_image(), key_call(), Keyfavorite(), keypad_cfg_read(), keypad_pick_up(), keypad_setup(), keypad_toggle(), kp_match_area(), kqueue_timer_open(), 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(), lintoulaw(), listener(), listfilter(), load_column_config(), load_config(), load_config_meetme(), load_dynamic_module(), load_indications(), load_module(), load_modules(), load_moh_classes(), load_odbc_config(), load_or_reload_lua_stuff(), load_pbx(), load_pktccops_config(), load_resource(), load_resource_list(), load_tech_calendars(), load_values_config(), local_alloc(), local_answer(), local_ast_moh_cleanup(), local_ast_moh_start(), local_call(), local_devicestate(), local_fixup(), local_new(), local_read(), local_setoption(), local_write(), log_exec(), log_jack_status(), logger_queue_init(), logger_queue_restart(), login_exec(), lpc10tolin_framein(), lua_find_extension(), lua_get_state(), macroif_exec(), main(), make_email_file(), make_number(), make_str(), make_trunk(), manage_parked_call(), manage_parkinglot(), manager_log(), manager_modulecheck(), manager_show_dialplan_helper(), manager_sipnotify(), map_video_codec(), masq_park_call(), matchmore(), math(), md5(), measurenoise(), meetme_menu_admin_extended(), meetmemute(), memcpy_decrypt(), memcpy_encrypt(), message_template_build(), message_template_parse_emailbody(), message_template_parse_filebody(), mfcr2_monitor(), mgcp_call(), mgcp_fixup(), mgcp_indicate(), mgcp_new(), mgcp_reload(), mgcp_request(), mgcp_rtp_read(), mgcp_senddigit_begin(), mgcp_senddigit_end(), mgcp_ss(), mgcp_write(), mgcpsock_read(), milliwatt_generate(), 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_answer(), misdn_bridge(), 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_new(), misdn_request(), misdn_send_text(), misdn_set_opt_exec(), misdn_write(), mixmonitor_exec(), mixmonitor_thread(), mkif(), mkintf(), moh_alloc(), moh_class_destructor(), moh_files_alloc(), moh_files_generator(), moh_files_release(), moh_generate(), moh_release(), moh_scan_files(), mohalloc(), monmp3thread(), morsecode_exec(), mp3_exec(), mp3play(), mpeg4_decode(), mssql_connect(), multicast_rtp_write(), multicast_send_control_packet(), multiplexed_bridge_create(), multiplexed_nudge(), multiplexed_thread_function(), mute_add_audiohook(), mute_fragment(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), mwi_sub_event_cb(), mwi_thread(), mwi_unsub_event_cb(), my_all_subchannels_hungup(), my_callwait(), my_dial_digits(), my_distinctive_ring(), my_dsp_set_digitmode(), my_get_callerid(), my_handle_dchan_exception(), my_handle_dtmf(), my_handle_notify_message(), my_is_dialing(), my_is_off_hook(), my_new_pri_ast_channel(), my_pri_dial_digits(), my_pri_ss7_open_media(), my_send_callerid(), my_set_cadence(), my_set_waitingfordt(), my_start_cid_detect(), my_wink(), my_x_handler(), nbs_alloc(), nbs_call(), nbs_hangup(), nbs_new(), nbs_request(), nbs_xwrite(), NBScat_exec(), NBScatplay(), netconsole(), new_find_extension(), notify_new_message(), odbc_load_module(), odbc_log(), odbc_obj_connect(), odbc_obj_disconnect(), odbc_register_class(), odbc_release_obj2(), ogg_vorbis_open(), ogg_vorbis_read(), ogg_vorbis_rewrite(), ogg_vorbis_seek(), ogg_vorbis_trunc(), ogg_vorbis_write(), oh323_alloc(), oh323_call(), oh323_digit_begin(), oh323_digit_end(), oh323_fixup(), oh323_hangup(), oh323_indicate(), oh323_read(), oh323_request(), oh323_rtp_read(), oh323_set_rtp_peer(), oh323_write(), old_milliwatt_exec(), onevent(), op_colon(), op_div(), op_eq(), op_eqtilde(), op_func(), op_minus(), op_negate(), op_plus(), op_rem(), op_times(), open_mailbox(), open_stream(), OpenHistory(), 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(), osplookup_exec(), ospnext_exec(), oss_indicate(), oss_new(), oss_request(), page_exec(), park_call_exec(), park_call_full(), park_space_reserve(), parkandannounce_exec(), parked_call_exec(), parkinglot_activate(), parkinglot_activate_cb(), parkinglot_config_read(), parkinglot_is_marked_cb(), parse(), parse_apps(), parse_args(), parse_buffers_policy(), parse_config(), parse_empty_options(), parse_events(), parse_gain_value(), parse_ie(), parse_minse(), parse_moved_contact(), parse_naptr(), parse_options(), parse_register_contact(), parse_request(), parse_session_expires(), parse_srv(), parse_tag(), parse_tone_zone(), parse_via(), ParseBookmark(), parsing(), party_id_build_data(), party_id_write(), party_name_build_data(), party_name_write(), party_number_build_data(), party_number_write(), 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_saydate(), pbx_builtin_saynumber(), pbx_builtin_saytime(), pbx_builtin_serialize_variables(), pbx_builtin_setvar(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_exec(), pbx_extension_helper(), pbx_find_extension(), pbx_live_dangerously(), pbx_load_config(), pbx_load_module(), pbx_load_users(), pbx_parseable_goto(), pbx_substitute_variables_helper_full(), pcm_read(), pcm_seek(), pcm_trunc(), pcm_write(), peek_read(), peer_iphash_cb(), peer_set_srcaddr(), peercnt_add(), pgsql_log(), pgsql_reconnect(), phase_e_handler(), phone_call(), phone_digit_end(), phone_exception(), phone_hangup(), phone_indicate(), phone_mini_packet(), phone_new(), phone_read(), phone_request(), phone_setup(), phone_write(), phone_write_buf(), pickup_by_exten(), pickup_by_group(), pickup_exec(), pickupchan_exec(), pidf_validate_presence(), pidf_validate_tuple(), pitchshift_helper(), pktccops_add_ippool(), play_message(), play_message_category(), play_message_datetime(), play_message_on_chan(), play_moh_exec(), play_record_review(), playback_exec(), playtones_alloc(), playtones_generator(), policy_set_suite(), pop_exec(), post_raw(), powerof(), pqm_exec(), precache_trans(), precache_transactions(), prep_email_sub_vars(), prepare_pri(), pri_active_dchan_index(), pri_check_restart(), pri_create_spanmap(), pri_create_trunkgroup(), pri_dchannel(), pri_find_dchan(), pri_find_fixup_principle(), pri_fixup_principle(), pri_resolve_span(), pri_send_callrerouting_facility_exec(), pri_ss_thread(), privacy_exec(), private_enum_init(), proc_422_rsp(), proc_session_timer(), process_applicationmap_line(), process_ast_dsp(), process_cn_rfc3389(), process_config(), process_crypto(), process_dahdi(), process_dtmf_rfc2833(), process_echocancel(), process_message_callback(), process_opcode(), process_output(), process_request(), process_returncode(), process_sdp(), process_sdp_a_audio(), process_sdp_c(), process_sdp_o(), process_text_line(), process_via(), profile_set_param(), progress(), proxy_from_config(), proxy_update(), pthread_timer_set_rate(), purge_old_messages(), pvalCheckType(), pvalGlobalsAddStatement(), pvalTopLevAddObject(), pw_cb(), ql_exec(), queue_exec(), queue_file(), queue_function_exists(), queue_function_memberpenalty_read(), queue_function_memberpenalty_write(), queue_function_qac(), queue_function_qac_dep(), queue_function_queuememberlist(), queue_function_queuememberpaused(), queue_function_queuememberstatus(), queue_function_queuewaitingcount(), queue_function_var(), queue_reload_request(), queue_set_param(), queue_transfer_fixup(), queue_voice_frame(), quote(), radius_log(), rcv_mac_addr(), rcvfax_exec(), read_agent_config(), read_config(), read_config_maps(), read_exec(), read_password_from_file(), readexten_exec(), readfile_exec(), readmimefile(), realtime_curl(), realtime_destroy_handler(), realtime_directory(), realtime_exec(), realtime_handler(), realtime_ldap_base_ap(), realtime_multi_curl(), realtime_multi_handler(), realtime_multi_ldap(), realtime_multi_odbc(), realtime_multi_pgsql(), realtime_odbc(), realtime_peer(), realtime_peer_by_addr(), realtime_peer_get_sippeer_helper(), realtime_pgsql(), realtime_require_handler(), realtime_store_handler(), realtime_update2_handler(), realtime_update_handler(), realtime_user(), realtimefield_read(), receive_digit(), receive_message(), receivefax_exec(), receivefax_t38_init(), record_exec(), redirecting_read(), redirecting_write(), refresh_list(), reg_source_db(), regex(), register_exten(), register_group(), register_group_feature(), register_peer_exten(), register_verify(), registry_rerequest(), reload(), reload_config(), reload_firmware(), reload_followme(), reload_module(), reload_queue_members(), reload_queue_rules(), reload_queues(), reload_single_member(), reload_single_queue(), remote_bridge_loop(), remove_by_peercallno(), remove_by_transfercallno(), remove_from_queue(), replace(), replace_callno(), reply_digest(), require_curl(), require_odbc(), require_pgsql(), res_srtp_init(), res_srtp_new(), resample_frame(), reset_conf(), resolve_first(), respprep(), restart_monitor(), restart_pktc_thread(), restore_conference(), restore_gains(), retrans_pkt(), retrydial_exec(), return_exec(), revert_fax_buffers(), ring_entry(), rollback_exec(), rotate_file(), rqm_exec(), rt_handle_member_record(), rtp_reload(), run_agi(), run_externnotify(), run_ras(), s_streamwait3(), safe_append(), save_conference(), save_to_folder(), say_date(), say_date_with_format(), say_datetime(), say_datetime_from_now(), say_init_mode(), say_number_full(), say_time(), saycountedadj_exec(), saycountednoun_exec(), scan_service(), scan_thread(), schedule(), scheduled_destroy(), sdl_setup(), sdp_crypto_activate(), sdp_crypto_offer(), sdp_crypto_process(), sdp_crypto_setup(), select_entry(), send_callerid(), send_client(), send_delay(), send_dtmf(), send_ews_request_and_parse(), send_request(), send_retransmit(), send_select_output(), send_tone_burst(), send_waveform_to_channel(), send_waveform_to_fd(), senddtmf_exec(), sendfax_exec(), sendfax_t38_init(), sendimage_exec(), sendmail(), sendpage(), sendtext_exec(), sendurl_exec(), session_do(), set(), set_active(), set_bridge_features_on_config(), set_config(), set_crypto_policy(), set_destination(), set_fax_t38_caps(), set_format(), set_full_cmd(), set_insecure_flags(), set_member_paused(), set_member_penalty(), set_moh_exec(), set_state(), set_ulimit(), set_var(), setcallerid_pres_exec(), setflag(), setformat(), setup_dahdi_int(), setup_filestack(), setup_incoming_call(), setup_privacy_args(), setup_rtp_connection(), setup_srtp(), setup_stunaddr(), setup_transfer_datastore(), sha1(), shared_read(), shared_write(), shell_helper(), shift_pop(), show_chanstats_cb(), show_dialplan_helper(), showdisplay(), showkeys(), sig_pri_call(), sig_pri_digit_begin(), sig_pri_get_orig_dialstring(), sig_pri_handle_hold(), sig_pri_handle_retrieve(), sig_pri_handle_subcmds(), sig_pri_hangup(), sig_pri_indicate(), sig_pri_make_cc_dialstring(), sig_pri_request(), sig_pri_send_aoce_termination_request(), sig_pri_start_pri(), signal_pipe(), sip_acf_channel_read(), sip_addheader(), sip_call(), sip_cc_monitor_suspend(), sip_check_authtimeout(), sip_cli_notify(), sip_dtmfmode(), sip_dump_history(), sip_fixup(), sip_hangup(), sip_indicate(), sip_new(), sip_park_thread(), sip_parse_host(), sip_parse_register_line(), sip_pidf_validate(), sip_poke_noanswer(), sip_poke_peer(), sip_queryoption(), sip_read(), sip_reg_timeout(), sip_register(), sip_reload(), sip_request_call(), sip_reregister(), sip_scheddestroy(), sip_sendhtml(), sip_setoption(), sip_sipredirect(), sip_st_alloc(), sip_subscribe_mwi(), sip_tcptls_read(), sip_tcptls_write(), sip_threadinfo_create(), sip_write(), sipsock_read(), siren14read(), siren14seek(), siren14trunc(), siren14write(), siren7read(), siren7seek(), siren7trunc(), siren7write(), skel_exec(), skinny_call(), skinny_fixup(), skinny_hangup(), skinny_hold(), skinny_indicate(), skinny_new(), skinny_newcall(), skinny_register(), skinny_req_parse(), skinny_request(), skinny_ss(), skinny_transfer(), skinny_unhold(), skinny_write(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_load_config(), sla_queue_event_conf(), sla_state(), sla_station_exec(), sla_trunk_exec(), slinear_read(), slinear_seek(), slinear_trunc(), slinear_write(), smdi_load(), smdi_msg_read(), smdi_msg_retrieve_read(), smdi_read(), smdi_toggle_mwi(), smoother_frame_feed(), sms_exec(), sms_generate(), sms_handleincoming(), sms_log(), sms_messagerx2(), sms_process(), sms_readfile(), sms_writefile(), sndfax_exec(), socket_process(), socket_process_meta(), socket_read(), softhangup_exec(), softmix_bridge_thread(), soundcard_init(), soundcard_writeframe(), span_message(), spandsp_fax_new(), spandsp_fax_read(), spandsp_fax_start(), spandsp_fax_write(), spandsp_log(), spandsp_modems(), spawn_dp_lookup(), spawn_mp3(), speex_get_wb_sz_at(), speex_read(), speex_samples(), speex_write(), speextolin_framein(), spy_generate(), sqlite_log(), srv_datastore_setup(), srv_query_read(), srv_result_read(), ssl_lock(), ssl_verify(), stackpeek_read(), start_moh_exec(), start_monitor_exec(), start_network_thread(), start_poll_thread(), start_rtp(), start_session_timer(), start_spying(), start_stream(), startelm(), starttimer(), store_boost(), store_by_peercallno(), store_by_transfercallno(), store_config(), store_config_core(), store_curl(), store_digit(), store_mixer(), store_odbc(), store_pgsql(), store_tone_zone_ring_cadence(), str_to_agent_policy(), str_to_monitor_policy(), stun_monitor_request(), stun_start_monitor(), stun_stop_monitor(), subscribe_event_destroy(), subscript(), substitute_escapes(), swap_subs(), switch(), switch_video_out(), sysinfo_helper(), syslog_log(), system_exec_helper(), t38_tx_packet_handler(), tcptls_stream_close(), tdd_feed(), tdd_new(), tds_error_handler(), tds_load_module(), tds_log(), tds_message_handler(), testclient_exec(), testserver_exec(), thread_inhibits_escalations(), timed_read(), timeout_read(), timeout_write(), timerfd_timer_ack(), timerfd_timer_close(), timerfd_timer_disable_continuous(), timerfd_timer_enable_continuous(), timerfd_timer_get_event(), timerfd_timer_open(), timerfd_timer_set_rate(), timezone_add(), timing_read(), to_number(), to_string(), tonepair_alloc(), tonepair_generator(), tps_processing_function(), tps_taskprocessor_destroy(), tps_taskprocessor_pop(), transfer_exec(), TransferCallStep1(), transmit(), transmit_audio(), transmit_cc_notify(), transmit_invite(), transmit_refer(), transmit_register(), transmit_request_with_auth(), transmit_response(), transmit_response_using_temp(), transmit_response_with_auth(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), transmit_state_notify(), transmit_t38(), try_calling(), try_firmware(), try_load_key(), try_suggested_sip_codec(), try_transfer(), tryexec_exec(), turn_on_off(), tvfix(), txt_callback(), unalloc_sub(), unistim_answer(), unistim_call(), unistim_do_senddigit(), unistim_fixup(), unistim_hangup(), unistim_indicate(), unistim_new(), unistim_request(), unistim_rtp_read(), unistim_senddigit_end(), unistim_sendtext(), unistim_set_rtp_peer(), unistim_ss(), unistim_write(), unistimsock_read(), unload_module(), unlock_read(), unref_mansession(), unregister_exten(), unshift_push(), unsignal_pipe(), update2_curl(), update2_ldap(), update2_odbc(), update2_pgsql(), update2_prepare(), update_call_counter(), update_common_options(), update_config(), update_curl(), update_header(), update_key(), update_ldap(), update_modem_bits(), update_odbc(), update_pgsql(), update_registry(), update_scoreboard(), update_stats(), upqm_exec(), usage_context_add_ramp(), usage_context_add_spaces(), used_blocks(), userevent_exec(), verbose_exec(), vm_authenticate(), vm_box_exists(), vm_change_password(), vm_check_password_shell(), vm_exec(), vm_execmain(), vm_intro(), vm_newuser(), vm_options(), vmsayname_exec(), volume_write(), vox_read(), vox_seek(), vox_trunc(), vox_write(), wait_file(), wait_file2(), wait_for_answer(), wait_for_output(), wait_for_winner(), wait_moh_exec(), waitfor_exec(), waitforring_exec(), waitstream_core(), waituntil_exec(), wav_close(), wav_read(), wav_seek(), wav_trunc(), wav_write(), while(), write_header(), write_history(), write_password_to_file(), write_stream(), writefile(), xmldoc_build_field(), xmldoc_get_syntax_fun(), xmldoc_string_cleanup(), xmldoc_string_wrap(), and yyerror().

1208 {
1209  struct logmsg *logmsg = NULL;
1210  struct ast_str *buf = NULL;
1211  struct ast_tm tm;
1212  struct timeval now = ast_tvnow();
1213  int res = 0;
1214  va_list ap;
1215  char datestring[256];
1216 
1218  return;
1219 
1220  if (level != __LOG_VERBOSE && AST_RWLIST_EMPTY(&logchannels)) {
1221  /*
1222  * we don't have the logger chain configured yet,
1223  * so just log to stdout
1224  */
1225  int result;
1226  va_start(ap, fmt);
1227  result = ast_str_set_va(&buf, BUFSIZ, fmt, ap); /* XXX BUFSIZ ? */
1228  va_end(ap);
1229  if (result != AST_DYNSTR_BUILD_FAILED) {
1231  fputs(ast_str_buffer(buf), stdout);
1232  }
1233  return;
1234  }
1235 
1236  /* don't display LOG_DEBUG messages unless option_verbose _or_ option_debug
1237  are non-zero; LOG_DEBUG messages can still be displayed if option_debug
1238  is zero, if option_verbose is non-zero (this allows for 'level zero'
1239  LOG_DEBUG messages to be displayed, if the logmask on any channel
1240  allows it)
1241  */
1242  if (!option_verbose && !option_debug && (level == __LOG_DEBUG))
1243  return;
1244 
1245  /* Ignore anything that never gets logged anywhere */
1246  if (level != __LOG_VERBOSE && !(global_logmask & (1 << level)))
1247  return;
1248 
1249  /* Build string */
1250  va_start(ap, fmt);
1251  res = ast_str_set_va(&buf, BUFSIZ, fmt, ap);
1252  va_end(ap);
1253 
1254  /* If the build failed, then abort and free this structure */
1255  if (res == AST_DYNSTR_BUILD_FAILED)
1256  return;
1257 
1258  /* Create a new logging message */
1259  if (!(logmsg = ast_calloc_with_stringfields(1, struct logmsg, res + 128)))
1260  return;
1261 
1262  /* Copy string over */
1264 
1265  /* Set type */
1266  if (level == __LOG_VERBOSE) {
1267  logmsg->type = LOGMSG_VERBOSE;
1268  } else {
1269  logmsg->type = LOGMSG_NORMAL;
1270  }
1271 
1272  /* Create our date/time */
1273  ast_localtime(&now, &tm, NULL);
1274  ast_strftime(datestring, sizeof(datestring), dateformat, &tm);
1275  ast_string_field_set(logmsg, date, datestring);
1276 
1277  /* Copy over data */
1278  logmsg->level = level;
1279  logmsg->line = line;
1280  ast_string_field_set(logmsg, level_name, levels[level]);
1281  ast_string_field_set(logmsg, file, file);
1282  ast_string_field_set(logmsg, function, function);
1283  logmsg->process_id = (long) ast_get_tid();
1284 
1285  /* If the logger thread is active, append it to the tail end of the list - otherwise skip that step */
1286  if (logthread != AST_PTHREADT_NULL) {
1288  if (close_logger_thread) {
1289  /* Logger is either closing or closed. We cannot log this message. */
1290  ast_free(logmsg);
1291  } else {
1292  AST_LIST_INSERT_TAIL(&logmsgs, logmsg, list);
1294  }
1296  } else {
1297  logger_print_normal(logmsg);
1298  ast_free(logmsg);
1299  }
1300 }
static void logger_print_normal(struct logmsg *logmsg)
Print a normal log message to the channels.
Definition: logger.c:971
int line
Definition: logger.c:130
#define AST_LIST_LOCK(head)
Locks a list.
Definition: linkedlists.h:39
#define __LOG_DEBUG
Definition: logger.h:121
static unsigned int global_logmask
Definition: logger.c:75
static pthread_t logthread
Definition: logger.c:143
int option_debug
Definition: asterisk.c:182
#define AST_LIST_UNLOCK(head)
Attempts to unlock a list.
Definition: linkedlists.h:139
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Definition: strings.h:497
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:1570
#define LOG_BUF_INIT_SIZE
Definition: logger.c:210
int ast_str_set_va(struct ast_str **buf, ssize_t max_len, const char *fmt, va_list ap)
Set a dynamic string from a va_list.
Definition: strings.h:792
int option_verbose
Definition: asterisk.c:181
#define ast_calloc_with_stringfields(n, type, size)
Allocate a structure with embedded stringfields in a single allocation.
Definition: stringfields.h:275
static char * levels[NUMLOGLEVELS]
Logging channels used in the Asterisk logging system.
Definition: logger.c:160
struct timeval ast_tvnow(void)
Returns current timeval. Meant to replace calls to gettimeofday().
Definition: time.h:142
#define ast_cond_signal(cond)
Definition: lock.h:169
static struct ast_threadstorage log_buf
Definition: logger.c:209
Definition: logger.c:127
int ast_get_tid(void)
Get current thread ID.
Definition: utils.c:2346
#define AST_PTHREADT_NULL
Definition: lock.h:65
void term_filter_escapes(char *line)
Definition: term.c:338
int level
Definition: logger.c:129
#define AST_RWLIST_EMPTY
Definition: linkedlists.h:451
#define AST_LIST_INSERT_TAIL(head, elm, field)
Appends a list entry to the tail of a list.
Definition: linkedlists.h:716
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Definition: strings.h:364
#define ast_free(a)
Definition: astmm.h:97
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:2351
enum logmsgtypes type
Definition: logger.c:128
static char dateformat[256]
Definition: logger.c:69
#define __LOG_VERBOSE
Definition: logger.h:165
long process_id
Definition: logger.c:131
struct ast_str * ast_str_thread_get(struct ast_threadstorage *ts, size_t init_len)
Retrieve a thread locally stored dynamic string.
Definition: strings.h:669
static int close_logger_thread
Definition: logger.c:145
static ast_cond_t logcond
Definition: logger.c:144
#define ast_string_field_set(x, field, data)
Set a field to a simple string value.
Definition: stringfields.h:344
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

Definition at line 1627 of file logger.c.

References ARRAY_LEN, ast_debug, ast_log(), AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_strdup, available(), levels, LOG_WARNING, and update_logchannels().

Referenced by ast_cc_init(), and load_module().

1628 {
1629  unsigned int level;
1630  unsigned int available = 0;
1631 
1633 
1634  for (level = 0; level < ARRAY_LEN(levels); level++) {
1635  if ((level >= 16) && !available && !levels[level]) {
1636  available = level;
1637  continue;
1638  }
1639 
1640  if (levels[level] && !strcasecmp(levels[level], name)) {
1642  "Unable to register dynamic logger level '%s': a standard logger level uses that name.\n",
1643  name);
1645 
1646  return -1;
1647  }
1648  }
1649 
1650  if (!available) {
1652  "Unable to register dynamic logger level '%s'; maximum number of levels registered.\n",
1653  name);
1655 
1656  return -1;
1657  }
1658 
1660 
1662 
1663  ast_debug(1, "Registered dynamic logger level '%s' with index %u.\n", name, available);
1664 
1666 
1667  return available;
1668 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
#define ast_strdup(a)
Definition: astmm.h:109
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
Definition: linkedlists.h:51
#define LOG_WARNING
Definition: logger.h:144
#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:160
static void update_logchannels(void)
Definition: logger.c:1611
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:236
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:1207
static const char name[]
static int available(struct dahdi_pvt **pvt, int is_specific_channel)
Definition: chan_dahdi.c:13288
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

Definition at line 1670 of file logger.c.

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

Referenced by cc_shutdown(), load_module(), and unload_module().

1671 {
1672  unsigned int found = 0;
1673  unsigned int x;
1674 
1676 
1677  for (x = 16; x < ARRAY_LEN(levels); x++) {
1678  if (!levels[x]) {
1679  continue;
1680  }
1681 
1682  if (strcasecmp(levels[x], name)) {
1683  continue;
1684  }
1685 
1686  found = 1;
1687  break;
1688  }
1689 
1690  if (found) {
1691  /* take this level out of the global_logmask, to ensure that no new log messages
1692  * will be queued for it
1693  */
1694 
1695  global_logmask &= ~(1 << x);
1696 
1697  ast_free(levels[x]);
1698  levels[x] = NULL;
1700 
1701  ast_debug(1, "Unregistered dynamic logger level '%s' with index %u.\n", name, x);
1702 
1704  } else {
1706  }
1707 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static unsigned int global_logmask
Definition: logger.c:75
#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:160
static void update_logchannels(void)
Definition: logger.c:1611
#define ast_debug(level,...)
Log a DEBUG message.
Definition: logger.h:236
static const char name[]
#define ast_free(a)
Definition: astmm.h:97
void ast_queue_log ( const char *  queuename,
const char *  callid,
const char *  agent,
const char *  event,
const char *  fmt,
  ... 
)

Definition at line 479 of file logger.c.

References args, AST_APP_ARG, ast_check_realtime(), AST_DECLARE_APP_ARGS, ast_localtime(), AST_NONSTANDARD_APP_ARGS, ast_queue_log(), ast_realtime_require_field(), AST_RWLIST_RDLOCK, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_store_realtime(), ast_strftime(), ast_tvnow(), logfiles, logger_queue_init(), qlog, RQ_CHAR, S_OR, and SENTINEL.

Referenced by aqm_exec(), ast_queue_log(), find_queue_by_name_rt(), handle_queue_add_member(), handle_queue_remove_member(), login_exec(), manager_add_queue_member(), manager_queue_log_custom(), manager_remove_queue_member(), ql_exec(), queue_exec(), queue_transfer_fixup(), reload_logger(), rna(), rqm_exec(), rt_handle_member_record(), set_member_paused(), set_member_penalty(), try_calling(), update_realtime_members(), and wait_our_turn().

480 {
481  va_list ap;
482  struct timeval tv;
483  struct ast_tm tm;
484  char qlog_msg[8192];
485  int qlog_len;
486  char time_str[30];
487 
488  if (!logger_initialized) {
489  /* You are too early. We are not open yet! */
490  return;
491  }
492  if (!queuelog_init) {
494  if (!queuelog_init) {
495  /*
496  * We have delayed initializing the queue logging system so
497  * preloaded realtime modules can get up. We must initialize
498  * now since someone is trying to log something.
499  */
501  queuelog_init = 1;
503  ast_queue_log("NONE", "NONE", "NONE", "QUEUESTART", "%s", "");
504  } else {
506  }
507  }
508 
509  if (ast_check_realtime("queue_log")) {
510  tv = ast_tvnow();
511  ast_localtime(&tv, &tm, NULL);
512  ast_strftime(time_str, sizeof(time_str), "%F %T.%6q", &tm);
513  va_start(ap, fmt);
514  vsnprintf(qlog_msg, sizeof(qlog_msg), fmt, ap);
515  va_end(ap);
516  if (logfiles.queue_adaptive_realtime) {
518  AST_APP_ARG(data)[5];
519  );
520  AST_NONSTANDARD_APP_ARGS(args, qlog_msg, '|');
521  /* Ensure fields are large enough to receive data */
522  ast_realtime_require_field("queue_log",
523  "data1", RQ_CHAR, strlen(S_OR(args.data[0], "")),
524  "data2", RQ_CHAR, strlen(S_OR(args.data[1], "")),
525  "data3", RQ_CHAR, strlen(S_OR(args.data[2], "")),
526  "data4", RQ_CHAR, strlen(S_OR(args.data[3], "")),
527  "data5", RQ_CHAR, strlen(S_OR(args.data[4], "")),
528  SENTINEL);
529 
530  /* Store the log */
531  ast_store_realtime("queue_log", "time", time_str,
532  "callid", callid,
533  "queuename", queuename,
534  "agent", agent,
535  "event", event,
536  "data1", S_OR(args.data[0], ""),
537  "data2", S_OR(args.data[1], ""),
538  "data3", S_OR(args.data[2], ""),
539  "data4", S_OR(args.data[3], ""),
540  "data5", S_OR(args.data[4], ""),
541  SENTINEL);
542  } else {
543  ast_store_realtime("queue_log", "time", time_str,
544  "callid", callid,
545  "queuename", queuename,
546  "agent", agent,
547  "event", event,
548  "data", qlog_msg,
549  SENTINEL);
550  }
551 
552  if (!logfiles.queue_log_to_file) {
553  return;
554  }
555  }
556 
557  if (qlog) {
558  va_start(ap, fmt);
559  qlog_len = snprintf(qlog_msg, sizeof(qlog_msg), "%ld|%s|%s|%s|%s|", (long)time(NULL), callid, queuename, agent, event);
560  vsnprintf(qlog_msg + qlog_len, sizeof(qlog_msg) - qlog_len, fmt, ap);
561  va_end(ap);
563  if (qlog) {
564  fprintf(qlog, "%s\n", qlog_msg);
565  fflush(qlog);
566  }
568  }
569 }
int ast_store_realtime(const char *family,...) attribute_sentinel
Create realtime configuration.
Definition: config.c:2726
static int queuelog_init
Definition: logger.c:76
#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
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:1570
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application&#39;s arguments.
Definition: app.h:572
void ast_queue_log(const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt,...)
Definition: logger.c:479
struct timeval ast_tvnow(void)
Returns current timeval. Meant to replace calls to gettimeofday().
Definition: time.h:142
static FILE * qlog
Definition: logger.c:147
static struct @282 logfiles
static int logger_initialized
Definition: logger.c:77
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
Definition: linkedlists.h:77
Definition: config.h:68
#define SENTINEL
Definition: compiler.h:75
static struct @350 args
static void logger_queue_init(void)
Definition: logger.c:1103
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:2351
int ast_realtime_require_field(const char *family,...) attribute_sentinel
Inform realtime what fields that may be stored.
Definition: config.c:2606
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one...
Definition: strings.h:77
struct timeval tv
#define AST_APP_ARG(name)
Define an application argument.
Definition: app.h:555
#define AST_NONSTANDARD_APP_ARGS(args, parse, sep)
Performs the &#39;nonstandard&#39; argument separation process for an application.
Definition: app.h:619
int ast_check_realtime(const char *family)
Check if realtime engine is configured for family.
Definition: config.c:2587
int ast_register_verbose ( void(*)(const char *string verboser)

Definition at line 1577 of file logger.c.

References ast_malloc, AST_RWLIST_INSERT_HEAD, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, logchannel::list, and verb::verboser.

Referenced by ast_makesocket(), and print_intro_message().

1578 {
1579  struct verb *verb;
1580 
1581  if (!(verb = ast_malloc(sizeof(*verb))))
1582  return -1;
1583 
1584  verb->verboser = v;
1585 
1589 
1590  return 0;
1591 }
#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:703
struct verb::@285 list
Definition: logger.c:927
void(* verboser)(const char *string)
Definition: logger.c:928
#define ast_malloc(a)
Definition: astmm.h:91
int ast_unregister_verbose ( void(*)(const char *string verboser)

Definition at line 1593 of file logger.c.

References ast_free, AST_RWLIST_REMOVE_CURRENT, AST_RWLIST_TRAVERSE_SAFE_BEGIN, AST_RWLIST_TRAVERSE_SAFE_END, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, logchannel::list, and verb::verboser.

1594 {
1595  struct verb *cur;
1596 
1599  if (cur->verboser == v) {
1601  ast_free(cur);
1602  break;
1603  }
1604  }
1607 
1608  return cur ? 0 : -1;
1609 }
#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
struct verb::@285 list
#define AST_RWLIST_REMOVE_CURRENT
Definition: linkedlists.h:565
#define AST_RWLIST_TRAVERSE_SAFE_BEGIN
Definition: linkedlists.h:542
Definition: logger.c:927
void(* verboser)(const char *string)
Definition: logger.c:928
#define ast_free(a)
Definition: astmm.h:97
#define AST_RWLIST_TRAVERSE_SAFE_END
Definition: linkedlists.h:602
unsigned int ast_verbose_get_by_module ( const char *  module)

Get the verbose level for a module.

Parameters
modulethe name of module
Returns
the verbose level

Definition at line 140 of file cli.c.

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

141 {
142  struct module_level *ml;
143  unsigned int res = 0;
144 
146  AST_LIST_TRAVERSE(&verbose_modules, ml, entry) {
147  if (!strcasecmp(ml->module, module)) {
148  res = ml->level;
149  break;
150  }
151  }
153 
154  return res;
155 }
unsigned int level
Definition: cli.c:88
#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: cli.c:87
#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
static struct module_level_list verbose_modules
Definition: cli.c:98
int logger_reload ( void  )

Reload logger without rotating log files.

Reload logger without rotating log files.

Definition at line 800 of file logger.c.

References reload_logger(), RESULT_FAILURE, and RESULT_SUCCESS.

801 {
802  if (reload_logger(0)) {
803  return RESULT_FAILURE;
804  }
805  return RESULT_SUCCESS;
806 }
static int reload_logger(int rotate)
Definition: logger.c:735
#define RESULT_SUCCESS
Definition: cli.h:39
#define RESULT_FAILURE
Definition: cli.h:41