#include "asterisk/compat.h"
#include <stdarg.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.
Defines | |
#define | __LOG_DEBUG 0 |
#define | __LOG_DTMF 6 |
#define | __LOG_ERROR 4 |
#define | __LOG_EVENT 1 |
#define | __LOG_NOTICE 2 |
#define | __LOG_VERBOSE 5 |
#define | __LOG_WARNING 3 |
#define | _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__ |
#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_EVENT __LOG_EVENT, _A_ |
#define | LOG_NOTICE __LOG_NOTICE, _A_ |
#define | LOG_VERBOSE __LOG_VERBOSE, _A_ |
#define | LOG_WARNING __LOG_WARNING, _A_ |
#define | QUEUELOG "queue_log" |
#define | VERBOSE_PREFIX_1 " " |
#define | VERBOSE_PREFIX_2 " == " |
#define | VERBOSE_PREFIX_3 " -- " |
#define | VERBOSE_PREFIX_4 " > " |
Functions | |
void void | ast_backtrace (void) |
void | ast_console_puts (const char *string) |
void | ast_console_puts_mutable (const char *string) |
log the string to the console, and all attached console clients | |
void | ast_console_toggle_mute (int fd) |
mute or unmute a console from logging | |
void | ast_log (int level, const char *file, int line, const char *function, const char *fmt,...) __attribute__((format(printf |
This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(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. | |
void | ast_queue_log (const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt,...) __attribute__((format(printf |
void void int | ast_register_verbose (void(*verboser)(const char *string)) |
int | ast_unregister_verbose (void(*verboser)(const char *string)) |
void void | ast_verbose (const char *fmt,...) __attribute__((format(printf |
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. |
Definition in file logger.h.
#define __LOG_DEBUG 0 |
Definition at line 93 of file logger.h.
Referenced by ast_log(), ast_log_vsyslog(), handle_logger_show_channels(), log_exec(), make_components(), and span_message().
#define __LOG_DTMF 6 |
Definition at line 129 of file logger.h.
Referenced by ast_log_vsyslog(), handle_logger_show_channels(), log_exec(), and make_components().
#define __LOG_ERROR 4 |
Definition at line 117 of file logger.h.
Referenced by handle_logger_show_channels(), log_exec(), and make_components().
#define __LOG_EVENT 1 |
Definition at line 99 of file logger.h.
Referenced by ast_log(), handle_logger_show_channels(), log_exec(), and make_components().
#define __LOG_NOTICE 2 |
Definition at line 105 of file logger.h.
Referenced by handle_logger_show_channels(), log_exec(), and make_components().
#define __LOG_VERBOSE 5 |
Definition at line 123 of file logger.h.
Referenced by ast_log(), ast_log_vsyslog(), handle_logger_show_channels(), log_exec(), and make_components().
#define __LOG_WARNING 3 |
Definition at line 111 of file logger.h.
Referenced by handle_logger_show_channels(), log_exec(), make_components(), and span_message().
#define EVENTLOG "event_log" |
#define LOG_DEBUG __LOG_DEBUG, _A_ |
Definition at line 94 of file logger.h.
Referenced by __adsi_transmit_messages(), __ast_check_signature_bin(), __ast_device_state_changed_literal(), __ast_pbx_run(), __ast_play_and_record(), __ast_read(), __login_exec(), __oh323_destroy(), __oh323_rtp_create(), __oh323_update_info(), __sip_ack(), __sip_autodestruct(), __sip_destroy(), __sip_reliable_xmit(), __sip_semi_ack(), __zt_exception(), _macro_exec(), acf_rand_exec(), action_waitevent(), add_realm_authentication(), add_sdp(), add_sip_domain(), add_t38_sdp(), add_to_interfaces(), adsi_load_vmail(), advanced_options(), agent_bridgedchannel(), agent_call(), agent_cont_sleep(), agent_hangup(), agent_read(), agent_request(), agent_write(), aji_act_hook(), aji_handle_presence(), aji_recv_loop(), alarmreceiver_exec(), alloc_sub(), alsa_card_init(), alsa_write(), answer_call(), app_exec(), append_transaction(), array(), ast_add_hint(), ast_adsi_begin_download(), ast_adsi_load_session(), ast_adsi_transmit_message_full(), ast_append_ha(), ast_apply_ha(), ast_bridge_call(), ast_cdr_detach(), ast_cdr_submit_batch(), ast_channel_bridge(), ast_channel_formats_reset(), ast_channel_inherit_variables(), ast_channel_masquerade(), ast_channel_register(), ast_channel_spy_add(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_channel_unregister(), ast_codec_choose(), ast_control_streamfile(), ast_db_del(), ast_db_get(), ast_device_state(), ast_dial_run(), ast_do_masquerade(), ast_dsp_busydetect(), ast_dsp_process(), ast_dsp_set_busy_pattern(), ast_feature_interpret(), ast_frame_dump(), ast_get_enum(), ast_get_txt(), ast_hangup(), ast_indicate_data(), ast_internal_timing_enabled(), ast_io_add(), ast_io_dump(), ast_io_wait(), ast_ivr_menu_run_internal(), ast_lock_path(), ast_moh_destroy_one(), ast_monitor_start(), ast_monitor_stop(), ast_parse_allow_disallow(), ast_pickup_call(), ast_prod(), ast_queue_frame(), ast_read_generator_actions(), ast_rtcp_read(), ast_rtp_early_bridge(), ast_rtp_make_compatible(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_write(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_en(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), ast_say_date_with_format_gr(), ast_say_date_with_format_he(), ast_say_date_with_format_it(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), ast_say_date_with_format_ru(), ast_say_date_with_format_tw(), ast_say_enumeration_full_da(), ast_say_enumeration_full_de(), ast_say_enumeration_full_en(), ast_say_number_full_da(), ast_say_number_full_de(), ast_say_number_full_en(), ast_say_number_full_en_GB(), ast_say_number_full_es(), ast_say_number_full_fr(), ast_say_number_full_gr(), ast_say_number_full_he(), ast_say_number_full_it(), ast_say_number_full_nl(), ast_say_number_full_no(), ast_say_number_full_ru(), ast_say_number_full_se(), ast_say_number_full_tw(), ast_sched_add_variable(), ast_sched_del(), ast_sched_dump(), ast_sched_runq(), ast_sched_wait(), ast_sched_when(), ast_search_dns(), ast_senddigit_begin(), ast_settimeout(), ast_sip_ouraddrfor(), ast_smdi_mwi_set(), ast_smdi_mwi_unset(), ast_softhangup_nolock(), ast_streamfile(), ast_udptl_bridge(), ast_udptl_read(), ast_unlock_path(), ast_writestream(), asyncgoto_exec(), attempt_transfer(), authenticate(), available(), background_detect_exec(), bridge_native_loop(), bridge_p2p_rtp_write(), build_peer(), build_reply_digest(), build_route(), build_transactions(), builtin_atxfer(), cache_lookup_internal(), cache_save_hint(), callerid_feed_jp(), callerid_get_dtmf(), cdr_pgsql_connect(), chan_ringing(), changethread(), channel_find_locked(), check_availability(), check_beep(), check_key(), check_pendings(), cleanup_connection(), cmd_link_up_down(), compare_weight(), conf_add(), conf_del(), conf_run(), config_mysql(), config_pgsql(), config_text_file_load(), config_text_file_save(), connection_made(), create_addr_from_peer(), create_followme_number(), crypto_load(), database_first_connect(), del_exec(), deltree_exec(), disa_exec(), do_cdr(), do_dtmf_local(), do_monitor(), do_parking_thread(), do_proxy_auth(), do_register(), do_register_expire(), do_setnat(), do_state_change(), do_waiting(), dump_agents(), dundi_answer_entity(), dundi_answer_query(), dundi_decrypt(), dundi_encrypt(), dundi_lookup_internal(), dundi_lookup_thread(), dundi_precache_internal(), dundi_precache_thread(), dundi_query_thread(), external_rtp_create(), festival_exec(), find_call(), find_callno(), find_conf(), find_peer(), find_queue_by_name_rt(), find_subchannel_and_lock(), find_transcoders(), find_user(), findmeexec(), forward_message(), function_db_delete(), function_db_read(), g726_open(), generator_force(), get_also_info(), get_destination(), get_refer_info(), get_sip_pvt_byid_locked(), getproviderstate(), gosub_exec(), gtalk_alloc(), gtalk_answer(), gtalk_hangup_farend(), gtalk_is_answered(), gtalk_parser(), gtalk_rtp_read(), gtalk_update_stun(), handle_command_response(), handle_frame(), handle_getoption(), handle_invite_replaces(), handle_offhook_message(), handle_request(), handle_request_bye(), handle_request_cancel(), handle_request_invite(), handle_request_notify(), handle_request_refer(), handle_request_subscribe(), handle_response(), handle_response_invite(), handle_response_refer(), handle_response_register(), handle_stimulus_message(), handle_streamfile(), hangup_cause2sip(), hangup_connection(), http_server_start(), iax_provision_version(), ices_exec(), init_manager(), initialize_initreq(), io_grow(), is_our_turn(), isAnsweringMachine(), jb_put(), join_queue(), launch_netscript(), leave_queue(), leave_voicemail(), load_config(), load_module(), local_attended_transfer(), local_devicestate(), local_write(), log_events(), make_email_file(), measurenoise(), meetme_cmd(), metermaidstate(), mgcp_answer(), mgcp_hangup(), mgcp_rtp_read(), mgcp_ss(), mgcpsock_read(), misdn_hangup(), mkif(), moh_register(), mp3_exec(), my_load_module(), my_zt_write(), mysql_log(), mysql_reconnect(), nbs_call(), nbs_hangup(), nbs_xread(), NBScat_exec(), notify_metermaids(), nv_background_detect_exec(), nv_detectfax_exec(), odbc_load_module(), oh323_answer(), oh323_call(), oh323_destroy(), oh323_destroy_alias(), oh323_destroy_peer(), oh323_destroy_user(), oh323_hangup(), oh323_indicate(), oh323_request(), oh323_rtp_read(), osp_auth(), osp_check_destination(), osp_create_provider(), osp_create_transaction(), osp_finish(), osp_get_policy(), osp_load(), osp_lookup(), osp_next(), osp_validate_token(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), parse_config(), parse_moved_contact(), parse_naptr(), parse_request(), parse_sip_options(), pbx_extension_helper(), pbx_substitute_variables_helper_full(), pgsql_log(), pgsql_reconnect(), phase_d_handler(), phase_e_handler(), phone_answer(), phone_call(), phone_check_exception(), phone_digit_end(), phone_exception(), phone_hangup(), phone_indicate(), pickup_do(), pl_odtworz_plik(), play_message_callerid(), play_message_duration(), precache_transactions(), printdigest(), process_ast_dsp(), process_cisco_dtmf(), process_message(), process_my_load_module(), process_rfc2833(), process_rfc3389(), process_sdp(), progress(), queue_exec(), queue_frame_to_spies(), quit_handler(), radius_log(), realtime_multi_mysql(), realtime_multi_pgsql(), realtime_mysql(), realtime_pgsql(), rebuild_matrix(), receive_ademco_contact_id(), receive_dtmf_digits(), reg_source_db(), regex(), register_request(), reload(), reload_agents(), reload_followme(), reload_queue_members(), remove_from_interfaces(), reqprep(), reset_global_eid(), restore_conference(), retrans_pkt(), ring_entry(), ring_one(), rqm_exec(), run_agi(), run_externnotify(), run_ras(), rxfax_exec(), save_conference(), save_to_folder(), scan_service(), sched_settime(), schedule_delivery(), send_child_event(), send_digit_to_chan(), send_dtmf(), send_packet(), send_request(), send_waveform_to_channel(), sendmail(), sendpage(), set_actual_rxgain(), set_actual_txgain(), set_dtmf_payload(), set_format(), set_local_capabilities(), set_member_paused(), set_peer_capabilities(), setup_incoming_call(), setup_rtp_connection(), sip_addheader(), sip_alloc(), sip_alreadygone(), sip_answer(), sip_call(), sip_destroy(), sip_destroy_peer(), sip_destroy_user(), sip_devicestate(), sip_do_reload(), sip_dump_history(), sip_fixup(), sip_handle_t38_reinvite(), sip_hangup(), sip_new(), sip_park(), sip_park_thread(), sip_read(), sip_registry_destroy(), sip_request_call(), sip_rtp_read(), sip_set_rtp_peer(), sip_set_udptl_peer(), sipsock_read(), skinny_hangup(), skinny_rtp_read(), skinny_ss(), sla_handle_dial_state_event(), sla_queue_event_conf(), sla_station_exec(), smdi_read(), spy_detach(), ss_thread(), store_next(), stun_handle_packet(), swap_subs(), t38_get_rate(), tds_load_module(), test1_client(), test1_server(), testclient_exec(), testserver_exec(), transmit_invite(), transmit_refer(), transmit_register(), transmit_response_with_sdp(), transmit_trunk(), try_calling(), try_load_key(), txfax_exec(), unalloc_sub(), unload_module(), unwrap_timestamp(), update_call_counter(), update_max_nontrunk(), update_max_trunk(), update_mysql(), update_pgsql(), update_realtime_members(), vm_authenticate(), vm_change_password(), vm_execmain(), vm_newuser(), vm_options(), wait_for_answer(), wait_for_winner(), write_metadata(), zt_answer(), zt_bridge(), zt_call(), zt_digit_begin(), zt_digit_end(), zt_disable_ec(), zt_enable_ec(), zt_fixup(), zt_handle_dtmfup(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), zt_request(), zt_setoption(), zt_train_ec(), zt_unlink(), and zt_write().
#define LOG_DTMF __LOG_DTMF, _A_ |
Definition at line 130 of file logger.h.
Referenced by __ast_read(), __oh323_update_info(), oh323_digit_begin(), oh323_digit_end(), oh323_rtp_read(), and receive_digit().
#define LOG_ERROR __LOG_ERROR, _A_ |
Definition at line 118 of file logger.h.
Referenced by __agent_start_monitoring(), __get_from_jb(), __oh323_rtp_create(), _macro_exec(), acf_channel_read(), acf_curl_exec(), acf_cut_exec(), acf_odbc_read(), acf_odbc_write(), acf_sort_exec(), acf_sprintf(), acf_strptime(), advanced_options(), agent_new(), agi_debug_cli(), aji_act_hook(), aji_client_connect(), aji_client_info_handler(), aji_client_initialize(), aji_component_initialize(), aji_create_client(), aji_dinfo_handler(), aji_ditems_handler(), aji_find_version(), aji_handle_presence(), aji_handle_subscribe(), aji_register_approve_handler(), aji_register_query_handler(), aji_reload(), aji_send_exec(), aji_set_presence(), aji_status_exec(), alsa_card_init(), alsa_read(), alsa_write(), answer_call(), anti_injection(), ao2_ref(), app_exec(), aqm_exec(), ast_aji_create_chat(), ast_aji_invite_chat(), ast_aji_join_chat(), ast_aji_send(), ast_cdr_alloc(), ast_cdr_engine_init(), ast_cdr_serialize_variables(), ast_cdr_setvar(), ast_channel_free(), ast_channel_setoption(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_custom_function_register(), ast_device_state_engine_init(), ast_el_read_char(), ast_func_read(), ast_func_write(), ast_get_group(), ast_jb_put(), ast_lock_path(), ast_netsock_bindaddr(), ast_park_call(), ast_pbx_outgoing_exten(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_new_with_bindaddr(), ast_rtp_read(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), ast_rtp_senddigit_end(), ast_say_date_with_format_ru(), ast_smdi_mwi_set(), ast_smdi_mwi_unset(), ast_unlock_path(), async_wait(), authenticate(), build_channels(), build_device(), build_peer(), build_user(), builtin_automonitor(), callerid_feed(), callerid_feed_jp(), callerid_read(), callerid_write(), cb_events(), cdr_pgsql_connect(), chan_ringing(), chandup(), chanspy_exec(), check_break(), check_context_names(), check_continue(), check_goto(), check_label(), check_pval_item(), check_srcaddr(), cmd_link_up_down(), complete_context_add_ignorepat(), complete_context_add_ignorepat_deprecated(), complete_context_add_include(), complete_context_add_include_deprecated(), complete_context_dont_include_deprecated(), complete_context_remove_extension(), complete_context_remove_extension_deprecated(), complete_context_remove_include(), conf_exec(), config_text_file_load(), connection_made(), copy_data_from_queue(), copy_message(), csv_log(), custom_log(), database_first_connect(), directory_exec(), dnsmgr_init(), do_monitor(), do_parking_thread(), do_reload(), donodelog(), execif_exec(), extension_matches(), extenspy_exec(), external_rtp_create(), filter(), find_matching_endwhile(), find_pval_goto_item(), findmeexec(), forward_message(), framein(), func_channel_write(), function_autopatchup(), gosub_exec(), gtalk_alloc(), gtalk_create_candidates(), gtalk_create_member(), gtalk_digit(), gtalk_invite(), gtalk_invite_response(), gtalk_request(), h323_gk_cycle(), handle_invite_replaces(), handle_open_receive_channel_ack_message(), handle_register_message(), handle_request(), handle_response_invite(), iax_frame_wrap(), init_logger(), INTERNAL_OBJ(), jb_error_output(), jb_get_and_deliver(), leave_voicemail(), listener(), load_config(), load_module(), load_pbx(), load_realtime_queue(), log_exec(), main(), misdn_request(), mixmonitor_thread(), mkintf(), monitor_main(), mp3_rewrite(), mp3_trunc(), mp3_write(), mssql_connect(), my_load_module(), mysql_log(), mysql_reconnect(), netconsole(), odbc_load_module(), ogg_vorbis_open(), ogg_vorbis_rewrite(), ogg_vorbis_write(), oh323_alloc(), oh323_digit_begin(), oh323_digit_end(), oh323_read(), oh323_set_rtp_peer(), osp_create_provider(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), parse_config(), parse_gain_value(), pbx_builtin_serialize_variables(), pbx_load_module(), pbx_substitute_variables_helper_full(), pgsql_log(), pgsql_reconnect(), pgsql_test_connection(), phone_request(), process_my_load_module(), process_sdp(), process_zap(), progress(), queue_frame_to_spies(), queue_function_qac(), queue_function_queuememberlist(), queue_function_queuewaitingcount(), radius_log(), readfile_exec(), realtime_exec(), realtime_odbc(), realtime_update_exec(), receive_digit(), regex(), register_verify(), reload(), reload_config(), reload_logger(), reload_queue_members(), restart_monitor(), retrydial_exec(), return_exec(), rpt_do_lstats(), rpt_master(), rpt_tele_thread(), run_externnotify(), send_packet(), set_config(), setrem(), setup_incoming_call(), setup_rtp_connection(), setup_zap(), sha1(), sip_park_thread(), sip_register(), sip_request_call(), sip_sipredirect(), sipsock_read(), skinny_call(), skinny_req_parse(), sla_build_trunk(), sla_queue_event_conf(), sla_state(), sla_trunk_exec(), sms_exec(), socket_process(), sound_thread(), soundcard_init(), sqlite_log(), tdd_feed(), tds_load_module(), tds_log(), timeout_read(), timeout_write(), transmit_response_with_sdp(), transmit_response_with_t38_sdp(), unload_module(), update_call_counter(), vm_box_exists(), vm_exec(), zap_translate(), and zt_sendtext().
#define LOG_EVENT __LOG_EVENT, _A_ |
Definition at line 100 of file logger.h.
Referenced by ast_log(), attempt_thread(), init_logger(), process_message(), reload_logger(), scan_service(), session_do(), sms_process(), and sms_readfile().
#define LOG_NOTICE __LOG_NOTICE, _A_ |
Definition at line 106 of file logger.h.
Referenced by __ast_decrypt_bin(), __ast_dsp_call_progress(), __ast_encrypt_bin(), __ast_read(), __ast_request_and_dial(), __ast_smoother_feed(), __auto_congest(), __iax2_poke_noanswer(), __login_exec(), __schedule_action(), accept_thread(), add_in_calls(), add_out_calls(), admin_exec(), adsi_prog(), agent_call(), agent_hangup(), agent_read(), agent_request(), aji_client_info_handler(), aji_dinfo_handler(), aji_handle_presence(), aji_status_exec(), alsa_request(), alsa_write(), answer_call(), app_exec(), apply_outgoing(), aqm_exec(), ast_app_dtget(), ast_cdr_free(), ast_config_engine_register(), ast_db_get(), ast_dsp_busydetect(), ast_feature_request_and_dial(), ast_register_feature(), ast_rtp_read(), ast_sched_add_variable(), ast_sip_ouraddrfor(), ast_smdi_md_message_pop(), ast_smdi_mwi_message_pop(), ast_udptl_write(), ast_unregister_indication_country(), attempt_reconnect(), attempt_thread(), attempt_transfer(), authenticate(), auto_congest(), bridge_p2p_loop(), build_peer(), build_user(), builtin_automonitor(), callerid_feed(), callerid_feed_jp(), cb_events(), cdr_merge_vars(), chanspy_exec(), check_auth(), check_key(), check_post(), check_tx_freq(), check_user_full(), cleanup_connection(), config_odbc(), connect_link(), convertcap(), copy_header(), copy_message(), copy_via_headers(), crypto_load(), destroy_trans(), dnsmgr_refresh(), do_autokill(), do_monitor(), do_register(), do_reload(), do_scheduler(), dump_queue(), dundi_encrypt(), dundi_exec(), dundi_helper(), dundi_precache_full(), dundi_precache_internal(), dundi_rexmit(), dundi_send(), extenspy_exec(), feature_exec_app(), features_alloc(), features_call(), find_line_by_name(), find_subchannel_and_lock(), function_ilink(), group_count_function_read(), gtalk_create_candidates(), gtalk_handle_dtmf(), gtalk_hangup_farend(), gtalk_indicate(), gtalk_is_answered(), gtalk_newcall(), gtalk_sendhtml(), handle_add_indication(), handle_command_response(), handle_init_event(), handle_invite_replaces(), handle_link_data(), handle_playtones(), handle_request(), handle_request_bye(), handle_request_invite(), handle_request_notify(), handle_request_register(), handle_request_subscribe(), handle_response(), handle_response_invite(), handle_response_peerpoke(), handle_response_refer(), handle_response_register(), http_server_start(), iax2_canmatch(), iax2_destroy(), iax2_exec(), iax2_exists(), iax2_matchmore(), iax2_poke_peer(), iax2_prov_app(), iax2_read(), iax_park_thread(), iax_provision_reload(), import_ch(), increase_call_count(), ind_load_module(), ivr_dispatch(), leave_voicemail(), load_config(), load_config_meetme(), load_module(), load_odbc_config(), load_rpt_vars(), local_alloc(), lookupblacklist_exec(), manager_isdn_handler(), measurenoise(), meetmemute(), mgcp_call(), mgcp_fixup(), mgcp_postrequest(), mgcp_request(), mgcp_rtp_read(), mgcpsock_read(), misdn_bridge(), misdn_hangup(), mixmonitor_exec(), moh3_exec(), monitor_main(), monmp3thread(), my_load_module(), nbs_request(), nv_background_detect_exec(), nv_detectfax_exec(), odbc_load_module(), odbc_obj_connect(), oh323_call(), oh323_request(), oh323_rtp_read(), open_mailbox(), oss_request(), parse_register_contact(), pbx_builtin_hangup(), pbx_extension_helper(), pbx_load_module(), pbx_substitute_variables_helper_full(), phone_request(), pickup_exec(), process_ast_dsp(), process_rfc3389(), process_sdp(), read_agent_config(), realtime_exec(), register_verify(), registry_rerequest(), reload(), reload_agents(), reload_config(), reload_queue_members(), reload_queues(), rpt(), rpt_exec(), rpt_master(), rpt_tele_thread(), rqm_exec(), rr_dep_warning(), set_address_from_contact(), set_config(), set_ulimit(), setup_incoming_call(), setup_rtp_connection(), show_dialplan_helper(), sip_dump_history(), sip_poke_noanswer(), sip_poke_peer(), sip_reg_timeout(), sip_request_call(), sip_reregister(), sipsock_read(), skinny_fixup(), skinny_indicate(), skinny_request(), skinny_session(), sla_station_exec(), smdi_load(), socket_process(), socket_read(), ss_thread(), start_spying(), stub_ast_check_signature(), stub_ast_check_signature_bin(), stub_ast_encdec_bin(), stub_ast_key_get(), stub_ast_sign(), stub_ast_sign_bin(), tdd_feed(), tds_load_module(), testclient_exec(), testserver_exec(), timed_read(), transmit_refer(), transmit_register(), transmit_response_using_temp(), try_calling(), try_load_key(), try_suggested_sip_codec(), unload_module(), update_key(), update_registry(), vm_newuser(), vm_options(), wait_for_answer(), wait_for_winner(), wait_interval(), zt_bridge(), zt_handle_dtmfup(), zt_handle_event(), and zt_request().
#define LOG_VERBOSE __LOG_VERBOSE, _A_ |
Definition at line 124 of file logger.h.
Referenced by ast_verbose(), transmit_response(), and unload_module().
#define LOG_WARNING __LOG_WARNING, _A_ |
Definition at line 112 of file logger.h.
Referenced by __adsi_transmit_messages(), __ast_check_signature(), __ast_check_signature_bin(), __ast_cli_register(), __ast_cli_unregister(), __ast_context_create(), __ast_decrypt_bin(), __ast_dsp_call_progress(), __ast_encrypt_bin(), __ast_format_register(), __ast_http_load(), __ast_pbx_run(), __ast_play_and_record(), __ast_read(), __ast_register_translator(), __ast_sign_bin(), __ast_smoother_feed(), __attempt_transmit(), __login_exec(), __mgcp_xmit(), __oh323_destroy(), __oh323_new(), __oh323_rtp_create(), __say_init(), __sip_autodestruct(), __sip_pretend_ack(), __sip_xmit(), __unload_module(), _enum_array_map(), _extension_match_core(), _macro_exec(), _while_exec(), accept_thread(), acf_curl_exec(), acf_if(), acf_odbc_read(), acf_strftime(), acf_strptime(), ack_trans(), add_agent(), add_codec_to_answer(), add_extensions(), add_header(), add_identifier(), add_line(), add_pri(), add_sdp(), admin_exec(), adsi_careful_send(), adsi_process(), adsi_prog(), agent_answer(), agent_call(), agent_fixup(), agent_new(), agent_request(), agentmonitoroutgoing_exec(), agi_exec(), agi_exec_full(), aji_act_hook(), aji_create_buddy(), aji_dinfo_handler(), aji_load_config(), aji_recv_loop(), aji_send_exec(), aji_status_exec(), alarmreceiver_exec(), alloc_sub(), alsa_card_init(), alsa_indicate(), alsa_new(), alsa_request(), alsa_write(), aMYSQL_clear(), aMYSQL_connect(), aMYSQL_disconnect(), aMYSQL_fetch(), aMYSQL_query(), ao2_callback(), app_exec(), appendcdruserfield_exec(), apply_option(), apply_outgoing(), aqm_exec(), ast_adsi_get_cpeid(), ast_adsi_get_cpeinfo(), ast_adsi_load_session(), ast_adsi_transmit_message_full(), ast_agi_register(), ast_aji_send(), ast_app_parse_options(), ast_append_ha(), ast_async_goto(), ast_autoservice_start(), ast_backtrace(), ast_best_codec(), ast_bridge_call(), ast_builtins_init(), ast_cdr_disposition(), ast_cdr_end(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_noanswer(), ast_cdr_register(), ast_cdr_submit_batch(), ast_channel_alloc(), ast_channel_bridge(), ast_channel_free(), ast_channel_make_compatible(), ast_channel_masquerade(), ast_channel_register(), ast_channel_spy_add(), ast_check_timing(), ast_codec_get_len(), ast_codec_get_samples(), ast_config_internal_load(), ast_context_verify_includes(), ast_db_gettree(), ast_db_put(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_dsp_silence(), ast_dtmf_stream(), ast_enable_packet_fragmentation(), ast_extension_close(), ast_feature_request_and_dial(), ast_filehelper(), ast_find_ourip(), ast_format_unregister(), ast_get_channel_tech(), ast_get_group(), ast_get_ip_or_srv(), ast_hangup(), ast_iax2_new(), ast_indicate_data(), ast_io_remove(), ast_ivr_menu_run_internal(), ast_jb_put(), ast_linear_stream(), AST_LIST_HEAD(), ast_lock_path(), ast_lookup_iface(), ast_makesocket(), ast_manager_register_struct(), ast_masq_park_call(), ast_merge_contexts_and_delete(), ast_moh_files_next(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_netsock_bindaddr(), ast_odbc_prepare_and_execute(), ast_odbc_request_obj(), ast_odbc_sanity_check(), ast_odbc_smart_execute(), ast_openstream_full(), ast_openvstream(), ast_ouraddrfor(), ast_park_call(), ast_parse_allow_disallow(), ast_parseable_goto(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_pbx_start(), ast_pickup_call(), ast_playtones_start(), ast_prod(), ast_pthread_create_stack(), ast_queue_frame(), ast_read_image(), ast_read_textfile(), ast_readaudio_callback(), ast_readconfig(), ast_readfile(), ast_readvideo_callback(), ast_record_review(), ast_register_application(), ast_register_switch(), ast_remotecontrol(), ast_request(), ast_rtcp_new(), ast_rtcp_read(), ast_rtp_bridge(), ast_rtp_early_bridge(), ast_rtp_make_compatible(), ast_rtp_proto_register(), ast_rtp_read(), ast_rtp_reload(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_end(), ast_rtp_settos(), ast_rtp_write(), ast_safe_system(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_en(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), ast_say_date_with_format_gr(), ast_say_date_with_format_he(), ast_say_date_with_format_it(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), ast_say_date_with_format_ru(), ast_say_date_with_format_tw(), ast_say_number_full_pt(), ast_search_dns(), ast_set_priority(), ast_slinfactory_feed(), ast_smoother_read(), ast_stopstream(), ast_str2tos(), ast_streamfile(), ast_translator_build_path(), ast_tryconnect(), ast_udptl_bridge(), ast_udptl_get_error_correction_scheme(), ast_udptl_get_far_max_datagram(), ast_udptl_get_local_max_datagram(), ast_udptl_new_with_bindaddr(), ast_udptl_offered_from_local(), ast_udptl_proto_register(), ast_udptl_read(), ast_udptl_reload(), ast_udptl_set_error_correction_scheme(), ast_udptl_set_far_max_datagram(), ast_udptl_set_local_max_datagram(), ast_udptl_settos(), ast_udptl_write(), ast_unlock_path(), ast_waitfor_nandfds(), ast_waitfordigit_full(), ast_write(), ast_writefile(), ast_writestream(), ast_yyerror(), async_wait(), asyncgoto_exec(), attempt_transfer(), auth_exec(), authenticate(), authenticate_verify(), autoservice_run(), background_detect_exec(), base64_decode(), base64_encode(), bridge_native_loop(), build_alias(), build_conf(), build_device(), build_gateway(), build_mapping(), build_peer(), build_user(), builtin_atxfer(), builtin_automonitor(), builtin_blindtransfer(), bump_gains(), cache_get_callno_locked(), calc_cost(), calc_metric(), callback_deprecated(), callerid_feed(), callerid_feed_jp(), callerid_get_dtmf(), careful_write(), cb_events(), cdr_pgsql_read_config(), chan_misdn_log(), chanavail_exec(), chanspy_exec(), check_access(), check_app_args(), check_compat(), check_day(), check_dow(), check_expr2_input(), check_goto(), check_header(), check_includes(), check_month(), check_pval_item(), check_timerange(), check_tx_freq(), checkmd5(), clear_caller(), clearcbone(), cleardisplay(), clearflag(), cleartimer(), compile_script(), complete_context_add_extension(), complete_context_add_extension_deprecated(), complete_context_dont_include_deprecated(), complete_context_remove_ignorepat(), complete_context_remove_ignorepat_deprecated(), complete_context_remove_include(), complete_transfer(), compress_subclass(), conf_add(), conf_del(), conf_exec(), conf_flush(), conf_queue_dtmf(), conf_run(), config_mysql(), config_odbc(), config_pgsql(), config_text_file_load(), connect_link(), console_autoanswer(), console_autoanswer_deprecated(), controlplayback_exec(), copy(), count_exec(), create_addr(), create_dirpath(), create_jb(), create_queue_member(), crypto_load(), csv_log(), custom_prepare(), cut_internal(), database_first_connect(), dbinit(), deadagi_exec(), del_exec(), del_identifier(), destroy_pval_item(), destroy_session(), dictate_exec(), digitcollect(), digitdirect(), directory_exec(), disa_exec(), diskavail(), dns_parse_answer(), do_directory(), do_monitor(), do_parking_thread(), do_reload(), do_say(), do_scheduler(), do_waiting(), dump_agents(), dump_queue_members(), dundi_answer_entity(), dundi_answer_query(), dundi_discover(), dundi_error_output(), dundi_lookup_internal(), dundi_query(), dundi_xmit(), dundifunc_read(), eagi_exec(), enum_callback(), exec_exec(), execif_exec(), ext_cmp1(), extension_matches(), extenspy_exec(), feature_exec_app(), features_new(), festival_exec(), fileexists_core(), find_cache(), find_call_locked(), find_callno(), find_conf(), find_conf_realtime(), find_desc(), find_line_by_instance(), find_speeddial_by_instance(), find_subchannel_by_instance_reference(), find_subchannel_by_reference(), find_transaction(), findmeexec(), flash_exec(), fn_wrapper(), forkcdr_exec(), framein(), func_args(), func_channel_read(), func_channel_write(), function_agent(), function_db_delete(), function_db_exists(), function_db_read(), function_db_write(), function_enum(), function_eval(), function_realtime_read(), function_realtime_write(), function_txtcidname(), g723_len(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gen_generate(), gen_nextfile(), generic_prepare(), get_button_template(), get_in_brackets(), get_input(), get_mohbyname(), get_range(), get_timerange(), get_token(), get_wait_interval(), getdisplaybyname(), getflagbyname(), getkeybyname(), getstatebyname(), getsubbyname(), gosub_exec(), gosubif_exec(), goto_line(), goto_line_rel(), group_function_write(), gsm_read(), gsm_write(), gsmtolin_framein(), gtalk_alloc(), gtalk_call(), gtalk_create_member(), gtalk_free_pvt(), gtalk_load_config(), gtalk_new(), gtalk_newcall(), gtalk_request(), gtalk_write(), h263_open(), h263_read(), h263_write(), h264_open(), h264_read(), h264_write(), handle_add_indication(), handle_capabilities_res_message(), handle_command_response(), handle_enbloc_call_message(), handle_error(), handle_exec(), handle_getoption(), handle_hd_hf(), handle_keypad_button_message(), handle_link_data(), handle_message(), handle_offhook_message(), handle_onhook_message(), handle_recordfile(), handle_remote_data(), handle_remove_indication(), handle_request(), handle_response(), handle_soft_key_event_message(), handle_stimulus_message(), hasvoicemail_exec(), http_root(), http_server_start(), iax2_ack_registry(), iax2_call(), iax2_canmatch(), iax2_do_register(), iax2_exec(), iax2_exists(), iax2_fixup(), iax2_matchmore(), iax2_poke_peer(), iax2_register(), iax2_request(), iax2_send(), iax2_trunk_queue(), iax_error_output(), iax_park(), iax_process_template(), iax_template_parse(), ices_exec(), icesencode(), iftime(), ilbc_read(), ilbc_write(), ilbctolin_framein(), ind_load_module(), indexof(), init_logger_chain(), init_manager(), init_req(), init_resp(), isAnsweringMachine(), jb_get_and_deliver(), jb_warning_output(), jpeg_read_image(), jpeg_write_image(), language_read(), language_write(), launch_monitor_thread(), launch_netscript(), launch_script(), launch_service(), linear_alloc(), linear_generator(), linear_release(), lintogsm_framein(), lintolpc10_framein(), listener(), load_config(), load_config_meetme(), load_module(), load_moh_classes(), load_odbc_config(), load_rpt_vars(), local_answer(), local_devicestate(), local_fixup(), local_new(), local_queue_frame(), lookupblacklist_exec(), lookupcidname_exec(), lpc10tolin_framein(), macroif_exec(), main(), make_integer(), make_str(), make_trunk(), math(), md5(), memcpy_decrypt(), memcpy_encrypt(), mgcp_call(), mgcp_fixup(), mgcp_indicate(), mgcp_new(), mgcp_reload(), mgcp_request(), mgcp_ss(), mgcp_write(), mgcpsock_read(), milliwatt_exec(), milliwatt_generate(), misdn_answer(), misdn_call(), misdn_cfg_get(), misdn_cfg_get_config_string(), misdn_cfg_init(), misdn_cfg_is_msn_valid(), misdn_cfg_update_ptp(), misdn_check_l2l1(), misdn_digit_end(), misdn_facility_exec(), misdn_hangup(), misdn_indication(), misdn_request(), misdn_send_text(), misdn_set_opt_exec(), misdn_write(), mixmonitor_exec(), mkif(), moh0_exec(), moh1_exec(), moh2_exec(), moh_alloc(), moh_files_generator(), moh_files_release(), moh_generate(), moh_read(), moh_register(), moh_release(), moh_scan_files(), moh_write(), mohalloc(), monitor_main(), monmp3thread(), morsecode_exec(), mp3_exec(), mp3_squeue(), mp3play(), mtp_enqueue_control(), mwanalyze_exec(), my_load_module(), MYSQL_exec(), mysql_reconnect(), nbs_alloc(), nbs_call(), nbs_hangup(), nbs_new(), nbs_xwrite(), NBScat_exec(), NBScatplay(), netconsole(), nv_background_detect_exec(), nv_detectfax_exec(), odbc_load_module(), odbc_obj_connect(), odbc_obj_disconnect(), odbc_register_class(), ogg_vorbis_read(), ogg_vorbis_seek(), ogg_vorbis_tell(), ogg_vorbis_trunc(), ogg_vorbis_write(), oh323_call(), oh323_fixup(), oh323_hangup(), oh323_indicate(), oh323_request(), oh323_write(), onevent(), op_colon(), op_div(), op_eq(), op_eqtilde(), op_minus(), op_negate(), op_plus(), op_rem(), op_times(), openserial(), osp_create_provider(), osp_load(), osplookup_exec(), ospnext_exec(), oss_indicate(), oss_new(), oss_request(), page_exec(), park_exec(), parkandannounce_exec(), parse(), parse_args(), parse_config(), parse_ie(), parse_naptr(), parse_srv(), pbx_builtin_background(), pbx_builtin_execiftime(), pbx_builtin_gotoif(), pbx_builtin_gotoiftime(), pbx_builtin_importvar(), pbx_builtin_pushvar_helper(), pbx_builtin_saynumber(), pbx_builtin_setglobalvar(), pbx_builtin_setvar(), pbx_builtin_waitexten(), pbx_extension_helper(), pbx_find_extension(), pbx_load_config(), pcm_read(), pcm_seek(), pcm_write(), peer_set_srcaddr(), phone_call(), phone_digit_end(), phone_exception(), phone_hangup(), phone_indicate(), phone_mini_packet(), phone_new(), phone_read(), phone_setup(), phone_write(), phone_write_buf(), pickup_do(), pickup_exec(), play_mailbox_owner(), playback_exec(), playtones_alloc(), playtones_generator(), post_cdr(), powerof(), pqm_exec(), precache_trans(), precache_transactions(), privacy_exec(), process_ast_dsp(), process_my_load_module(), process_opcode(), process_returncode(), process_sdp(), process_text_line(), profile_set_param(), ql_exec(), queue_exec(), queue_frame_to_spies(), queue_function_qac(), queue_function_queuememberlist(), queue_function_queuewaitingcount(), queue_set_param(), random_exec(), rbi_out(), read_config(), read_config_maps(), read_exec(), read_samples(), readfile_exec(), realtime_directory(), realtime_exec(), realtime_multi_mysql(), realtime_multi_odbc(), realtime_multi_pgsql(), realtime_mysql(), realtime_odbc(), realtime_pgsql(), realtime_update_exec(), record_exec(), refresh_list(), regex(), register_peer_exten(), register_verify(), registry_authrequest(), registry_rerequest(), reload(), reload_config(), reload_firmware(), reload_followme(), reload_queue_members(), remove_from_queue(), reset_conf(), restart_monitor(), restore_conference(), restore_gains(), retrans_pkt(), retrydial_exec(), return_exec(), rpt(), rpt_call(), rpt_exec(), rpt_master(), rpt_tele_thread(), rpt_telemetry(), rqm_exec(), run_agi(), run_ras(), rxfax_exec(), s_streamwait3(), safe_append(), save_conference(), saycharstr(), sayfile(), saynum(), scan_service(), scan_thread(), send_callerid(), send_delay(), send_dtmf(), send_request(), send_sound(), send_tone_burst(), send_waveform_to_channel(), send_waveform_to_fd(), senddtmf_exec(), sendimage_exec(), sendtext_exec(), sendurl_exec(), set(), set_asterisk_int(), set_config(), set_format(), set_state(), set_timing(), set_ulimit(), setcallerid_exec(), setcallerid_pres_exec(), setcdruserfield_exec(), setflag(), setformat(), settransfercapability_exec(), sha1(), shell_helper(), show_channeltype(), show_channeltype_deprecated(), show_channeltypes(), show_dialplan_helper(), show_file_formats_deprecated(), showdisplay(), showkeys(), skel_exec(), skinny_call(), skinny_fixup(), skinny_indicate(), skinny_new(), skinny_newcall(), skinny_register(), skinny_request(), skinny_ss(), skinny_write(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_load_config(), sla_station_exec(), slinear_read(), slinear_write(), sms_generate(), sms_handleincoming(), sms_readfile(), socket_process(), socket_read(), softhangup_exec(), sound_thread(), soundcard_writeframe(), spawn_dp_lookup(), spawn_mp3(), speex_get_wb_sz_at(), speex_samples(), speextolin_framein(), srv_callback(), start_network_thread(), starttimer(), statechange_queue(), store_boost(), store_config(), store_mixer(), subscript(), system_exec_helper(), tdd_feed(), tdd_new(), tds_log(), telem_lookup(), testclient_exec(), testserver_exec(), timing_read(), to_integer(), to_string(), tonepair_alloc(), tonepair_generator(), transfer_exec(), transmit_response(), try_calling(), try_firmware(), try_load_key(), try_transfer(), tryexec_exec(), tvfix(), txfax_exec(), unalloc_sub(), unload_module(), update_common_options(), update_config(), update_header(), update_mysql(), update_odbc(), update_pgsql(), update_registry(), upqm_exec(), uridecode(), uriencode(), used_blocks(), userevent_exec(), verbose_exec(), vm_change_password(), vox_read(), vox_write(), wait_file(), wait_for_answer(), wait_for_winner(), waitforring_exec(), waitforsilence_exec(), waitstream_core(), wav_read(), wav_write(), write_header(), writefile(), zap_framein(), zap_frameout(), zap_translate(), zapras_exec(), zt_answer(), zt_call(), zt_callwait(), zt_confmute(), zt_digit_begin(), zt_disable_ec(), zt_enable_ec(), zt_get_index(), zt_hangup(), zt_link(), zt_open(), zt_set_hook(), zt_setoption(), and zt_train_ec().
#define QUEUELOG "queue_log" |
#define VERBOSE_PREFIX_1 " " |
Definition at line 43 of file logger.h.
Referenced by cb_extensionstate(), console_verboser(), do_monitor(), handle_verbose(), load_module(), load_pbx(), load_resource(), unload_module(), verbose_exec(), and zap_restart().
#define VERBOSE_PREFIX_2 " == " |
Definition at line 44 of file logger.h.
Referenced by __ast_format_register(), __ast_pbx_run(), __ast_register_translator(), __login_exec(), _macro_exec(), accept_thread(), action_agent_callback_login(), append_mapping(), ast_cdr_unregister(), ast_channel_register(), ast_channel_unregister(), ast_custom_function_register(), ast_custom_function_unregister(), ast_dnsmgr_lookup(), ast_format_unregister(), ast_image_register(), ast_image_unregister(), ast_manager_register_struct(), ast_manager_unregister(), ast_moh_destroy(), ast_netsock_bindaddr(), ast_park_call(), ast_register_application(), ast_register_feature(), ast_rtp_reload(), ast_speech_register(), ast_speech_unregister(), ast_udptl_reload(), ast_unregister_application(), ast_unregister_translator(), builtin_blindtransfer(), cb_extensionstate(), channel_spy(), config_text_file_load(), config_text_file_save(), console_verboser(), dnsmgr_refresh(), do_parking_thread(), exit_now(), find_transcoders(), handle_init_event(), handle_verbose(), load_module(), mgcp_hangup(), mixmonitor_thread(), pbx_builtin_pushvar_helper(), pbx_builtin_setvar_helper(), process_message(), receive_ademco_contact_id(), refresh_list(), reload(), reload_config(), reload_firmware(), session_do(), set_config(), setformat(), setup_zap(), ss_thread(), start_network_thread(), verbose_exec(), wait_for_answer(), and zapras_exec().
#define VERBOSE_PREFIX_3 " -- " |
Definition at line 45 of file logger.h.
Referenced by __ast_play_and_record(), __login_exec(), __unload_module(), __zt_exception(), _while_exec(), adsi_exec(), adsi_prog(), advanced_options(), agent_call(), agent_read(), agentmonitoroutgoing_exec(), aji_handle_presence(), aji_handle_subscribe(), ast_add_extension2(), ast_aji_disconnect(), ast_app_has_voicemail(), ast_app_inboxcount(), ast_app_messagecount(), ast_channel_bridge(), ast_context_add_include2(), ast_context_add_switch2(), ast_feature_interpret(), ast_feature_request_and_dial(), ast_jb_destroy(), ast_module_reload(), ast_moh_start(), ast_record_review(), ast_rtp_bridge(), ast_say_number_full_he(), ast_set_indication_country(), ast_streamfile(), ast_unregister_indication_country(), async_wait(), attempt_reconnect(), attempt_thread(), attempt_transfer(), begin_dial(), build_channels(), build_conf(), build_device(), build_gateway(), builtin_automonitor(), builtin_blindtransfer(), builtin_disconnect(), channel_spy(), check_for_conference(), conf_exec(), conf_run(), console_verboser(), cpeid_exec(), create_jb(), del_exec(), deltree_exec(), dialout(), do_waiting(), find_subchannel_and_lock(), findmeexec(), flash_exec(), h323_ep_hangup(), handle_command_response(), handle_exec(), handle_frame(), handle_frame_ownerless(), handle_getoption(), handle_register_message(), handle_request(), handle_response(), handle_soft_key_event_message(), handle_stimulus_message(), handle_streamfile(), handle_verbose(), iax2_ack_registry(), iax2_bridge(), iax2_exec(), iax2_hangup(), iax2_prov_app(), iax_provision_reload(), isAnsweringMachine(), launch_script(), leave_voicemail(), listener(), load_config(), load_module(), load_rpt_vars(), lookupcidname_exec(), mgcp_answer(), mgcp_call(), mgcp_hangup(), mgcp_indicate(), mgcp_new(), mgcp_request(), mgcp_ss(), misdn_bridge(), moh_alloc(), moh_files_alloc(), moh_files_release(), moh_release(), monitor_main(), netconsole(), odbc_load_module(), oh323_call(), park_exec(), parkandannounce_exec(), parse_config(), parse_register_contact(), parse_srv(), pbx_builtin_goto(), pbx_builtin_waitexten(), pbx_extension_helper(), phone_hangup(), play_message_callerid(), play_record_review(), privacy_exec(), process_ast_dsp(), process_zap(), queue_exec(), random_exec(), read_exec(), realtime_exec(), reg_source_db(), reload_config(), ring_entry(), rna(), rpt(), run_agi(), run_ras(), say_periodic_announcement(), say_position(), send_cwcidspill(), settransfercapability_exec(), setup_incoming_call(), skinny_call(), skinny_indicate(), skinny_request(), skinny_reset_device(), skinny_session(), skinny_ss(), sms_debug(), socket_process(), ss_thread(), timeout_write(), transmit_connection_del(), transmit_connection_del_w_params(), transmit_modify_request(), transmit_notify_request(), transmit_notify_request_with_callerid(), try_load_key(), unload_module(), update_registry(), verbose_exec(), vm_authenticate(), vm_execmain(), wait_for_answer(), wait_for_winner(), waitforring_exec(), waitforsilence_exec(), zapras_exec(), zt_bridge(), zt_call(), zt_handle_dtmfup(), zt_handle_event(), zt_hangup(), and zt_read().
#define VERBOSE_PREFIX_4 " > " |
Definition at line 46 of file logger.h.
Referenced by __ast_play_and_record(), acf_odbc_read(), alarmreceiver_exec(), ast_dnsmgr_lookup(), ast_dnsmgr_release(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), conf_run(), config_odbc_prepare(), console_verboser(), database_increment(), handle_verbose(), load_config(), log_events(), odbc_do_query(), odbc_init(), odbc_log(), odbc_unload_module(), parkandannounce_exec(), realtime_exec(), receive_ademco_contact_id(), receive_dtmf_digits(), send_tone_burst(), socket_process(), verbose_exec(), and write_metadata().
void void ast_backtrace | ( | void | ) |
Definition at line 820 of file logger.c.
References ast_calloc, ast_log(), free, and LOG_WARNING.
Referenced by __get_from_jb(), ast_rtp_read(), ast_say_date_with_format_ru(), send_packet(), and sip_write().
00821 { 00822 #ifdef linux 00823 #ifdef AST_DEVMODE 00824 int count=0, i=0; 00825 void **addresses; 00826 char **strings; 00827 00828 if ((addresses = ast_calloc(MAX_BACKTRACE_FRAMES, sizeof(*addresses)))) { 00829 count = backtrace(addresses, MAX_BACKTRACE_FRAMES); 00830 if ((strings = backtrace_symbols(addresses, count))) { 00831 ast_log(LOG_DEBUG, "Got %d backtrace record%c\n", count, count != 1 ? 's' : ' '); 00832 for (i=0; i < count ; i++) { 00833 #if __WORDSIZE == 32 00834 ast_log(LOG_DEBUG, "#%d: [%08X] %s\n", i, (unsigned int)addresses[i], strings[i]); 00835 #elif __WORDSIZE == 64 00836 ast_log(LOG_DEBUG, "#%d: [%016lX] %s\n", i, (unsigned long)addresses[i], strings[i]); 00837 #endif 00838 } 00839 free(strings); 00840 } else { 00841 ast_log(LOG_DEBUG, "Could not allocate memory for backtrace\n"); 00842 } 00843 free(addresses); 00844 } 00845 #else 00846 ast_log(LOG_WARNING, "Must run configure with '--enable-dev-mode' for stack backtraces.\n"); 00847 #endif 00848 #else /* ndef linux */ 00849 ast_log(LOG_WARNING, "Inline stack backtraces are only available on the Linux platform.\n"); 00850 #endif 00851 }
void ast_console_puts | ( | const char * | string | ) |
write the string to the console, and all attached console clients
Definition at line 886 of file asterisk.c.
References ast_network_puts().
Referenced by chan_misdn_log().
00887 { 00888 fputs(string, stdout); 00889 fflush(stdout); 00890 ast_network_puts(string); 00891 }
void ast_console_puts_mutable | ( | const char * | string | ) |
log the string to the console, and all attached console clients
Definition at line 863 of file asterisk.c.
References ast_network_puts_mutable().
Referenced by ast_log().
00864 { 00865 fputs(string, stdout); 00866 fflush(stdout); 00867 ast_network_puts_mutable(string); 00868 }
void ast_console_toggle_mute | ( | int | fd | ) |
mute or unmute a console from logging
Definition at line 828 of file asterisk.c.
References ast_cli(), AST_MAX_CONNECTS, consoles, and console::mute.
Referenced by handle_logger_mute().
00828 { 00829 int x; 00830 for (x = 0;x < AST_MAX_CONNECTS; x++) { 00831 if (fd == consoles[x].fd) { 00832 if (consoles[x].mute) { 00833 consoles[x].mute = 0; 00834 ast_cli(fd, "Console is not muted anymore.\n"); 00835 } else { 00836 consoles[x].mute = 1; 00837 ast_cli(fd, "Console is muted.\n"); 00838 } 00839 return; 00840 } 00841 } 00842 ast_cli(fd, "Couldn't find remote console.\n"); 00843 }
void ast_log | ( | int | level, | |
const char * | file, | |||
int | line, | |||
const char * | function, | |||
const char * | fmt, | |||
... | ||||
) |
This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(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.
level | Type of log event | |
file | Will be provided by the LOG_* macro | |
line | Will be provided by the LOG_* macro | |
function | Will be provided by the LOG_* macro | |
fmt | This is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-) |
void ast_queue_log | ( | const char * | queuename, | |
const char * | callid, | |||
const char * | agent, | |||
const char * | event, | |||
const char * | fmt, | |||
... | ||||
) |
void void int ast_register_verbose | ( | void(*)(const char *string) | verboser | ) |
Definition at line 895 of file logger.c.
References AST_LIST_INSERT_HEAD, AST_LIST_LOCK, AST_LIST_UNLOCK, ast_malloc, and verb.
Referenced by ast_makesocket(), main(), and show_console().
00896 { 00897 struct verb *verb; 00898 00899 if (!(verb = ast_malloc(sizeof(*verb)))) 00900 return -1; 00901 00902 verb->verboser = v; 00903 00904 AST_LIST_LOCK(&verbosers); 00905 AST_LIST_INSERT_HEAD(&verbosers, verb, list); 00906 AST_LIST_UNLOCK(&verbosers); 00907 00908 return 0; 00909 }
int ast_unregister_verbose | ( | void(*)(const char *string) | verboser | ) |
Definition at line 911 of file logger.c.
References AST_LIST_LOCK, AST_LIST_REMOVE_CURRENT, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, AST_LIST_UNLOCK, free, and verb::verboser.
Referenced by exit_now().
00912 { 00913 struct verb *cur; 00914 00915 AST_LIST_LOCK(&verbosers); 00916 AST_LIST_TRAVERSE_SAFE_BEGIN(&verbosers, cur, list) { 00917 if (cur->verboser == v) { 00918 AST_LIST_REMOVE_CURRENT(&verbosers, list); 00919 free(cur); 00920 break; 00921 } 00922 } 00923 AST_LIST_TRAVERSE_SAFE_END 00924 AST_LIST_UNLOCK(&verbosers); 00925 00926 return cur ? 0 : -1; 00927 }
void void ast_verbose | ( | 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)