Sun Oct 16 2011 08:42:53

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"
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ast_bt

Defines

#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.
#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.
#define AST_LOG_ERROR   __LOG_ERROR, _A_
#define AST_LOG_NOTICE   __LOG_NOTICE, _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_VERBOSE   __LOG_VERBOSE, _A_
#define LOG_WARNING   __LOG_WARNING, _A_
#define NUMLOGLEVELS   7
#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.
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
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)
void ast_console_toggle_mute (int fd, int silent)
 mute or unmute a console from logging
unsigned int ast_debug_get_by_module (const char *module)
 Get the debug level for a module.
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.
int ast_logger_register_level (const char *name)
 Register a new logger level.
void ast_logger_unregister_level (const char *name)
 Unregister a previously registered logger level.
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.
int logger_reload (void)
 Reload logger without rotating log files.

Detailed Description

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

Definition in file logger.h.


Define 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 log_exec(), and init_logger_chain().

#define __LOG_VERBOSE   5

Definition at line 165 of file logger.h.

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

#define __LOG_WARNING   3

Definition at line 143 of file logger.h.

Referenced by log_exec(), and init_logger_chain().

#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 {       \
   if (option_debug >= (level) || (ast_opt_dbg_module && ast_debug_get_by_module(AST_MODULE) >= (level)) ) \
      ast_log(AST_LOG_DEBUG, __VA_ARGS__); \
} while (0)

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 ast_append_ha(), ast_apply_ha(), resolve_first(), ast_ouraddrfor(), ast_find_ourip(), ast_control_streamfile(), __ast_play_and_record(), ast_lock_path_lockfile(), ast_unlock_path_lockfile(), ast_lock_path_flock(), ast_ivr_menu_run_internal(), ast_get_encoded_char(), receive_dtmf_digits(), write_metadata(), log_events(), receive_ademco_contact_id(), alarmreceiver_exec(), isAnsweringMachine(), channel_spy(), common_exec(), destroy_conference_bridge(), join_conference_bridge(), play_sound_file(), controlplayback_exec(), conf_run(), run_ras(), deltree_exec(), del_exec(), wait_for_answer(), dial_handle_playtones(), dial_exec_full(), select_entry(), check_match(), search_directory_sub(), search_directory(), do_directory(), disa_exec(), send_eivr_event(), ast_eivr_setvariable(), app_exec(), phase_e_handler(), transmit_audio(), transmit_t38(), transmit(), send_waveform_to_channel(), festival_exec(), create_followme_number(), reload_followme(), wait_for_winner(), findmeexec(), icesencode(), ices_exec(), handle_input(), handle_output(), init_jack_data(), queue_voice_frame(), handle_jack_audio(), _macro_exec(), meetme_show_cmd(), meetme_cmd(), sla_queue_event_conf(), rt_extend_conf(), find_conf_realtime(), find_conf(), sla_handle_dial_state_event(), sla_station_exec(), message_template_build(), find_account(), sendmail(), create_dirpath(), invent_message(), vm_delete(), run_externnotify(), notify_new_message(), leave_voicemail(), minivm_greet_exec(), minivm_delete_exec(), minivm_accmess_exec(), create_vmaccount(), message_template_parse_filebody(), load_config(), access_counter_file(), mp3_exec(), NBScat_exec(), originate_exec(), osp_create_provider(), osp_get_provider(), osp_create_transaction(), osp_validate_token(), osp_check_destination(), osp_auth(), osp_lookup(), osp_next(), osp_report_qos(), osp_finish(), ospauth_exec(), osplookup_exec(), ospnext_exec(), ospfinished_exec(), osp_load(), do_say(), get_member_status(), handle_statechange(), extension_state_cb(), queue_set_param(), find_queue_by_name_rt(), update_realtime_members(), join_queue(), leave_queue(), compare_weight(), ring_entry(), ring_one(), store_next_rr(), store_next_lin(), is_our_turn(), update_qe_rule(), calc_metric(), try_calling(), set_member_paused(), reload_queue_members(), rqm_exec(), queue_exec(), readexten_exec(), record_exec(), pop_exec(), gosub_exec(), handle_gosub(), background_detect_exec(), measurenoise(), testclient_exec(), testserver_exec(), check_password(), vm_change_password(), vm_change_password_shell(), last_message_index(), make_email_file(), add_email_attachment(), sendpage(), save_to_folder(), adsi_load_vmail(), play_message_callerid(), play_message_duration(), close_mailbox(), vm_newuser(), vm_options(), vm_authenticate(), vm_execmain(), sayname(), vmsayname_exec(), do_waiting(), quit_handler(), audiohook_read_frame_both(), ast_autochan_setup(), ast_autochan_destroy(), ast_autochan_new_channel(), multiplexed_bridge_create(), multiplexed_bridge_destroy(), multiplexed_thread_function(), multiplexed_add_or_remove(), multiplexed_bridge_join(), multiplexed_bridge_leave(), multiplexed_bridge_suspend(), multiplexed_bridge_unsuspend(), bridge_array_add(), bridge_array_remove(), bridge_check_dissolve(), ast_bridge_handle_trip(), bridge_thread(), find_best_technology(), destroy_bridge(), ast_bridge_new(), ast_bridge_destroy(), bridge_make_compatible(), smart_bridge_operation(), bridge_channel_join_multithreaded(), bridge_channel_join_singlethreaded(), bridge_channel_feature(), bridge_channel_dtmf_stream(), bridge_channel_join(), ast_bridge_merge(), ast_bridge_features_enable(), callerid_get_dtmf(), callerid_feed_jp(), ast_cdr_submit_batch(), ast_cdr_detach(), do_cdr(), odbc_load_module(), pgsql_log(), config_module(), radius_log(), write_cdr(), tds_message_handler(), agent_read(), agent_write(), agent_call(), agent_hangup(), agent_cont_sleep(), agent_bridgedchannel(), check_availability(), check_beep(), agent_request(), login_exec(), alsa_card_init(), alsa_write(), start_stream(), console_read(), cli_console_dial(), my_send_callerid(), my_handle_dtmf(), my_dial_digits(), swap_subs(), alloc_sub(), unalloc_sub(), dahdi_digit_begin(), dahdi_digit_end(), conf_add(), conf_del(), update_conf(), dahdi_enable_ec(), dahdi_train_ec(), dahdi_disable_ec(), set_actual_txgain(), set_actual_rxgain(), save_conference(), restore_conference(), send_callerid(), dahdi_call(), dahdi_send_keypad_facility_exec(), dahdi_hangup(), dahdi_queryoption(), dahdi_setoption(), dahdi_unlink(), dahdi_link(), dahdi_bridge(), dahdi_fixup(), attempt_transfer(), dahdi_handle_dtmf(), dahdi_handle_event(), __dahdi_exception(), dahdi_read(), my_dahdi_write(), dahdi_write(), dahdi_indicate(), dahdi_new(), analog_ss_thread(), do_monitor(), mkintf(), dahdi_request(), dahdi_restart(), dahdi_sendtext(), gtalk_answer(), gtalk_hangup_farend(), gtalk_alloc(), gtalk_update_stun(), gtalk_rtp_read(), gtalk_indicate(), gtalk_parser(), oh323_destroy_alias(), oh323_destroy_user(), oh323_destroy_peer(), __oh323_update_info(), __oh323_destroy(), oh323_destroy(), oh323_call(), oh323_answer(), oh323_hangup(), oh323_rtp_read(), oh323_indicate(), __oh323_rtp_create(), find_user(), find_peer(), oh323_request(), external_rtp_create(), setup_rtp_connection(), connection_made(), progress(), setup_incoming_call(), answer_call(), chan_ringing(), cleanup_connection(), hangup_connection(), set_dtmf_payload(), set_peer_capabilities(), set_local_capabilities(), remote_hold(), network_change_event_cb(), __schedule_action(), __send_ping(), __send_lagrq(), update_max_trunk(), update_max_nontrunk(), make_trunk(), calltoken_required(), set_peercnt_limit(), set_peercnt_limit_all_cb(), peercnt_modify(), peercnt_add(), peercnt_remove(), sched_delay_remove(), __find_callno(), transmit_trunk(), send_packet(), iax2_destroy(), unwrap_timestamp(), schedule_delivery(), realtime_peer(), create_addr(), iax2_call(), iax2_hangup(), iax2_read(), iax2_start_transfer(), iax2_answer(), iax2_indicate(), iax2_transfer(), ast_iax2_new(), calc_timestamp(), calc_rxstamp(), find_tpeer(), iax2_trunk_queue(), decode_frame(), encrypt_frame(), iax2_write(), raw_hangup(), __expire_registry(), send_trunk(), timing_read(), check_provisioning(), log_jitterstats(), socket_read(), socket_process(), iax2_do_register(), iax2_provision(), check_srcaddr(), peer_set_srcaddr(), cache_get_callno_locked(), iax2_devicestate(), jingle_answer(), jingle_is_answered(), jingle_hangup_farend(), jingle_alloc(), jingle_rtp_read(), jingle_parser(), local_devicestate(), local_bridgedchannel(), local_write(), local_hangup(), resend_response(), send_response(), retrans_pkt(), send_request(), mgcp_call(), mgcp_hangup(), mgcp_answer(), mgcp_rtp_read(), mgcp_write(), mgcp_senddigit_begin(), mgcp_senddigit_end(), mgcp_indicate(), find_realtime_gw(), find_subchannel_and_lock(), parse(), process_sdp(), add_sdp(), transmit_modify_with_sdp(), transmit_connect_with_sdp(), mgcp_pktcgate_remove(), mgcp_pktcgate_open(), transmit_connect(), transmit_notify_request(), transmit_notify_request_with_callerid(), transmit_modify_request(), add_header_offhook(), transmit_connection_del(), transmit_connection_del_w_params(), find_command(), mgcp_ss(), handle_request(), mgcpsock_read(), mgcp_prune_realtime_gateway(), send_digit_to_chan(), misdn_hangup(), process_ast_dsp(), misdn_write(), nbs_call(), nbs_hangup(), nbs_xread(), phone_indicate(), phone_digit_end(), phone_call(), phone_hangup(), phone_answer(), phone_exception(), phone_check_exception(), mkif(), _sip_tcp_helper_thread(), dialog_unlink_all(), registry_unref(), registry_addref(), initialize_initreq(), sip_alreadygone(), obproxy_get(), __sip_xmit(), ast_sip_ouraddrfor(), __sip_reliable_xmit(), __sip_autodestruct(), __sip_ack(), __sip_semi_ack(), sip_setoption(), sip_queryoption(), sip_sendhtml(), sip_sendtext(), sip_destroy_peer(), do_setnat(), change_t38_state(), create_addr_from_peer(), sip_call(), sip_registry_destroy(), __sip_destroy(), update_call_counter(), sip_destroy(), hangup_cause2sip(), sip_hangup(), sip_answer(), sip_fixup(), sip_indicate(), sip_new(), sip_rtp_read(), sip_alloc(), find_call(), parse_request(), process_sdp_o(), process_sdp_a_audio(), process_sdp_a_image(), reqprep(), transmit_response_with_sdp(), determine_firstline_parts(), transmit_invite(), update_connectedline(), transmit_register(), transmit_refer(), expire_register(), reg_source_db(), parse_register_contact(), build_route(), get_destination(), get_sip_pvt_byid_locked(), get_refer_info(), get_also_info(), check_peer_ok(), dialog_needdestroy(), sip_dump_history(), handle_request_info(), do_proxy_auth(), build_reply_digest(), change_redirecting_information(), parse_moved_contact(), check_pendings(), handle_response_invite(), handle_response_notify(), handle_response_subscribe(), handle_response_refer(), handle_response_register(), handle_response(), sip_park_thread(), sip_park(), sip_pickup(), handle_request_notify(), handle_invite_replaces(), do_magic_pickup(), handle_request_invite(), local_attended_transfer(), handle_request_refer(), handle_request_cancel(), handle_request_bye(), handle_request_subscribe(), handle_request_register(), handle_incoming(), handle_request_do(), sip_prepare_socket(), restart_session_timer(), stop_session_timer(), start_session_timer(), proc_session_timer(), parse_minse(), parse_session_expires(), sip_devicestate(), sip_request_call(), add_sip_domain(), add_realm_authentication(), build_peer(), reload_config(), apply_directmedia_ha(), sip_set_udptl_peer(), sip_set_rtp_peer(), sip_addheader(), sip_removeheader(), process_crypto(), sip_do_reload(), ast_sockaddr_resolve_first_af(), skinny_ss(), skinny_hangup(), skinny_answer(), skinny_rtp_read(), skinny_transfer(), skinny_indicate(), handle_stimulus_message(), handle_offhook_message(), handle_onhook_message(), handle_soft_key_event_message(), get_input(), skinny_session(), HandleCallOutgoing(), process_request(), unistim_hangup(), unistim_rtp_read(), unistim_fixup(), hidthread(), ast_check_hangup(), ast_channel_register(), ast_channel_unregister(), ast_softhangup_nolock(), ast_hangup(), __ast_answer(), generator_force(), ast_settimeout(), ast_read_generator_actions(), __ast_read(), ast_indicate_data(), ast_senddigit_begin(), ast_prod(), ast_write(), set_format(), __ast_channel_masquerade(), ast_channel_inherit_variables(), ast_do_masquerade(), ast_generic_bridge(), ast_channel_bridge(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), dahdi_translate(), config_text_file_load(), ast_config_text_file_save(), ast_parse_arg(), data_provider_find(), ast_db_get(), ast_db_del(), _ast_device_state(), getproviderstate(), devstate_event(), do_state_change(), process_collection(), handle_devstate_change(), ast_dial_run(), ast_search_dns(), ast_tone_detect_init(), tone_detect(), __ast_dsp_call_progress(), ast_dsp_busydetect(), ast_dsp_process(), ast_dsp_set_busy_pattern(), parse_naptr(), ast_get_enum(), ast_get_txt(), notify_metermaids(), metermaidstate(), create_dynamic_parkinglot(), park_space_reserve(), builtin_atxfer(), feature_interpret_helper(), feature_interpret(), ast_bridge_call(), manage_parked_call(), find_parkinglot(), copy_parkinglot(), parkinglot_unref(), parkinglot_addref(), parkinglot_feature_flag_cfg(), build_parkinglot(), process_config(), remove_exten_if_exist(), parkinglot_activate_cb(), ast_pickup_call(), ast_do_pickup(), bridge_exec(), ast_writestream(), ast_streamfile(), g726_open(), ogg_vorbis_open(), ast_codec_choose(), ast_parse_allow_disallow(), audiohook_inheritance_fixup(), setup_inheritable_audiohook(), func_inheritance_write(), acf_curlopt_write(), acf_curlopt_helper(), WriteMemoryCallback(), acf_curl_helper(), function_db_read(), function_db_delete(), file_read(), file_write(), iconv_read(), get_lock(), unlock_read(), acf_odbc_read(), cli_odbc_read(), cli_odbc_write(), acf_rand_exec(), realtimefield_read(), filter(), replace(), regex(), array(), acf_version_exec(), handle_uri(), parse_cookies(), iax_provision_version(), io_grow(), ast_io_add(), ast_io_wait(), ast_io_dump(), jb_put(), printdigest(), load_modules(), ast_backtrace(), ast_logger_register_level(), ast_logger_unregister_level(), authenticate(), action_waitevent(), action_hangup(), match_filter(), process_message(), xml_translate(), generic_http_callback(), auth_http_callback(), __init_manager(), ast_set_default_eid(), ast_sockaddr_split_hostport(), new_find_extension(), ast_str_retrieve_variable(), ast_str_substitute_variables_full(), pbx_substitute_variables_helper_full(), pbx_extension_helper(), ast_add_hint(), __ast_pbx_run(), manager_show_dialplan_helper(), ast_context_find_or_create(), ast_add_extension2_lockopt(), __ast_context_destroy(), pbx_builtin_gotoiftime(), pbx_builtin_gotoif(), dundi_lookup_thread(), dundi_precache_thread(), dundi_query_thread(), dundi_answer_entity(), cache_save_hint(), dundi_prop_precache(), dundi_answer_query(), cache_lookup_internal(), do_register_expire(), dundi_decrypt(), dundi_encrypt(), check_key(), handle_command_response(), handle_frame(), process_clearcache(), precache_transactions(), append_transaction(), build_transactions(), register_request(), dundi_lookup_internal(), dundi_precache_internal(), do_register(), lua_find_extension(), safe_append(), scan_thread(), __adsi_transmit_messages(), ast_adsi_begin_download(), ast_adsi_transmit_message_full(), ast_adsi_load_session(), handle_cli_agi_add_cmd(), async_agi_read_frame(), launch_asyncagi(), launch_netscript(), handle_streamfile(), handle_getoption(), run_agi(), agi_exec_full(), calendar_destructor(), calendar_event_destructor(), destroy_event(), ast_calendar_clear_events(), schedule_calendar_event(), add_event_to_list(), calendar_query_exec(), caldav_destructor(), caldav_load_calendar(), ewscal_destructor(), unref_ewscal(), startelm(), cdata(), endelm(), send_ews_request_and_parse(), get_ewscal_ids_for(), ewscal_load_calendar(), exchangecal_destructor(), exchangecal_get_events_between(), exchangecal_load_calendar(), icalendar_destructor(), ical_load_calendar(), semicolon_count_var(), realtime_ldap_entry_to_var(), realtime_ldap_result_to_vars(), ldap_loadentry(), substituted(), cleaned_basedn(), append_var_and_value_to_filter(), realtime_ldap_base_ap(), config_ldap(), update_ldap(), update2_ldap(), ldap_reconnect(), custom_prepare(), find_table(), realtime_pgsql(), realtime_multi_pgsql(), update_pgsql(), update2_pgsql(), store_pgsql(), destroy_pgsql(), config_pgsql(), require_pgsql(), unload_pgsql(), parse_config(), pgsql_reconnect(), find_table_cb(), cdr_handler(), config_handler(), realtime_handler(), realtime_multi_handler(), realtime_update_handler(), realtime_update2_handler(), realtime_store_handler(), realtime_destroy_handler(), load_module(), try_load_key(), ast_check_signature_bin(), crypto_load(), fax_session_reserve(), fax_session_new(), disable_t38(), generic_fax_exec(), receivefax_t38_init(), receivefax_exec(), sendfax_t38_init(), sendfax_exec(), set_config(), acf_faxopt_write(), t30_phase_e_handler(), spandsp_fax_read(), post_raw(), process_message_callback(), http_post_callback(), gtalk_yuck(), acf_jabberreceive_read(), aji_tls_handshake(), aji_recv(), aji_act_hook(), aji_handle_message(), aji_handle_presence(), aji_recv_loop(), unload_module(), ast_monitor_start(), ast_monitor_stop(), ast_monitor_change_fname(), ast_moh_files_next(), monmp3thread(), moh_scan_files(), moh_class_destructor(), mute_callback(), initialize_mutehook(), mute_add_audiohook(), func_mute_write(), release_transaction(), odbc_txn_free(), destroy_table_cache(), odbc_release_obj2(), _ast_odbc_request_obj2(), cops_construct_gate(), cops_getmsg(), cops_sendmsg(), ast_pktccops_gate_alloc(), cops_gate_cmd(), cops_connect(), do_pktccops(), ast_rtp_new(), ast_rtp_dtmf_end_with_duration(), ast_rtp_update_source(), ast_rtp_change_source(), ast_rtp_raw_write(), ast_rtp_write(), create_dtmf_frame(), process_dtmf_rfc2833(), process_dtmf_cisco(), process_cn_rfc3389(), ast_rtcp_read(), bridge_p2p_rtp_write(), ast_rtp_read(), ast_rtp_prop_set(), ast_rtp_remote_address_set(), smdi_toggle_mwi(), srtp_event_cb(), ast_srtp_add_stream(), ast_srtp_change_source(), kqueue_timer_ack(), read_pipe(), timerfd_timer_ack(), instance_destructor(), ast_rtp_instance_new(), ast_rtp_codecs_payloads_copy(), ast_rtp_codecs_payloads_set_m_type(), ast_rtp_codecs_payloads_unset(), ast_rtp_codecs_payload_formats(), local_bridge_loop(), remote_bridge_loop(), ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_instance_early_bridge(), ast_say_number_full_en(), ast_say_number_full_da(), ast_say_number_full_de(), ast_say_number_full_en_GB(), ast_say_number_full_es(), ast_say_number_full_fr(), ast_say_number_full_he(), ast_say_number_full_hu(), ast_say_number_full_it(), ast_say_number_full_nl(), ast_say_number_full_no(), pl_odtworz_plik(), ast_say_number_full_zh(), ast_say_number_full_ru(), ast_say_enumeration_full_en(), ast_say_enumeration_full_da(), ast_say_enumeration_full_de(), ast_say_date_with_format_en(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_he(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), 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_zh(), ast_say_number_full_gr(), ast_say_date_with_format_gr(), ast_say_date_with_format_vi(), ast_sched_wait(), ast_sched_add_variable(), ast_sched_del(), ast_sched_dump(), ast_sched_runq(), ast_sched_when(), analog_swap_subs(), analog_send_callerid(), analog_attempt_transfer(), analog_update_conf(), analog_request(), analog_available(), analog_call(), analog_hangup(), analog_answer(), analog_handle_dtmf(), __analog_ss_thread(), __analog_handle_event(), analog_exception(), analog_handle_init_event(), analog_fixup(), PVT_TO_CHANNEL(), pri_find_empty_chan(), sig_pri_handle_cis_subcmds(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_indicate(), sig_pri_digit_begin(), pri_send_keypad_facility_exec(), ss7_linkset(), sig_ss7_indicate(), ast_stun_handle_packet(), handle_tcptls_connection(), __ssl_setup(), ast_tcptls_client_create(), ast_tcptls_server_start(), ast_tcptls_server_stop(), rebuild_matrix(), decode_length(), udptl_build_packet(), ast_udptl_read(), ast_udptl_bridge(), ast_wait_for_output(), and ast_xmldoc_load_documentation().

#define AST_LOG_DEBUG   __LOG_DEBUG, _A_

Definition at line 127 of file logger.h.

Referenced by check_password(), and load_config().

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

#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 ast_unlock_path_flock(), span_message(), announce_thread(), do_dtmf_local(), rpt(), prep_email_sub_vars(), leave_voicemail(), ast_audiohook_write_frame(), audiohook_read_frame_both(), ast_channel_audiohook_count_by_source(), ast_channel_audiohook_count_by_source_running(), agent_call(), agent_request(), my_get_callerid(), my_set_waitingfordt(), my_is_dialing(), dahdi_hangup(), dahdi_answer(), dahdi_handle_event(), dahdi_read(), analog_ss_thread(), do_monitor(), device2chan(), dahdi_request(), process_dahdi(), gtalk_ringing_ack(), gtalk_is_answered(), gtalk_is_accepted(), scheduled_destroy(), handle_request_subscribe(), skinny_transfer(), ast_set_owners_and_peers(), ast_connected_line_parse_data(), ast_redirecting_parse_data(), ilbctolin_framein(), ast_event_cb(), add_publish_event(), builtin_blindtransfer(), clear_dialed_interfaces(), ast_bridge_call(), check_header(), ast_bt_get_symbols(), ast_backtrace(), unref_mansession(), manager_modulecheck(), add_exten_to_pattern_tree(), create_match_char_tree(), pbx_find_extension(), scan_service(), realtime_ldap_base_ap(), spandsp_log(), http_post_callback(), aji_mwi_cb(), aji_devstate_cb(), aji_handle_pubsub_event(), _get_mohbyname(), moh_class_destructor(), odbc_obj_disconnect(), process_dtmf_rfc2833(), ast_rtcp_read(), smdi_read(), ast_say_number_full_se(), ast_say_number_full_zh(), ast_say_number_full_ur(), ast_say_enumeration_full_he(), ast_say_date_with_format_th(), sig_pri_request(), pri_ss_thread(), sig_pri_hangup(), sig_pri_call(), sig_pri_indicate(), pri_send_callrerouting_facility_exec(), tps_taskprocessor_destroy(), and xmldoc_build_field().

#define LOG_DTMF   __LOG_DTMF, _A_
#define LOG_ERROR   __LOG_ERROR, _A_

Definition at line 155 of file logger.h.

Referenced by ast_jb_put(), jb_get_and_deliver(), create_jb(), ast_ouraddrfor(), yyerror(), aoc_parse_ie(), ast_app_group_match_get_count(), ast_lock_path_lockfile(), ast_unlock_path_lockfile(), ast_get_encoded_char(), ast_safe_fork(), load_config(), chanspy_exec(), extenspy_exec(), dahdiscan_exec(), join_conference_bridge(), dial_exec_full(), retrydial_exec(), load_module(), realtime_directory(), directory_exec(), execif_exec(), app_exec(), eivr_comm(), span_message(), transmit_audio(), transmit_t38(), transmit(), sndfax_exec(), rcvfax_exec(), festival_exec(), reload_followme(), findmeexec(), alloc_resampler(), handle_input(), init_jack_data(), queue_voice_frame(), handle_jack_audio(), handle_options(), jack_hook_callback(), enable_jack_hook(), jack_hook_write(), _macro_exec(), sla_queue_event_conf(), find_conf(), conf_exec(), load_config_meetme(), sla_trunk_exec(), sla_state(), sla_build_trunk(), sla_add_trunk_to_station(), sla_build_station(), sla_load_config(), acf_meetme_info(), message_template_build(), prep_email_sub_vars(), leave_voicemail(), minivm_mwi_exec(), minivm_notify_exec(), minivm_record_exec(), minivm_greet_exec(), minivm_delete_exec(), minivm_accmess_exec(), create_vmaccount(), message_template_parse_filebody(), minivm_account_func_read(), access_counter_file(), minivm_counter_func_read(), minivm_counter_func_write(), mixmonitor_thread(), originate_exec(), osp_create_provider(), osp_create_transaction(), osp_validate_token(), osp_check_destination(), osp_auth(), osp_create_uuid(), osp_uuid2str(), osp_create_callid(), osp_lookup(), osp_next(), ospauth_exec(), osplookup_exec(), ospnext_exec(), ospfinished_exec(), osp_load(), page_exec(), say_init_mode(), reload(), device_state_cb(), load_realtime_queue(), try_calling(), set_member_penalty(), get_member_penalty(), reload_queue_members(), aqm_exec(), copy_rules(), queue_function_var(), queue_function_exists(), queue_function_qac(), queue_function_qac_dep(), queue_function_queuewaitingcount(), queue_function_queuememberlist(), queue_function_memberpenalty_read(), queue_function_memberpenalty_write(), reload_queue_rules(), reload_queues(), readfile_exec(), donodelog(), statpost(), rpt_do_lstats(), rpt_tele_thread(), function_autopatchup(), setrem(), rpt(), rpt_master(), rpt_exec(), sms_exec(), return_exec(), gosub_exec(), local_write(), peek_read(), handle_gosub(), log_exec(), forward_message(), acf_mailbox_exists(), mwi_sub_event_cb(), write_password_to_file(), find_matching_endwhile(), alloc_expr_node(), op_func(), netconsole(), listener(), ast_el_read_char(), ast_remotecontrol(), ast_readconfig(), main(), INTERNAL_OBJ(), internal_ao2_ref(), multiplexed_nudge(), bridge_array_add(), callerid_feed_jp(), callerid_feed(), build_cc_interfaces_chanvar(), ast_cdr_setvar(), ast_cdr_serialize_variables(), ast_cdr_alloc(), do_reload(), ast_cdr_engine_init(), odbc_log(), unload_module(), writefile(), csv_log(), custom_log(), manager_log(), odbc_load_module(), pgsql_log(), config_module(), radius_log(), sqlite_log(), load_column_config(), load_values_config(), write_cdr(), tds_log(), anti_injection(), mssql_connect(), tds_error_handler(), tds_load_module(), ast_cel_fill_record(), __agent_start_monitoring(), agent_indicate(), agent_get_base_channel(), agent_set_base_channel(), read_agent_config(), alsa_card_init(), soundcard_init(), alsa_write(), alsa_read(), open_stream(), start_stream(), console_request(), set_active(), analogsub_to_dahdisub(), my_start_cid_detect(), my_dsp_set_digitmode(), my_wink(), my_dial_digits(), my_handle_link_exception(), dahdi_call(), do_monitor(), restart_monitor(), device2chan(), mkintf(), dahdi_new_pri_nobch_channel(), duplicate_pseudo(), determine_starting_point(), dahdi_ss7_error(), dahdi_pri_error(), prepare_pri(), linkset_addsigchan(), build_channels(), process_dahdi(), setup_dahdi_int(), dahdi_status_data_provider_get(), dahdi_version_data_provider_get(), dahdi_sendtext(), gtalk_invite(), gtalk_create_candidates(), gtalk_alloc(), gtalk_newcall(), gtalk_sendtext(), gtalk_request(), gtalk_create_member(), gtalk_load_config(), oh323_digit_begin(), oh323_digit_end(), oh323_read(), __oh323_rtp_create(), oh323_alloc(), build_user(), build_peer(), receive_digit(), external_rtp_create(), setup_rtp_connection(), connection_made(), progress(), setup_incoming_call(), answer_call(), chan_ringing(), handle_cli_h323_cycle_gk(), reload_config(), oh323_set_rtp_peer(), jb_error_output(), iax2_dup_variable_datastore(), store_by_transfercallno(), remove_by_transfercallno(), store_by_peercallno(), remove_by_peercallno(), peercnt_add(), build_callno_limits(), replace_callno(), handle_call_token(), iax2_hangup(), ast_iax2_new(), authenticate_reply(), acf_iaxvar_write(), socket_process(), check_srcaddr(), set_config(), acf_channel_read(), jingle_create_candidates(), jingle_alloc(), jingle_newcall(), jingle_sendtext(), jingle_digit(), jingle_request(), jingle_create_member(), local_setoption(), local_alloc(), mgcp_senddigit_begin(), mgcp_senddigit_end(), misdn_request(), misdn_new(), cb_events(), phone_request(), parse_gain_value(), dialog_ref_debug(), sip_threadinfo_create(), sip_tcptls_write(), sip_check_authtimeout(), _sip_tcp_helper_thread(), __sip_reliable_xmit(), sip_setoption(), sip_queryoption(), update_call_counter(), sip_indicate(), sip_st_alloc(), sip_alloc(), process_via(), sip_register(), process_sdp(), transmit_response_using_temp(), transmit_response_with_t38_sdp(), transmit_response_with_sdp(), register_verify(), check_user_full(), sip_park_thread(), handle_invite_replaces(), do_magic_pickup(), handle_request_invite(), handle_incoming(), start_session_timer(), proc_session_timer(), sip_request_call(), sip_sipredirect(), setup_srtp(), peer_iphash_cb(), skinny_call(), handle_register_message(), handle_open_receive_channel_ack_message(), get_input(), skinny_req_parse(), accept_thread(), config_device(), config_load(), unistim_call(), build_device(), kickptt(), hidthread(), usbradio_text(), usbradio_write(), usbradio_read(), radio_tune(), xpmr_config(), store_config(), __ast_read(), ast_channel_setoption(), ast_channel_queryoption(), ast_get_group(), data_channels_provider_handler(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_ais_clm_load_module(), ast_ais_clm_unload_module(), lintoulaw(), dahdi_write_frame(), dahdi_encoder_framein(), dahdi_encoder_frameout(), dahdi_decoder_framein(), dahdi_decoder_frameout(), dahdi_translate(), find_transcoders(), resample_frame(), parse_config(), process_text_line(), config_text_file_load(), data_structure_compatible(), __ast_data_register(), __ast_data_unregister(), data_search_generate(), data_result_generate_node(), data_result_generate(), ast_data_get(), ast_data_retrieve(), devstate_cache_cb(), handle_devstate_change(), devstate_change_collector_cb(), ast_device_state_engine_init(), ast_enable_distributed_devstate(), dnsmgr_init(), mute_fragment(), ast_event_get_type_name(), ast_event_get_ie_type_name(), ast_event_get_ie_pltype(), ast_event_check_subscriber(), ast_event_subscribe_new(), ast_event_get_cached(), evt_event_deliver_cb(), ast_event_cb(), add_subscribe_event(), build_event_channel(), subscribe_event_destroy(), event_channel_destroy(), ast_ais_evt_load_module(), ast_ais_evt_unload_module(), create_dynamic_parkinglot(), park_call_full(), builtin_automonitor(), builtin_automixmonitor(), manage_parked_call(), parkinglot_activate(), process_config(), ogg_vorbis_open(), ogg_vorbis_rewrite(), ogg_vorbis_write(), ast_framehook_attach(), party_name_write(), party_number_write(), party_id_write(), callerid_read(), callerid_write(), connectedline_read(), connectedline_write(), redirecting_read(), redirecting_write(), func_channel_write_real(), config_function_read(), acf_curlopt_write(), acf_curlopt_helper(), acf_curl_helper(), acf_sort_exec(), acf_cut_exec(), acf_cut_exec2(), devstate_write(), dialgroup_write(), isexten_function_read(), enum_query_read(), enum_result_read(), count_lines(), file2format(), file_read(), file_write(), shared_read(), shared_write(), iconv_read(), get_lock(), acf_odbc_write(), acf_odbc_read(), init_acf_query(), pitchshift_helper(), sha1(), speex_write(), speex_read(), acf_sprintf(), srv_result_read(), function_fieldnum_helper(), listfilter(), filter(), replace(), regex(), quote(), csv_quote(), acf_strptime(), sysinfo_helper(), timeout_read(), timeout_write(), volume_write(), ast_heap_create(), iax_frame_wrap(), ast_playtones_start(), queue_reload_request(), load_resource_list(), inotify_daemon(), logger_queue_restart(), logger_queue_init(), ast_bt_create(), action_getvar(), do_message(), session_do(), ast_manager_unregister(), ast_manager_register_struct(), ast_netsock_bindaddr(), ast_sockaddr_stringify_fmt(), ast_sockaddr_parse(), ast_sockaddr_resolve(), ast_sockaddr_hash(), add_exten_to_pattern_tree(), create_match_char_tree(), __ast_custom_function_register(), ast_func_read(), ast_func_read2(), ast_func_write(), ast_str_substitute_variables_full(), pbx_substitute_variables_helper_full(), ast_context_remove_extension_callerid2(), ast_context_find_or_create(), context_merge(), add_priority(), ast_add_extension2_lockopt(), async_wait(), ast_pbx_outgoing_exten(), pbx_builtin_serialize_variables(), load_pbx(), pbx_load_module(), complete_dialplan_remove_include(), complete_dialplan_remove_extension(), complete_dialplan_add_include(), complete_dialplan_add_ignorepat(), pbx_load_config(), pbx_load_users(), dundi_query_read(), dundi_result_read(), lua_get_state(), exists(), canmatch(), matchmore(), exec(), lua_find_extension(), load_or_reload_lua_stuff(), scan_thread(), ael2_print(), extension_matches(), check_break(), check_continue(), check_label(), check_goto(), find_pval_goto_item(), check_pval_item(), pvalCheckType(), pvalGlobalsAddStatement(), pvalTopLevAddObject(), ast_agi_send(), get_agi_cmd(), add_to_agi(), launch_asyncagi(), eagi_exec(), dispatch_thread_handler(), build_calendar(), do_notify(), calendar_event_notify(), add_event_to_list(), calendar_query_exec(), calendar_join_attendees(), calendar_write_exec(), caldav_request(), caldav_write_event(), caldav_get_events_between(), caldav_add_event(), caldav_load_calendar(), startelm(), cdata(), endelm(), send_ews_request_and_parse(), get_ewscal_ids_for(), ewscal_load_calendar(), parse_tag(), exchangecal_request(), exchangecal_write_event(), exchangecal_get_events_between(), exchangecal_load_calendar(), fetch_icalendar(), icalendar_add_event(), icalendar_update_events(), ical_load_calendar(), realtime_curl(), realtime_multi_curl(), update_curl(), update2_curl(), store_curl(), destroy_curl(), require_curl(), config_curl(), ldap_loadentry(), realtime_ldap_base_ap(), realtime_multi_ldap(), config_ldap(), update_ldap(), update2_ldap(), ldap_reconnect(), realtime_odbc(), update2_prepare(), find_table(), realtime_pgsql(), realtime_multi_pgsql(), update_pgsql(), update2_pgsql(), require_pgsql(), pgsql_reconnect(), check_vars(), cdr_handler(), config_handler(), add_rt_multi_cfg_entry(), realtime_update2_handler(), fax_rate_str_to_int(), fax_session_reserve(), fax_session_new(), set_fax_t38_caps(), disable_t38(), generic_fax_exec(), receivefax_t38_init(), receivefax_exec(), sendfax_t38_init(), sendfax_exec(), cli_fax_show_session(), cli_fax_show_sessions(), acf_faxopt_read(), spandsp_log(), spandsp_fax_new(), spandsp_fax_start(), process_message_callback(), http_post_callback(), aji_find_version(), aji_status_exec(), acf_jabberstatus_read(), delete_old_messages(), aji_join_exec(), aji_leave_exec(), aji_sendgroup_exec(), aji_start_sasl(), aji_act_hook(), aji_register_approve_handler(), aji_register_query_handler(), aji_ditems_handler(), aji_client_info_handler(), aji_dinfo_handler(), aji_handle_message(), aji_handle_presence(), aji_handle_subscribe(), aji_send_raw_chat(), ast_aji_create_chat(), ast_aji_invite_chat(), aji_recv_loop(), aji_pruneregister(), aji_client_connect(), aji_initialize(), aji_handle_pubsub_event(), aji_handle_pubsub_error(), aji_set_presence(), aji_set_group_presence(), aji_create_client(), aji_reload(), ast_monitor_change_fname(), start_monitor_exec(), monmp3thread(), mute_add_audiohook(), find_transaction(), ast_odbc_find_table(), load_odbc_config(), acf_transaction_write(), lookup_iface(), phoneprov_callback(), build_route(), restart_pktc_thread(), ast_rtp_new(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_continuation(), ast_rtp_dtmf_end_with_duration(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_sendcng(), multicast_rtp_write(), smdi_toggle_mwi(), smdi_read(), smdi_load(), smdi_msg_retrieve_read(), smdi_msg_read(), res_srtp_new(), ast_srtp_policy_alloc(), policy_set_suite(), stun_monitor_request(), stun_start_monitor(), dahdi_timer_set_rate(), dahdi_test_timer(), kqueue_timer_open(), pthread_timer_set_rate(), read_pipe(), write_byte(), init_timing_thread(), timerfd_timer_open(), timerfd_timer_close(), timerfd_timer_set_rate(), timerfd_timer_ack(), timerfd_timer_enable_continuous(), timerfd_timer_disable_continuous(), timerfd_timer_get_event(), ast_rtp_instance_new(), ast_sched_thread_create(), ast_sched_runq(), check_event_type(), ast_security_event_report(), analog_request(), analog_hangup(), __analog_handle_event(), sig_pri_get_orig_dialstring(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_call(), sig_pri_start_pri(), ss7_linkset(), sig_ss7_add_sigchan(), sig_ss7_call(), ssl_lock(), ast_tps_init(), tps_processing_function(), tps_taskprocessor_destroy(), tps_taskprocessor_pop(), ast_taskprocessor_name(), ast_taskprocessor_get(), ast_taskprocessor_push(), ast_tcptls_server_read(), ast_tcptls_server_write(), handle_tcptls_connection(), ast_tcptls_client_start(), ast_tcptls_client_create(), ast_tcptls_server_start(), tdd_feed(), encode_open_type(), ast_wait_for_output(), ast_carefulwrite(), ast_careful_fwrite(), xmldoc_string_cleanup(), xmldoc_build_field(), and ast_xmldoc_load_documentation().

#define LOG_NOTICE   __LOG_NOTICE, _A_

Definition at line 133 of file logger.h.

Referenced by ast_append_ha(), ast_alaw_init(), ast_app_dtget(), ast_app_group_match_get_count(), ivr_dispatch(), adsi_prog(), start_spying(), chanspy_exec(), extenspy_exec(), do_forward(), setup_privacy_args(), dial_exec_full(), pickup_by_exten(), pickup_by_group(), pickup_exec(), pickupchan_exec(), eivr_comm(), wait_for_winner(), log_jack_status(), admin_exec(), channel_admin_exec(), meetmemute(), load_config_meetme(), sla_station_exec(), acf_meetme_info(), load_config(), find_account(), message_template_parse_emailbody(), mixmonitor_exec(), timed_read(), reload(), handle_playtones(), join_queue(), wait_for_answer(), try_calling(), reload_queue_members(), rqm_exec(), aqm_exec(), queue_function_qac_dep(), reload_queue_rules(), reload_queues(), flush_telem(), linkcount(), retreive_memory(), birdbath(), do_dtmf_local(), openserial(), send_usb_txt(), load_rpt_vars(), rpt_do_stats(), rpt_push_alt_macro(), wait_interval(), rpt_tele_thread(), rpt_telemetry(), rpt_call(), connect_link(), function_ilink(), function_cop(), collect_function_digits(), handle_link_data(), serial_remote_io(), sendkenwood(), check_freq_ic706(), ic706_pltocode(), set_freq_ic706(), set_offset_ic706(), set_mode_ic706(), set_ctcss_mode_ic706(), set_ic706(), check_tx_freq(), get_mem_set(), channel_steer(), channel_revert(), function_remote(), handle_remote_dtmf_digit(), do_scheduler(), rpt(), rpt_master(), rpt_exec(), rpt_manager_do_stats(), app_exec(), sms_readfile(), sms_writefile(), sms_messagerx2(), sms_process(), system_exec_helper(), measurenoise(), testclient_exec(), testserver_exec(), forward_message(), open_mailbox(), read_password_from_file(), waituntil_exec(), compose_func_args(), set_ulimit(), callerid_feed_jp(), callerid_feed(), ast_queue_cc_frame(), check_post(), cdr_merge_vars(), do_reload(), load_module(), tds_log(), mssql_connect(), tds_message_handler(), tds_load_module(), agent_read(), read_agent_config(), login_exec(), alsa_write(), alsa_request(), console_request(), my_distinctive_ring(), my_handle_dtmf(), my_handle_dchan_exception(), my_handle_link_exception(), my_handle_notify_message(), handle_clear_alarms(), dahdi_setoption(), dahdi_bridge(), dahdi_handle_dtmf(), dahdi_handle_event(), analog_ss_thread(), mwi_thread(), handle_init_event(), mkintf(), process_dahdi(), setup_dahdi_int(), gtalk_is_accepted(), gtalk_handle_dtmf(), gtalk_hangup_farend(), gtalk_create_candidates(), gtalk_newcall(), gtalk_sendhtml(), gtalk_parser(), oh323_call(), oh323_rtp_read(), update_common_options(), oh323_request(), setup_rtp_connection(), setup_incoming_call(), answer_call(), cleanup_connection(), reload_config(), convertcap(), __auto_congest(), iax2_send(), authenticate_verify(), register_verify(), authenticate(), authenticate_reply(), reg_source_db(), update_registry(), registry_rerequest(), iax_park_thread(), socket_process(), iax2_prov_app(), __iax2_poke_noanswer(), iax2_poke_peer(), set_config(), iax2_exists(), iax2_canmatch(), iax2_matchmore(), iax2_exec(), jingle_is_answered(), jingle_handle_dtmf(), jingle_hangup_farend(), jingle_create_candidates(), jingle_newcall(), jingle_indicate(), jingle_sendhtml(), jingle_parser(), local_call(), local_alloc(), dump_queue(), mgcp_call(), mgcp_rtp_read(), mgcp_fixup(), find_subchannel_and_lock(), handle_response(), handle_request(), mgcpsock_read(), mgcp_request(), misdn_hangup(), process_ast_dsp(), misdn_bridge(), import_ch(), add_in_calls(), add_out_calls(), cb_events(), nbs_request(), oss_request(), phone_request(), ast_sip_ouraddrfor(), update_call_counter(), try_suggested_sip_codec(), sip_read(), process_sdp(), copy_header(), copy_via_headers(), sip_reregister(), sip_reg_timeout(), transmit_register(), transmit_refer(), parse_register_contact(), check_auth(), check_user_full(), sip_dump_history(), parse_moved_contact(), handle_response_update(), handle_response_publish(), handle_response_invite(), handle_response_notify(), handle_response_subscribe(), handle_response_refer(), handle_response_register(), handle_response_peerpoke(), attempt_transfer(), handle_request_notify(), handle_request_options(), handle_invite_replaces(), handle_request_invite(), handle_request_bye(), cc_esc_publish_handler(), handle_request_publish(), handle_request_subscribe(), handle_request_register(), handle_incoming(), sipsock_read(), check_rtp_timeout(), sip_poke_noanswer(), sip_poke_peer(), sip_request_call(), build_peer(), skinny_fixup(), skinny_indicate(), accept_thread(), skinny_request(), config_line(), config_device(), config_load(), HandleCallOutgoing(), HandleCallIncoming(), parsing(), unistimsock_read(), find_subchannel_by_name(), unistim_request(), ParseBookmark(), finish_bookmark(), hidthread(), usbradio_text(), usbradio_read(), usbradio_request(), store_config(), __ast_read(), ast_call_forward(), __ast_request_and_dial(), ast_cli_perms_init(), ast_config_engine_register(), console_video_start(), ast_db_get(), dnsmgr_refresh(), builtin_automonitor(), builtin_automixmonitor(), ast_register_feature(), register_group(), register_group_feature(), feature_exec_app(), feature_request_and_dial(), ast_channel_log(), manage_parked_call(), process_applicationmap_line(), process_config(), ast_pickup_call(), smoother_frame_feed(), group_count_function_read(), crement_function_read(), srv_datastore_setup(), iax_provision_reload(), handle_cli_indication_add(), ast_io_remove(), manager_isdn_handler(), ast_process_pending_reloads(), ast_module_reload(), load_modules(), action_hangup(), auth_http_callback(), __init_manager(), update_scoreboard(), get_canmatch_exten(), new_find_extension(), _extension_match_core(), pbx_find_extension(), pbx_extension_helper(), ast_context_remove_extension_callerid2(), pbx_load_module(), dundi_prop_precache(), update_key(), dundi_encrypt(), check_key(), handle_command_response(), destroy_trans(), dundi_rexmit(), dundi_send(), do_autokill(), dundi_precache_full(), dundi_precache_internal(), do_register(), dundi_helper(), dundi_exec(), realtime_exec(), apply_outgoing(), attempt_thread(), scan_service(), ldap_loadentry(), parse_config(), update2_prepare(), config_odbc(), update_pgsql(), update2_pgsql(), try_load_key(), ast_decrypt_bin(), ast_encrypt_bin(), crypto_load(), aji_status_exec(), acf_jabberstatus_read(), acf_jabberreceive_read(), aji_client_info_handler(), aji_dinfo_handler(), aji_handle_presence(), monmp3thread(), local_ast_moh_start(), load_odbc_config(), odbc_obj_connect(), reload_module(), process_cn_rfc3389(), ast_rtp_read(), purge_old_messages(), smdi_load(), stun_monitor_request(), stun_stop_monitor(), stun_start_monitor(), __analog_handle_event(), analog_handle_init_event(), pri_find_dchan(), pri_check_restart(), pri_dchannel(), ss7_linkset(), tdd_feed(), ast_udptl_write(), __ast_udptl_reload(), ast_ulaw_init(), ffmpeg_decode(), and mpeg4_decode().

#define LOG_VERBOSE   __LOG_VERBOSE, _A_

Definition at line 171 of file logger.h.

Referenced by unload_module(), and bridge_call_thread().

#define LOG_VERBOSE   __LOG_VERBOSE, _A_

Definition at line 171 of file logger.h.

#define LOG_WARNING   __LOG_WARNING, _A_

Definition at line 144 of file logger.h.

Referenced by ast_jb_put(), jb_get_and_deliver(), create_jb(), ast_append_ha(), resolve_first(), ast_ouraddrfor(), ast_find_ourip(), yyparse(), ast_alaw_init(), ast_aoc_create(), aoc_parse_ie(), ast_aoc_decode(), aoc_append_ie(), ast_aoc_encode(), ast_app_run_macro(), ast_dtmf_stream(), linear_release(), linear_generator(), linear_alloc(), ast_linear_stream(), __ast_play_and_record(), ast_lock_path_lockfile(), ast_lock_path_flock(), ast_record_review(), ast_ivr_menu_run_internal(), ast_read_textfile(), parse_options(), ast_safe_fork(), get_token(), send_dtmf(), goto_line(), goto_line_rel(), send_delay(), set_state(), cleartimer(), getflagbyname(), setflag(), clearflag(), starttimer(), getkeybyname(), getsubbyname(), getstatebyname(), getdisplaybyname(), showkeys(), showdisplay(), cleardisplay(), digitdirect(), clearcbone(), digitcollect(), subscript(), onevent(), process_returncode(), process_opcode(), adsi_process(), compile_script(), adsi_prog(), send_tone_burst(), alarmreceiver_exec(), isAnsweringMachine(), load_config(), auth_exec(), chanavail_exec(), asyncgoto_exec(), spy_generate(), channel_spy(), chanspy_exec(), extenspy_exec(), confbridge_exec(), controlplayback_exec(), careful_write(), conf_run(), conf_exec(), run_ras(), dahdiras_exec(), del_exec(), wait_for_answer(), setup_privacy_args(), dial_handle_playtones(), dial_exec_full(), retrydial_exec(), dictate_exec(), pickupchan_exec(), goto_exten(), select_entry(), realtime_directory(), disa_exec(), exec_exec(), tryexec_exec(), execif_exec(), gen_nextfile(), gen_generate(), eivr_comm(), span_message(), t38_tx_packet_handler(), phase_e_handler(), fax_generator_generate(), transmit_audio(), transmit_t38(), transmit(), send_waveform_to_fd(), send_waveform_to_channel(), festival_exec(), load_module(), flash_exec(), profile_set_param(), reload_followme(), clear_caller(), wait_for_winner(), findmeexec(), app_exec(), forkcdr_exec(), icesencode(), ices_exec(), sendimage_exec(), skel_exec(), jack_hook_callback(), disable_jack_hook(), _macro_exec(), macroif_exec(), build_conf(), conf_flush(), conf_queue_dtmf(), find_conf_realtime(), find_conf(), count_exec(), admin_exec(), channel_admin_exec(), load_config_meetme(), sla_station_exec(), sla_build_trunk(), sla_add_trunk_to_station(), sla_build_station(), sla_load_config(), milliwatt_generate(), old_milliwatt_exec(), base_encode(), sendmail(), create_dirpath(), play_record_review(), notify_new_message(), leave_voicemail(), minivm_notify_exec(), minivm_record_exec(), minivm_accmess_exec(), timezone_add(), apply_general_options(), minivm_counter_func_read(), minivm_counter_func_write(), launch_monitor_thread(), mixmonitor_exec(), morsecode_exec(), mp3play(), mp3_exec(), NBScatplay(), NBScat_exec(), originate_exec(), osp_create_provider(), osp_validate_token(), osp_check_destination(), osp_lookup(), osplookup_exec(), ospnext_exec(), osp_load(), page_exec(), parkandannounce_exec(), s_streamwait3(), do_say(), say_init_mode(), playback_exec(), privacy_exec(), create_queue_member(), insert_penaltychange(), parse_empty_options(), queue_set_param(), rt_handle_member_record(), find_queue_by_name_rt(), calc_metric(), queue_transfer_fixup(), setup_transfer_datastore(), try_calling(), dump_queue_members(), set_member_paused(), reload_queue_members(), pqm_exec(), upqm_exec(), rqm_exec(), aqm_exec(), ql_exec(), queue_exec(), queue_function_var(), queue_function_qac(), queue_function_qac_dep(), queue_function_queuewaitingcount(), queue_function_queuememberlist(), reload_queue_rules(), reload_single_member(), reload_single_queue(), read_exec(), readexten_exec(), acf_isexten_exec(), readfile_exec(), record_exec(), diskavail(), linkcount(), setdtr(), openserial(), load_rpt_vars(), rpt_push_alt_macro(), sayfile(), saycharstr(), saynum(), telem_lookup(), rpt_tele_thread(), rpt_telemetry(), rpt_call(), connect_link(), handle_link_data(), rbi_out(), check_tx_freq(), function_remote(), handle_remote_data(), attempt_reconnect(), local_dtmf_helper(), do_scheduler(), rpt(), rpt_master(), rpt_exec(), saycountednoun_exec(), saycountedadj_exec(), senddtmf_exec(), sendtext_exec(), setcallerid_pres_exec(), sms_log(), sms_readfile(), sms_handleincoming(), sms_generate(), softhangup_exec(), pop_exec(), gosub_exec(), gosubif_exec(), handle_gosub(), system_exec_helper(), background_detect_exec(), testclient_exec(), transfer_exec(), sendurl_exec(), userevent_exec(), verbose_exec(), inprocess_count(), apply_option(), vm_check_password_shell(), apply_options_full(), add_email_attachment(), play_message(), vm_intro(), find_or_create(), append_mailbox(), vmsayname_exec(), waitforring_exec(), do_waiting(), waitfor_exec(), waituntil_exec(), _while_exec(), make_number(), make_str(), to_number(), to_string(), op_func(), op_eq(), op_plus(), op_minus(), op_negate(), op_times(), op_div(), op_rem(), op_colon(), op_eqtilde(), ast_yyerror(), ast_safe_system(), netconsole(), listener(), ast_makesocket(), ast_tryconnect(), set_ulimit(), ast_set_priority(), ast_remotecontrol(), ast_readconfig(), canary_thread(), main(), autoservice_run(), ast_autoservice_start(), multiplexed_bridge_create(), multiplexed_thread_function(), __ast_bridge_technology_register(), bridge_make_compatible(), callerid_get_dtmf(), callerid_feed_jp(), callerid_feed(), str_to_agent_policy(), str_to_monitor_policy(), ast_cc_get_param(), ast_cc_set_param(), ast_set_cc_offer_timer(), ast_set_ccnr_available_timer(), ast_set_cc_recall_timer(), ast_set_ccbs_available_timer(), ast_handle_cc_control_frame(), cc_available(), cc_caller_requested(), cccancel_exec(), initialize_cc_max_requests(), ast_cdr_register(), ast_cdr_merge(), ast_cdr_end(), ast_cdr_submit_batch(), do_reload(), generic_prepare(), odbc_log(), writefile(), csv_log(), reload(), odbc_load_module(), pgsql_log(), config_module(), load_column_config(), load_values_config(), parse_events(), parse_apps(), ast_cel_get_ama_flag_name(), add_agent(), agent_answer(), agent_fixup(), agent_call(), agent_new(), agent_request(), login_exec(), agentmonitoroutgoing_exec(), function_agent(), alsa_card_init(), alsa_write(), alsa_indicate(), alsa_new(), alsa_request(), start_stream(), console_request(), console_indicate(), store_config_core(), my_get_callerid(), my_distinctive_ring(), my_callwait(), my_send_callerid(), my_handle_dtmf(), my_set_cadence(), my_all_subchannels_hungup(), my_new_pri_ast_channel(), my_pri_open_media(), my_is_off_hook(), my_ss7_set_loopback(), my_new_ss7_ast_channel(), _dahdi_get_index(), dahdi_open(), alloc_sub(), unalloc_sub(), dahdi_digit_begin(), conf_add(), conf_del(), reset_conf(), dahdi_enable_ec(), dahdi_train_ec(), dahdi_disable_ec(), bump_gains(), restore_gains(), dahdi_set_hook(), dahdi_confmute(), save_conference(), restore_conference(), send_callerid(), dahdi_callwait(), dahdi_call(), revert_fax_buffers(), dahdi_hangup(), dahdi_answer(), dahdi_setoption(), parse_buffers_policy(), dahdi_func_write(), dahdi_link(), dahdi_bridge(), dahdi_ring_phone(), attempt_transfer(), check_for_conference(), get_alarms(), dahdi_handle_dtmf(), handle_alarms(), dahdi_handle_event(), __dahdi_exception(), dahdi_read(), dahdi_write(), dahdi_indicate(), dahdi_new(), analog_ss_thread(), mwi_thread(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), handle_init_event(), do_monitor(), restart_monitor(), pri_resolve_span(), pri_create_trunkgroup(), pri_create_spanmap(), mkintf(), dahdi_new_pri_nobch_channel(), duplicate_pseudo(), determine_starting_point(), dahdi_request(), dahdi_pri_message(), dahdi_pri_error(), complete_span_helper(), dahdi_restart(), dahdi_show_channel(), dahdi_fake_event(), build_channels(), process_echocancel(), process_dahdi(), setup_dahdi_int(), dahdi_sendtext(), add_codec_to_answer(), gtalk_is_answered(), gtalk_create_candidates(), gtalk_alloc(), gtalk_new(), gtalk_free_pvt(), gtalk_newcall(), gtalk_update_externip(), gtalk_update_stun(), gtalk_write(), gtalk_call(), gtalk_request(), gtalk_show_channels(), gtalk_parser(), gtalk_create_member(), gtalk_load_config(), unload_module(), __oh323_destroy(), oh323_call(), oh323_hangup(), oh323_write(), oh323_indicate(), oh323_fixup(), __oh323_rtp_create(), __oh323_new(), find_call_locked(), build_alias(), update_common_options(), build_user(), realtime_user(), realtime_peer(), create_addr(), oh323_request(), reload_config(), iax_error_output(), jb_warning_output(), compress_subclass(), make_trunk(), add_calltoken_ignore(), get_unused_callno(), __find_callno(), try_firmware(), reload_firmware(), handle_error(), __attempt_transmit(), iax2_fixup(), handle_call_token(), iax2_call(), iax2_hangup(), iax2_bridge(), ast_iax2_new(), iax2_trunk_queue(), memcpy_decrypt(), memcpy_encrypt(), iax2_send(), check_access(), authenticate_verify(), register_verify(), try_transfer(), complete_transfer(), iax2_ack_registry(), iax2_register(), update_registry(), registry_rerequest(), spawn_dp_lookup(), iax_park(), socket_read(), socket_process_meta(), socket_process(), iax2_do_register(), iax2_poke_peer(), iax2_request(), start_network_thread(), peer_set_srcaddr(), build_peer(), set_config(), cache_get_callno_locked(), find_cache(), iax2_exists(), iax2_canmatch(), iax2_matchmore(), iax2_exec(), iax2_devicestate(), jingle_create_candidates(), jingle_alloc(), jingle_new(), jingle_free_pvt(), jingle_newcall(), jingle_write(), jingle_call(), jingle_request(), jingle_show_channels(), jingle_create_member(), jingle_load_config(), local_devicestate(), local_answer(), local_fixup(), local_new(), __mgcp_xmit(), retrans_pkt(), send_request(), mgcp_call(), mgcp_write(), mgcp_fixup(), mgcp_indicate(), mgcp_new(), parse(), process_sdp(), add_header(), add_line(), init_resp(), init_req(), add_sdp(), handle_response(), mgcp_ss(), handle_hd_hf(), handle_request(), mgcpsock_read(), mgcp_request(), build_gateway(), mgcp_reload(), update_config(), read_config(), misdn_call(), misdn_answer(), misdn_digit_end(), misdn_indication(), misdn_hangup(), process_ast_dsp(), misdn_write(), misdn_request(), misdn_send_text(), cb_events(), misdn_facility_exec(), misdn_check_l2l1(), misdn_set_opt_exec(), chan_misdn_log(), nbs_call(), nbs_alloc(), nbs_hangup(), nbs_xwrite(), nbs_new(), find_desc(), used_blocks(), soundcard_writeframe(), setformat(), oss_indicate(), oss_new(), oss_request(), console_cmd(), console_autoanswer(), store_boost(), store_mixer(), store_config(), phone_indicate(), phone_digit_end(), phone_call(), phone_hangup(), phone_setup(), phone_exception(), phone_read(), phone_write_buf(), phone_write(), phone_new(), phone_mini_packet(), mkif(), __unload_module(), sip_cc_monitor_suspend(), _sip_tcp_helper_thread(), proxy_update(), __sip_xmit(), ast_sip_ouraddrfor(), __sip_autodestruct(), sip_scheddestroy(), __sip_pretend_ack(), sip_sendhtml(), register_peer_exten(), sip_call(), sip_hangup(), sip_write(), sip_fixup(), sip_indicate(), sip_new(), process_via(), sip_subscribe_mwi(), parse_request(), find_sdp(), get_ip_and_port_from_sdp(), process_sdp_o(), process_sdp_c(), process_sdp_a_audio(), finalize_content(), add_content(), set_destination(), respprep(), __transmit_response(), transmit_response_with_auth(), get_domain(), get_crypto_attrib(), transmit_response_with_t38_sdp(), add_cc_call_info_to_response(), transmit_response_with_sdp(), transmit_invite(), transmit_cc_notify(), transmit_state_notify(), manager_sipnotify(), transmit_register(), transmit_request_with_auth(), __set_address_from_contact(), parse_register_contact(), check_auth(), get_rdnis(), get_destination(), get_refer_info(), get_also_info(), check_via(), receive_message(), handle_request_info(), sip_cli_notify(), reply_digest(), func_header_read(), func_check_sipdomain(), function_sippeer(), function_sipchaninfo_read(), cc_handle_publish_error(), handle_response_invite(), handle_response_notify(), handle_response_subscribe(), handle_response_refer(), handle_response_register(), handle_response_info(), handle_response_message(), sip_park_thread(), sip_park(), handle_request_notify(), handle_invite_replaces(), handle_request_invite(), handle_request_bye(), pidf_validate_tuple(), pidf_validate_presence(), sip_pidf_validate(), cc_esc_publish_handler(), handle_cc_subscribe(), handle_request_subscribe(), handle_request_register(), handle_incoming(), sipsock_read(), restart_session_timer(), stop_session_timer(), start_session_timer(), proc_session_timer(), parse_minse(), parse_session_expires(), proc_422_rsp(), sip_request_call(), set_insecure_flags(), handle_t38_options(), handle_common_options(), add_sip_domain(), add_realm_authentication(), sip_dtmfmode(), sip_addheader(), process_crypto(), get_button_template(), find_line_by_instance(), find_subchannel_by_instance_reference(), find_subchannel_by_reference(), find_speeddial_by_instance(), register_exten(), unregister_exten(), skinny_register(), transmit_response(), skinny_newcall(), skinny_ss(), skinny_call(), skinny_write(), skinny_fixup(), skinny_transfer(), skinny_indicate(), skinny_new(), handle_transfer_button(), handle_register_message(), handle_callforward_button(), handle_keypad_button_message(), handle_stimulus_message(), handle_offhook_message(), handle_onhook_message(), handle_capabilities_res_message(), handle_enbloc_call_message(), handle_soft_key_event_message(), handle_message(), destroy_session(), get_input(), accept_thread(), skinny_request(), config_parse_variables(), config_load(), display_last_error(), send_client(), get_to_address(), close_client(), send_retransmit(), send_select_output(), rcv_mac_addr(), write_history(), swap_subs(), close_call(), unistim_ss(), start_rtp(), TransferCallStep1(), HandleCallOutgoing(), HandleCallIncoming(), unistim_do_senddigit(), key_call(), Keyfavorite(), OpenHistory(), process_request(), parsing(), channel_to_session(), unistim_call(), unistim_hangup(), unistim_answer(), unistimsock_read(), unistim_rtp_read(), unistim_write(), unistim_fixup(), in_band_indication(), unistim_indicate(), find_subchannel_by_name(), unistim_senddigit_end(), unistim_sendtext(), unistim_new(), unistim_request(), ParseBookmark(), build_device(), hidthread(), find_desc_usb(), usbradio_read(), usbradio_fixup(), usbradio_indicate(), usbradio_new(), usbradio_request(), radio_tune(), store_rxdemod(), store_txmixa(), store_txmixb(), store_rxcdtype(), store_rxsdtype(), store_txtoctype(), ast_channel_register(), ast_best_codec(), __ast_channel_alloc_ap(), __ast_queue_frame(), ast_channel_destructor(), ast_hangup(), __ast_answer(), ast_waitfor_nandfds(), ast_waitfordigit_full(), __ast_read(), ast_indicate_data(), ast_prod(), ast_write(), set_format(), ast_request(), ast_channel_make_compatible_helper(), __ast_channel_masquerade(), ast_do_masquerade(), ast_channel_bridge(), tonepair_alloc(), tonepair_generator(), ast_get_group(), party_name_build_data(), party_number_build_data(), party_subaddress_build_data(), party_id_build_data(), ast_connected_line_build_data(), ast_connected_line_parse_data(), ast_redirecting_build_data(), ast_redirecting_parse_data(), set_full_cmd(), ast_cli_perms_init(), __ast_cli_unregister(), __ast_cli_register(), parse_args(), dahdi_translate(), gsmtolin_framein(), lintogsm_framein(), ilbctolin_framein(), lpc10tolin_framein(), lintolpc10_framein(), speextolin_framein(), ast_include_new(), process_text_line(), config_text_file_load(), read_config_maps(), find_engine(), ast_config_internal_load(), dbinit(), ast_db_put(), ast_db_gettree(), dns_parse_answer(), ast_search_dns(), refresh_list(), store_digit(), __ast_dsp_call_progress(), ast_dsp_call_progress(), ast_dsp_silence(), ast_dsp_noise(), ast_dsp_process(), txt_callback(), blr_txt(), ebl_callback(), blr_ebl(), parse_ie(), parse_naptr(), enum_callback(), ast_get_enum(), private_enum_init(), ast_event_check_subscriber(), ast_event_new(), ast_event_get_cached(), ast_event_queue_and_cache(), ast_event_queue(), add_publish_event(), add_subscribe_event(), build_event_channel(), bridge_call_thread(), create_dynamic_parkinglot(), park_space_reserve(), masq_park_call(), play_message_on_chan(), builtin_automixmonitor(), builtin_blindtransfer(), check_compat(), builtin_atxfer(), feature_exec_app(), set_bridge_features_on_config(), add_features_datastores(), ast_bridge_call(), manage_parked_call(), manage_parkinglot(), park_call_exec(), parked_call_exec(), parkinglot_config_read(), build_parkinglot(), process_applicationmap_line(), process_config(), usage_context_add_ramp(), usage_context_add_spaces(), parkinglot_is_marked_cb(), parkinglot_activate_cb(), action_bridge(), ast_pickup_call(), ast_do_pickup(), ast_bridge_timelimit(), bridge_exec(), __ast_format_register(), ast_format_unregister(), ast_stopstream(), ast_writestream(), copy(), build_filename(), fn_wrapper(), ast_filehelper(), ast_openstream_full(), ast_openvstream(), ast_readaudio_callback(), ast_readvideo_callback(), ast_streamfile(), ast_readfile(), ast_writefile(), waitstream_core(), ast_format_str_reduce(), g719read(), g719write(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gsm_read(), gsm_write(), gsm_seek(), h263_open(), h263_read(), h263_write(), h264_open(), h264_read(), h264_write(), ilbc_read(), ilbc_write(), jpeg_read_image(), jpeg_write_image(), ogg_vorbis_rewrite(), write_stream(), ogg_vorbis_write(), read_samples(), ogg_vorbis_read(), ogg_vorbis_trunc(), ogg_vorbis_seek(), ogg_vorbis_tell(), pcm_read(), pcm_seek(), pcm_write(), check_header(), update_header(), write_header(), siren14read(), siren14write(), siren7read(), siren7write(), slinear_read(), slinear_write(), vox_read(), vox_write(), check_header_fmt(), wav_close(), wav_read(), wav_write(), wav_seek(), __ast_smoother_feed(), ast_smoother_read(), ast_parse_allow_disallow(), g723_len(), speex_get_wb_sz_at(), speex_samples(), ast_codec_get_samples(), ast_codec_get_len(), aes_helper(), func_inheritance_write(), base64_helper(), callerpres_read(), callerpres_write(), func_channel_read(), func_channel_write_real(), func_channels_read(), acf_curl_helper(), cut_internal(), function_db_read(), function_db_write(), function_db_exists(), function_db_delete(), devstate_write(), hint_read(), dialgroup_read(), dialgroup_write(), function_enum(), enum_query_read(), enum_result_read(), function_txtcidname(), file_read(), file_write(), extstate_read(), shared_read(), shared_write(), group_function_write(), iconv_read(), unlock_read(), iftime(), acf_if(), set(), math(), crement_function_read(), md5(), generic_execute(), acf_odbc_write(), acf_odbc_read(), init_acf_query(), function_realtime_read(), function_realtime_write(), realtimefield_read(), function_realtime_store(), function_realtime_readdestroy(), sha1(), shell_helper(), speex_write(), srv_query_read(), srv_result_read(), filter(), regex(), quote(), acf_strftime(), acf_strptime(), function_eval(), function_eval2(), shift_pop(), unshift_push(), sysinfo_helper(), uriencode(), uridecode(), ast_http_send(), add_redirect(), __ast_http_load(), iax_template_parse(), iax_process_template(), ast_read_image(), playtones_alloc(), playtones_generator(), handle_cli_indication_add(), handle_cli_indication_remove(), store_tone_zone_ring_cadence(), parse_tone_zone(), load_indications(), ast_io_remove(), load_dynamic_module(), ast_unload_resource(), ast_module_reload(), inspect_module(), load_resource(), load_modules(), rotate_file(), ast_backtrace(), ast_logger_register_level(), handle_updates(), action_command(), session_do(), ast_manager_register_struct(), process_output(), generic_http_callback(), auth_http_callback(), __init_manager(), _enum_array_map(), misdn_cfg_get(), misdn_cfg_is_msn_valid(), misdn_cfg_get_config_string(), misdn_cfg_update_ptp(), misdn_cfg_init(), ast_netsock_bindaddr(), ast_netsock_set_qos(), ast_sockaddr_split_hostport(), ast_sockaddr_parse(), ast_set_qos(), pbx_exec(), add_exten_to_pattern_tree(), ext_cmp1(), _extension_match_core(), ast_extension_close(), pbx_find_extension(), func_args(), ast_str_substitute_variables_full(), pbx_substitute_variables_helper_full(), pbx_extension_helper(), __ast_pbx_run(), increase_call_count(), ast_pbx_start(), ast_context_remove_extension_callerid2(), ast_register_application2(), ast_register_switch(), show_dialplan_helper(), manager_show_dialplan_helper(), get_range(), get_timerange(), ast_check_timing2(), ast_async_goto(), add_priority(), async_wait(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_pbx_outgoing_app(), pbx_builtin_hangup(), pbx_builtin_gotoiftime(), pbx_builtin_execiftime(), pbx_builtin_waitexten(), pbx_builtin_background(), pbx_builtin_pushvar_helper(), pbx_builtin_setvar(), pbx_builtin_setvar_multiple(), pbx_builtin_importvar(), pbx_builtin_gotoif(), pbx_builtin_saynumber(), load_pbx(), ast_context_verify_includes(), pbx_parseable_goto(), complete_dialplan_remove_include(), complete_dialplan_remove_extension(), complete_dialplan_add_extension(), complete_dialplan_remove_ignorepat(), pbx_load_config(), dundi_error_output(), dundi_answer_entity(), dundi_prop_precache(), dundi_answer_query(), handle_command_response(), ack_trans(), dundi_xmit(), destroy_trans(), dundi_discover(), precache_trans(), dundi_query(), precache_transactions(), dundi_lookup_internal(), dundi_precache_internal(), dundifunc_read(), dundi_query_read(), dundi_result_read(), build_mapping(), dundi_helper(), dundi_exec(), realtime_exec(), apply_outgoing(), safe_append(), remove_from_queue(), launch_service(), scan_service(), queue_file(), check_macro_returns(), extension_matches(), check_expr2_input(), check_includes(), check_timerange(), check_dow(), check_day(), check_month(), check_goto(), check_app_args(), check_switch_expr(), check_context_names(), check_abstract_reference(), check_pval_item(), add_extensions(), destroy_pval_item(), adsi_careful_send(), __adsi_transmit_messages(), ast_adsi_transmit_message_full(), ast_adsi_get_cpeid(), ast_adsi_get_cpeinfo(), ast_adsi_load_session(), add_agi_cmd(), launch_asyncagi(), launch_netscript(), launch_ha_netscript(), launch_script(), handle_getoption(), handle_recordfile(), handle_exec(), ast_agi_register(), ast_agi_unregister(), run_agi(), agi_exec_full(), eagi_exec(), deadagi_exec(), load_tech_calendars(), ast_calendar_register(), do_notify(), calendar_devstate_change(), calendar_busy_exec(), calendar_query_exec(), calendar_query_result_exec(), calendar_write_exec(), calendar_event_read(), auth_credentials(), caldav_request(), caldav_write_event(), caldav_add_event(), caldav_load_calendar(), ssl_verify(), send_ews_request_and_parse(), ewscal_load_calendar(), exchangecal_request(), exchangecal_write_event(), exchangecal_load_calendar(), fetch_icalendar(), icalendar_add_event(), ical_load_calendar(), handle_orig(), reload_module(), ldap_loadentry(), realtime_ldap_base_ap(), realtime_multi_ldap(), config_ldap(), update_ldap(), update2_ldap(), parse_config(), ldap_reconnect(), custom_prepare(), realtime_odbc(), realtime_multi_odbc(), update_odbc(), update2_prepare(), update2_odbc(), store_odbc(), destroy_odbc(), config_odbc(), require_odbc(), realtime_pgsql(), realtime_multi_pgsql(), update_pgsql(), update2_pgsql(), store_pgsql(), destroy_pgsql(), config_pgsql(), require_pgsql(), find_table(), set_var(), cdr_handler(), add_cfg_entry(), config_handler(), get_params(), realtime_handler(), add_rt_multi_cfg_entry(), realtime_multi_handler(), realtime_update_handler(), realtime_update2_handler(), realtime_store_handler(), realtime_destroy_handler(), realtime_require_handler(), pw_cb(), try_load_key(), ast_sign_bin(), ast_decrypt_bin(), ast_encrypt_bin(), ast_check_signature_bin(), ast_check_signature(), crypto_load(), find_details(), find_or_create_details(), update_modem_bits(), ast_fax_state_to_str(), fax_rate_str_to_int(), disable_t38(), generic_fax_exec(), receivefax_t38_init(), receivefax_exec(), sendfax_t38_init(), sendfax_exec(), acf_faxopt_read(), acf_faxopt_write(), update_stats(), spandsp_log(), spandsp_fax_write(), post_raw(), process_message_callback(), readmimefile(), aji_status_exec(), acf_jabberstatus_read(), acf_jabberreceive_read(), aji_send_exec(), aji_recv(), aji_send_raw(), aji_act_hook(), aji_dinfo_handler(), aji_send_raw_chat(), aji_recv_loop(), aji_delete_node_list(), aji_create_client(), aji_create_buddy(), aji_load_config(), ast_monitor_start(), ast_monitor_stop(), ast_monitor_change_fname(), start_monitor_exec(), moh_files_release(), ast_moh_files_next(), moh_files_generator(), moh_files_alloc(), spawn_mp3(), monmp3thread(), play_moh_exec(), wait_moh_exec(), set_moh_exec(), start_moh_exec(), mohalloc(), moh_release(), moh_alloc(), moh_generate(), moh_scan_files(), init_app_class(), _moh_register(), local_ast_moh_cleanup(), local_ast_moh_start(), moh_class_destructor(), load_moh_classes(), ast_odbc_find_table(), ast_odbc_direct_execute(), ast_odbc_prepare_and_execute(), ast_odbc_smart_execute(), ast_odbc_sanity_check(), load_odbc_config(), odbc_register_class(), odbc_release_obj2(), commit_exec(), rollback_exec(), _ast_odbc_request_obj2(), odbc_obj_disconnect(), odbc_obj_connect(), acf_transaction_write(), lookup_iface(), phoneprov_callback(), add_user_extension(), pp_each_extension_helper(), cops_sendmsg(), ast_pktccops_gate_alloc(), cops_gate_cmd(), cops_connect(), do_pktccops(), restart_pktc_thread(), load_pktccops_config(), pktccops_add_ippool(), create_new_socket(), ast_rtp_dtmf_begin(), ast_rtp_dtmf_end_with_duration(), ast_rtp_write(), ast_rtcp_read(), bridge_p2p_rtp_write(), ast_rtp_read(), rtp_reload(), multicast_send_control_packet(), append_ie(), smdi_msg_retrieve_read(), smdi_msg_read(), ast_speech_register(), ast_srtp_unprotect(), ast_srtp_protect(), ast_srtp_change_source(), stun_start_monitor(), ast_rtp_engine_register2(), ast_rtp_glue_register2(), remote_bridge_loop(), ast_rtp_instance_bridge(), ast_rtp_instance_early_bridge(), wait_file(), say_number_full(), ast_say_number_full_pt(), say_date(), say_date_with_format(), ast_say_date_with_format_en(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_th(), ast_say_date_with_format_he(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), 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_zh(), say_time(), say_datetime(), say_datetime_from_now(), ast_say_date_with_format_gr(), ast_say_date_with_format_vi(), schedule(), ast_sched_del(), add_ie(), ast_security_event_report(), _analog_get_index(), analog_attempt_transfer(), analog_call(), analog_hangup(), analog_answer(), __analog_ss_thread(), __analog_handle_event(), analog_exception(), analog_handle_init_event(), pri_active_dchan_index(), pri_find_dchan(), pri_fixup_principle(), pri_find_fixup_principle(), do_idle_thread(), pri_ss_thread(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_hangup(), sig_pri_call(), sig_pri_indicate(), sig_pri_digit_begin(), ss7_handle_cqm(), ss7_start_call(), ss7_linkset(), sig_ss7_add_sigchan(), sig_ss7_call(), sig_ss7_hangup(), sig_ss7_answer(), ast_slinfactory_feed(), parse_srv(), ast_stun_request(), tps_processing_function(), ast_taskprocessor_get(), handle_tcptls_connection(), ast_tcptls_server_root(), ast_tcptls_client_create(), ast_tls_read_conf(), tdd_new(), tdd_feed(), powerof(), framein(), ast_translator_build_path(), calc_cost(), __ast_register_translator(), ast_translate_path_steps(), ast_udptl_read(), calculate_local_max_datagram(), calculate_far_max_ifp(), ast_udptl_new_with_bindaddr(), ast_udptl_write(), ast_udptl_proto_register(), ast_udptl_bridge(), __ast_udptl_reload(), ast_ulaw_init(), ast_pthread_create_stack(), ast_pthread_create_detached_stack(), tvfix(), __ast_string_field_init(), ast_enable_packet_fragmentation(), ast_parse_digest(), create_video_frame(), fbuf_append(), h263p_encap(), h263p_decap(), ffmpeg_encode(), h263_encap(), h263_decap(), h261_decap(), h264_encap(), h264_decap(), map_video_codec(), dec_init(), xmldoc_string_wrap(), xmldoc_get_syntax_fun(), xmldoc_build_field(), and ast_xmldoc_load_documentation().

#define NUMLOGLEVELS   7

Definition at line 184 of file logger.h.

#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 verbose_exec(), and console_verboser().

#define VERBOSE_PREFIX_4   " > "

Definition at line 44 of file logger.h.

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

#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 1523 of file logger.c.

References __ast_verbose_ap().

{
   va_list ap;

   va_start(ap, fmt);
   __ast_verbose_ap(file, line, func, fmt, ap);
   va_end(ap);
}
void __ast_verbose_ap ( const char *  file,
int  line,
const char *  func,
const char *  fmt,
va_list  ap 
)

Definition at line 1487 of file logger.c.

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

Referenced by __ast_verbose(), and ast_verbose().

{
   struct ast_str *buf = NULL;
   int res = 0;

   if (!(buf = ast_str_thread_get(&verbose_buf, VERBOSE_BUF_INIT_SIZE)))
      return;

   if (ast_opt_timestamp) {
      struct timeval now;
      struct ast_tm tm;
      char date[40];
      char *datefmt;

      now = ast_tvnow();
      ast_localtime(&now, &tm, NULL);
      ast_strftime(date, sizeof(date), dateformat, &tm);
      datefmt = alloca(strlen(date) + 3 + strlen(fmt) + 1);
      sprintf(datefmt, "%c[%s] %s", 127, date, fmt);
      fmt = datefmt;
   } else {
      char *tmp = alloca(strlen(fmt) + 2);
      sprintf(tmp, "%c%s", 127, fmt);
      fmt = tmp;
   }

   /* Build string */
   res = ast_str_set_va(&buf, 0, fmt, ap);

   /* If the build failed then we can drop this allocated message */
   if (res == AST_DYNSTR_BUILD_FAILED)
      return;

   ast_log(__LOG_VERBOSE, file, line, func, "%s", ast_str_buffer(buf));
}
void ast_backtrace ( void  )

Definition at line 1457 of file logger.c.

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

{
#ifdef HAVE_BKTR
   struct ast_bt *bt;
   int i = 0;
   char **strings;

   if (!(bt = ast_bt_create())) {
      ast_log(LOG_WARNING, "Unable to allocate space for backtrace structure\n");
      return;
   }

   if ((strings = ast_bt_get_symbols(bt->addresses, bt->num_frames))) {
      ast_debug(1, "Got %d backtrace record%c\n", bt->num_frames, bt->num_frames != 1 ? 's' : ' ');
      for (i = 3; i < bt->num_frames - 2; i++) {
         ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i - 3, bt->addresses[i], strings[i]);
      }

      /* MALLOC_DEBUG will erroneously report an error here, unless we undef the macro. */
#undef free
      free(strings);
   } else {
      ast_debug(1, "Could not allocate memory for backtrace\n");
   }
   ast_bt_destroy(bt);
#else
   ast_log(LOG_WARNING, "Must run configure with '--with-execinfo' for stack backtraces.\n");
#endif /* defined(HAVE_BKTR) */
}
struct ast_bt* ast_bt_create ( void  ) [read]

Definition at line 1280 of file logger.c.

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

Referenced by ast_backtrace().

{
   struct ast_bt *bt = ast_calloc(1, sizeof(*bt));
   if (!bt) {
      ast_log(LOG_ERROR, "Unable to allocate memory for backtrace structure!\n");
      return NULL;
   }

   bt->alloced = 1;

   ast_bt_get_addresses(bt);

   return bt;
}
void* ast_bt_destroy ( struct ast_bt bt)

Definition at line 1302 of file logger.c.

References ast_bt::alloced, and ast_free.

Referenced by ast_backtrace().

{
   if (bt->alloced) {
      ast_free(bt);
   }

   return NULL;
}
char** ast_bt_get_symbols ( void **  addresses,
size_t  num_frames 
)

Definition at line 1311 of file logger.c.

References ast_calloc, ast_bt::num_frames, ast_utils_which(), ast_log(), LOG_DEBUG, ast_malloc, S_OR, ast_free, ast_strlen_zero(), ast_realloc, and ast_copy_string().

Referenced by ao2_bt(), and ast_backtrace().

{
   char **strings = NULL;
#if defined(BETTER_BACKTRACES)
   int stackfr;
   bfd *bfdobj;           /* bfd.h */
   Dl_info dli;           /* dlfcn.h */
   long allocsize;
   asymbol **syms = NULL; /* bfd.h */
   bfd_vma offset;        /* bfd.h */
   const char *lastslash;
   asection *section;
   const char *file, *func;
   unsigned int line;
   char address_str[128];
   char msg[1024];
   size_t strings_size;
   size_t *eachlen;
#endif

#if defined(BETTER_BACKTRACES)
   strings_size = num_frames * sizeof(*strings);
   eachlen = ast_calloc(num_frames, sizeof(*eachlen));

   if (!(strings = ast_calloc(num_frames, sizeof(*strings)))) {
      return NULL;
   }

   for (stackfr = 0; stackfr < num_frames; stackfr++) {
      int found = 0, symbolcount;

      msg[0] = '\0';

      if (!dladdr(addresses[stackfr], &dli)) {
         continue;
      }

      if (strcmp(dli.dli_fname, "asterisk") == 0) {
         char asteriskpath[256];
         if (!(dli.dli_fname = ast_utils_which("asterisk", asteriskpath, sizeof(asteriskpath)))) {
            /* This will fail to find symbols */
            ast_log(LOG_DEBUG, "Failed to find asterisk binary for debug symbols.\n");
            dli.dli_fname = "asterisk";
         }
      }

      lastslash = strrchr(dli.dli_fname, '/');
      if (  (bfdobj = bfd_openr(dli.dli_fname, NULL)) &&
            bfd_check_format(bfdobj, bfd_object) &&
            (allocsize = bfd_get_symtab_upper_bound(bfdobj)) > 0 &&
            (syms = ast_malloc(allocsize)) &&
            (symbolcount = bfd_canonicalize_symtab(bfdobj, syms))) {

         if (bfdobj->flags & DYNAMIC) {
            offset = addresses[stackfr] - dli.dli_fbase;
         } else {
            offset = addresses[stackfr] - (void *) 0;
         }

         for (section = bfdobj->sections; section; section = section->next) {
            if (  !bfd_get_section_flags(bfdobj, section) & SEC_ALLOC ||
                  section->vma > offset ||
                  section->size + section->vma < offset) {
               continue;
            }

            if (!bfd_find_nearest_line(bfdobj, section, syms, offset - section->vma, &file, &func, &line)) {
               continue;
            }

            /* Stack trace output */
            found++;
            if ((lastslash = strrchr(file, '/'))) {
               const char *prevslash;
               for (prevslash = lastslash - 1; *prevslash != '/' && prevslash >= file; prevslash--);
               if (prevslash >= file) {
                  lastslash = prevslash;
               }
            }
            if (dli.dli_saddr == NULL) {
               address_str[0] = '\0';
            } else {
               snprintf(address_str, sizeof(address_str), " (%p+%lX)",
                  dli.dli_saddr,
                  (unsigned long) (addresses[stackfr] - dli.dli_saddr));
            }
            snprintf(msg, sizeof(msg), "%s:%u %s()%s",
               lastslash ? lastslash + 1 : file, line,
               S_OR(func, "???"),
               address_str);

            break; /* out of section iteration */
         }
      }
      if (bfdobj) {
         bfd_close(bfdobj);
         if (syms) {
            ast_free(syms);
         }
      }

      /* Default output, if we cannot find the information within BFD */
      if (!found) {
         if (dli.dli_saddr == NULL) {
            address_str[0] = '\0';
         } else {
            snprintf(address_str, sizeof(address_str), " (%p+%lX)",
               dli.dli_saddr,
               (unsigned long) (addresses[stackfr] - dli.dli_saddr));
         }
         snprintf(msg, sizeof(msg), "%s %s()%s",
            lastslash ? lastslash + 1 : dli.dli_fname,
            S_OR(dli.dli_sname, "<unknown>"),
            address_str);
      }

      if (!ast_strlen_zero(msg)) {
         char **tmp;
         eachlen[stackfr] = strlen(msg);
         if (!(tmp = ast_realloc(strings, strings_size + eachlen[stackfr] + 1))) {
            ast_free(strings);
            strings = NULL;
            break; /* out of stack frame iteration */
         }
         strings = tmp;
         strings[stackfr] = (char *) strings + strings_size;
         ast_copy_string(strings[stackfr], msg, eachlen[stackfr] + 1);
         strings_size += eachlen[stackfr] + 1;
      }
   }

   if (strings) {
      /* Recalculate the offset pointers */
      strings[0] = (char *) strings + num_frames * sizeof(*strings);
      for (stackfr = 1; stackfr < num_frames; stackfr++) {
         strings[stackfr] = strings[stackfr - 1] + eachlen[stackfr - 1] + 1;
      }
   }
#else /* !defined(BETTER_BACKTRACES) */
   strings = backtrace_symbols(addresses, num_frames);
#endif /* defined(BETTER_BACKTRACES) */
   return strings;
}
void ast_child_verbose ( int  level,
const char *  fmt,
  ... 
)

Definition at line 426 of file logger.c.

References option_verbose, ast_malloc, and ast_free.

Referenced by launch_script().

{
   char *msg = NULL, *emsg = NULL, *sptr, *eptr;
   va_list ap, aq;
   int size;

   /* Don't bother, if the level isn't that high */
   if (option_verbose < level) {
      return;
   }

   va_start(ap, fmt);
   va_copy(aq, ap);
   if ((size = vsnprintf(msg, 0, fmt, ap)) < 0) {
      va_end(ap);
      va_end(aq);
      return;
   }
   va_end(ap);

   if (!(msg = ast_malloc(size + 1))) {
      va_end(aq);
      return;
   }

   vsnprintf(msg, size + 1, fmt, aq);
   va_end(aq);

   if (!(emsg = ast_malloc(size * 2 + 1))) {
      ast_free(msg);
      return;
   }

   for (sptr = msg, eptr = emsg; ; sptr++) {
      if (*sptr == '"') {
         *eptr++ = '\\';
      }
      *eptr++ = *sptr;
      if (*sptr == '\0') {
         break;
      }
   }
   ast_free(msg);

   fprintf(stdout, "verbose \"%s\" %d\n", emsg, level);
   fflush(stdout);
   ast_free(emsg);
}
void ast_console_puts ( const char *  string)

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

Definition at line 1169 of file asterisk.c.

References ast_network_puts().

Referenced by chan_misdn_log().

{
   fputs(string, stdout);
   fflush(stdout);
   ast_network_puts(string);
}
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 1146 of file asterisk.c.

References ast_network_puts_mutable().

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

{
   fputs(string, stdout);
   fflush(stdout);
   ast_network_puts_mutable(string, level);
}
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)

Definition at line 1089 of file asterisk.c.

References AST_MAX_CONNECTS, consoles, and console::levels.

Referenced by handle_logger_set_level().

{
   int x;
   for (x = 0;x < AST_MAX_CONNECTS; x++) {
      if (fd == consoles[x].fd) {
         /*
          * Since the logging occurs when levels are false, set to
          * flipped iinput because this function accepts 0 as off and 1 as on
          */
         consoles[x].levels[level] = state ? 0 : 1;
         return;
      }
   }
}
void ast_console_toggle_mute ( int  fd,
int  silent 
)

mute or unmute a console from logging

Definition at line 1107 of file asterisk.c.

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

Referenced by handle_logger_mute().

                                                 {
   int x;
   for (x = 0;x < AST_MAX_CONNECTS; x++) {
      if (fd == consoles[x].fd) {
         if (consoles[x].mute) {
            consoles[x].mute = 0;
            if (!silent)
               ast_cli(fd, "Console is not muted anymore.\n");
         } else {
            consoles[x].mute = 1;
            if (!silent)
               ast_cli(fd, "Console is muted.\n");
         }
         return;
      }
   }
   ast_cli(fd, "Couldn't find remote console.\n");
}
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 120 of file cli.c.

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

{
   struct module_level *ml;
   unsigned int res = 0;

   AST_RWLIST_RDLOCK(&debug_modules);
   AST_LIST_TRAVERSE(&debug_modules, ml, entry) {
      if (!strcasecmp(ml->module, module)) {
         res = ml->level;
         break;
      }
   }
   AST_RWLIST_UNLOCK(&debug_modules);

   return res;
}
void ast_log ( int  level,
const char *  file,
int  line,
const char *  function,
const char *  fmt,
  ... 
)

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

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

Definition at line 1186 of file logger.c.

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

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

{
   struct logmsg *logmsg = NULL;
   struct ast_str *buf = NULL;
   struct ast_tm tm;
   struct timeval now = ast_tvnow();
   int res = 0;
   va_list ap;
   char datestring[256];

   if (!(buf = ast_str_thread_get(&log_buf, LOG_BUF_INIT_SIZE)))
      return;

   if (level != __LOG_VERBOSE && AST_RWLIST_EMPTY(&logchannels)) {
      /*
       * we don't have the logger chain configured yet,
       * so just log to stdout
       */
      int result;
      va_start(ap, fmt);
      result = ast_str_set_va(&buf, BUFSIZ, fmt, ap); /* XXX BUFSIZ ? */
      va_end(ap);
      if (result != AST_DYNSTR_BUILD_FAILED) {
         term_filter_escapes(ast_str_buffer(buf));
         fputs(ast_str_buffer(buf), stdout);
      }
      return;
   }
   
   /* don't display LOG_DEBUG messages unless option_verbose _or_ option_debug
      are non-zero; LOG_DEBUG messages can still be displayed if option_debug
      is zero, if option_verbose is non-zero (this allows for 'level zero'
      LOG_DEBUG messages to be displayed, if the logmask on any channel
      allows it)
   */
   if (!option_verbose && !option_debug && (level == __LOG_DEBUG))
      return;

   /* Ignore anything that never gets logged anywhere */
   if (level != __LOG_VERBOSE && !(global_logmask & (1 << level)))
      return;
   
   /* Build string */
   va_start(ap, fmt);
   res = ast_str_set_va(&buf, BUFSIZ, fmt, ap);
   va_end(ap);

   /* If the build failed, then abort and free this structure */
   if (res == AST_DYNSTR_BUILD_FAILED)
      return;

   /* Create a new logging message */
   if (!(logmsg = ast_calloc_with_stringfields(1, struct logmsg, res + 128)))
      return;

   /* Copy string over */
   ast_string_field_set(logmsg, message, ast_str_buffer(buf));

   /* Set type */
   if (level == __LOG_VERBOSE) {
      logmsg->type = LOGMSG_VERBOSE;
   } else {
      logmsg->type = LOGMSG_NORMAL;
   }

   /* Create our date/time */
   ast_localtime(&now, &tm, NULL);
   ast_strftime(datestring, sizeof(datestring), dateformat, &tm);
   ast_string_field_set(logmsg, date, datestring);

   /* Copy over data */
   logmsg->level = level;
   logmsg->line = line;
   ast_string_field_set(logmsg, level_name, levels[level]);
   ast_string_field_set(logmsg, file, file);
   ast_string_field_set(logmsg, function, function);
   logmsg->process_id = (long) GETTID();

   /* If the logger thread is active, append it to the tail end of the list - otherwise skip that step */
   if (logthread != AST_PTHREADT_NULL) {
      AST_LIST_LOCK(&logmsgs);
      AST_LIST_INSERT_TAIL(&logmsgs, logmsg, list);
      ast_cond_signal(&logcond);
      AST_LIST_UNLOCK(&logmsgs);
   } else {
      logger_print_normal(logmsg);
      ast_free(logmsg);
   }

   return;
}
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 1594 of file logger.c.

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

Referenced by ast_cc_init(), and load_module().

{
   unsigned int level;
   unsigned int available = 0;

   AST_RWLIST_WRLOCK(&logchannels);

   for (level = 0; level < ARRAY_LEN(levels); level++) {
      if ((level >= 16) && !available && !levels[level]) {
         available = level;
         continue;
      }

      if (levels[level] && !strcasecmp(levels[level], name)) {
         ast_log(LOG_WARNING,
            "Unable to register dynamic logger level '%s': a standard logger level uses that name.\n",
            name);
         AST_RWLIST_UNLOCK(&logchannels);

         return -1;
      }
   }

   if (!available) {
      ast_log(LOG_WARNING,
         "Unable to register dynamic logger level '%s'; maximum number of levels registered.\n",
         name);
      AST_RWLIST_UNLOCK(&logchannels);

      return -1;
   }

   levels[available] = ast_strdup(name);

   AST_RWLIST_UNLOCK(&logchannels);

   ast_debug(1, "Registered dynamic logger level '%s' with index %d.\n", name, available);

   update_logchannels();

   return available;
}
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 1637 of file logger.c.

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

Referenced by unload_module(), and load_module().

{
   unsigned int found = 0;
   unsigned int x;

   AST_RWLIST_WRLOCK(&logchannels);

   for (x = 16; x < ARRAY_LEN(levels); x++) {
      if (!levels[x]) {
         continue;
      }

      if (strcasecmp(levels[x], name)) {
         continue;
      }

      found = 1;
      break;
   }

   if (found) {
      /* take this level out of the global_logmask, to ensure that no new log messages
       * will be queued for it
       */

      global_logmask &= ~(1 << x);

      free(levels[x]);
      levels[x] = NULL;
      AST_RWLIST_UNLOCK(&logchannels);

      ast_debug(1, "Unregistered dynamic logger level '%s' with index %d.\n", name, x);

      update_logchannels();
   } else {
      AST_RWLIST_UNLOCK(&logchannels);
   }
}
void ast_queue_log ( const char *  queuename,
const char *  callid,
const char *  agent,
const char *  event,
const char *  fmt,
  ... 
)

Definition at line 475 of file logger.c.

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

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

{
   va_list ap;
   struct timeval tv;
   struct ast_tm tm;
   char qlog_msg[8192];
   int qlog_len;
   char time_str[30];

   if (!logger_initialized) {
      /* You are too early.  We are not open yet! */
      return;
   }
   if (!queuelog_init) {
      AST_RWLIST_WRLOCK(&logchannels);
      if (!queuelog_init) {
         /*
          * We have delayed initializing the queue logging system so
          * preloaded realtime modules can get up.  We must initialize
          * now since someone is trying to log something.
          */
         logger_queue_init();
         queuelog_init = 1;
         AST_RWLIST_UNLOCK(&logchannels);
         ast_queue_log("NONE", "NONE", "NONE", "QUEUESTART", "%s", "");
      } else {
         AST_RWLIST_UNLOCK(&logchannels);
      }
   }

   if (ast_check_realtime("queue_log")) {
      tv = ast_tvnow();
      ast_localtime(&tv, &tm, NULL);
      ast_strftime(time_str, sizeof(time_str), "%F %T.%6q", &tm);
      va_start(ap, fmt);
      vsnprintf(qlog_msg, sizeof(qlog_msg), fmt, ap);
      va_end(ap);
      if (logfiles.queue_adaptive_realtime) {
         AST_DECLARE_APP_ARGS(args,
            AST_APP_ARG(data)[5];
         );
         AST_NONSTANDARD_APP_ARGS(args, qlog_msg, '|');
         /* Ensure fields are large enough to receive data */
         ast_realtime_require_field("queue_log",
            "data1", RQ_CHAR, strlen(S_OR(args.data[0], "")),
            "data2", RQ_CHAR, strlen(S_OR(args.data[1], "")),
            "data3", RQ_CHAR, strlen(S_OR(args.data[2], "")),
            "data4", RQ_CHAR, strlen(S_OR(args.data[3], "")),
            "data5", RQ_CHAR, strlen(S_OR(args.data[4], "")),
            SENTINEL);

         /* Store the log */
         ast_store_realtime("queue_log", "time", time_str,
            "callid", callid,
            "queuename", queuename,
            "agent", agent,
            "event", event,
            "data1", S_OR(args.data[0], ""),
            "data2", S_OR(args.data[1], ""),
            "data3", S_OR(args.data[2], ""),
            "data4", S_OR(args.data[3], ""),
            "data5", S_OR(args.data[4], ""),
            SENTINEL);
      } else {
         ast_store_realtime("queue_log", "time", time_str,
            "callid", callid,
            "queuename", queuename,
            "agent", agent,
            "event", event,
            "data", qlog_msg,
            SENTINEL);
      }

      if (!logfiles.queue_log_to_file) {
         return;
      }
   }

   if (qlog) {
      va_start(ap, fmt);
      qlog_len = snprintf(qlog_msg, sizeof(qlog_msg), "%ld|%s|%s|%s|%s|", (long)time(NULL), callid, queuename, agent, event);
      vsnprintf(qlog_msg + qlog_len, sizeof(qlog_msg) - qlog_len, fmt, ap);
      va_end(ap);
      AST_RWLIST_RDLOCK(&logchannels);
      if (qlog) {
         fprintf(qlog, "%s\n", qlog_msg);
         fflush(qlog);
      }
      AST_RWLIST_UNLOCK(&logchannels);
   }
}
int ast_register_verbose ( void(*)(const char *string verboser)

Definition at line 1544 of file logger.c.

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

Referenced by ast_makesocket(), and main().

{
   struct verb *verb;

   if (!(verb = ast_malloc(sizeof(*verb))))
      return -1;

   verb->verboser = v;

   AST_RWLIST_WRLOCK(&verbosers);
   AST_RWLIST_INSERT_HEAD(&verbosers, verb, list);
   AST_RWLIST_UNLOCK(&verbosers);
   
   return 0;
}
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 137 of file cli.c.

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

{
   struct module_level *ml;
   unsigned int res = 0;

   AST_RWLIST_RDLOCK(&verbose_modules);
   AST_LIST_TRAVERSE(&verbose_modules, ml, entry) {
      if (!strcasecmp(ml->module, module)) {
         res = ml->level;
         break;
      }
   }
   AST_RWLIST_UNLOCK(&verbose_modules);

   return res;
}
int logger_reload ( void  )

Reload logger without rotating log files.

Definition at line 793 of file logger.c.

References reload_logger(), RESULT_FAILURE, and RESULT_SUCCESS.

{
   if (reload_logger(0)) {
      return RESULT_FAILURE;
   }
   return RESULT_SUCCESS;
}