Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Trace internal ast_frames on a channel. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/framehook.h"
#include "asterisk/cli.h"
Go to the source code of this file.
Data Structures | |
struct | frame_trace_data |
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Frame Trace for internal ast_frame debugging.") | |
static void | datastore_destroy_cb (void *data) |
static int | frame_trace_helper (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
static char * | handle_dump_frames (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static void | hook_destroy_cb (void *framedata) |
static struct ast_frame * | hook_event_cb (struct ast_channel *chan, struct ast_frame *frame, enum ast_framehook_event event, void *data) |
static int | load_module (void) |
static void | print_frame (struct ast_frame *frame) |
static int | unload_module (void) |
Variables | |
static struct ast_cli_entry | cli_frames [] |
static const struct ast_datastore_info | frame_trace_datastore |
static struct ast_custom_function | frame_trace_function |
struct { | |
const char * str | |
enum ast_frame_type type | |
} | frametype2str [] |
Trace internal ast_frames on a channel.
Definition in file func_frame_trace.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Frame Trace for internal ast_frame debugging." | |||
) |
|
static |
Definition at line 111 of file func_frame_trace.c.
References ast_free.
|
static |
Definition at line 156 of file func_frame_trace.c.
References ARRAY_LEN, ast_calloc, ast_channel_datastore_add(), ast_channel_datastore_find(), ast_channel_datastore_remove(), ast_channel_lock, ast_channel_unlock, ast_datastore_alloc, ast_datastore_free(), ast_framehook_attach(), ast_framehook_detach(), AST_FRAMEHOOK_INTERFACE_VERSION, ast_log, ast_datastore::data, ast_framehook_interface::data, frame_trace_datastore, frametype2str, hook_destroy_cb(), hook_event_cb(), id, frame_trace_data::list_type, LOG_WARNING, NULL, str, strcasestr(), value, frame_trace_data::values, and ast_framehook_interface::version.
|
static |
Definition at line 442 of file func_frame_trace.c.
References a, ast_channel_get_by_name(), ast_channel_lock, ast_channel_name(), ast_channel_readq(), ast_channel_unlock, ast_channel_unref, ast_cli(), ast_complete_channels(), ast_frame_subclass2str(), ast_frame_type2str(), AST_LIST_TRAVERSE, c, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_frame::frametype, NULL, S_OR, ast_frame::seqno, ast_frame::src, ast_frame::stream_num, ast_frame::subclass, type, and ast_cli_entry::usage.
|
static |
Definition at line 120 of file func_frame_trace.c.
References ast_free.
Referenced by frame_trace_helper().
|
static |
Definition at line 125 of file func_frame_trace.c.
References ARRAY_LEN, ast_channel_name(), AST_FRAMEHOOK_EVENT_READ, AST_FRAMEHOOK_EVENT_WRITE, ast_verbose(), ast_frame::frametype, frametype2str, frame_trace_data::list_type, print_frame(), show_frame(), and frame_trace_data::values.
Referenced by frame_trace_helper().
|
static |
Definition at line 496 of file func_frame_trace.c.
References ARRAY_LEN, ast_cli_register_multiple, ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, cli_frames, and frame_trace_function.
|
static |
Definition at line 220 of file func_frame_trace.c.
References _XXX_AST_CONTROL_T38, AST_CONTROL_ANSWER, AST_CONTROL_AOC, AST_CONTROL_BUSY, AST_CONTROL_CC, AST_CONTROL_CONGESTION, AST_CONTROL_CONNECTED_LINE, AST_CONTROL_END_OF_Q, AST_CONTROL_FLASH, AST_CONTROL_HANGUP, AST_CONTROL_HOLD, AST_CONTROL_INCOMPLETE, AST_CONTROL_MASQUERADE_NOTIFY, AST_CONTROL_MCID, AST_CONTROL_OFFHOOK, AST_CONTROL_OPTION, AST_CONTROL_PROCEEDING, AST_CONTROL_PROGRESS, AST_CONTROL_PVT_CAUSE_CODE, AST_CONTROL_RADIO_KEY, AST_CONTROL_RADIO_UNKEY, AST_CONTROL_READ_ACTION, AST_CONTROL_RECORD_CANCEL, AST_CONTROL_RECORD_MUTE, AST_CONTROL_RECORD_STOP, AST_CONTROL_RECORD_SUSPEND, AST_CONTROL_REDIRECTING, AST_CONTROL_RING, AST_CONTROL_RINGING, AST_CONTROL_SRCCHANGE, AST_CONTROL_SRCUPDATE, AST_CONTROL_STREAM_FORWARD, AST_CONTROL_STREAM_RESTART, AST_CONTROL_STREAM_REVERSE, AST_CONTROL_STREAM_STOP, AST_CONTROL_STREAM_SUSPEND, AST_CONTROL_STREAM_TOPOLOGY_CHANGED, AST_CONTROL_STREAM_TOPOLOGY_REQUEST_CHANGE, AST_CONTROL_STREAM_TOPOLOGY_SOURCE_CHANGED, AST_CONTROL_T38_PARAMETERS, AST_CONTROL_TAKEOFFHOOK, AST_CONTROL_TRANSFER, AST_CONTROL_UNHOLD, AST_CONTROL_UPDATE_RTP_PEER, AST_CONTROL_VIDUPDATE, AST_CONTROL_WINK, ast_format_get_name(), AST_FRAME_BRIDGE_ACTION, AST_FRAME_BRIDGE_ACTION_SYNC, AST_FRAME_CNG, AST_FRAME_CONTROL, AST_FRAME_DTMF_BEGIN, AST_FRAME_DTMF_END, AST_FRAME_HTML, AST_FRAME_IAX, AST_FRAME_IMAGE, AST_FRAME_MODEM, AST_FRAME_NULL, AST_FRAME_RTCP, AST_FRAME_TEXT, AST_FRAME_TEXT_DATA, AST_FRAME_VIDEO, AST_FRAME_VOICE, ast_strlen_zero(), ast_verbose(), ast_frame::data, ast_frame::datalen, ast_frame_subclass::format, ast_frame::frametype, ast_frame_subclass::integer, ast_frame::len, ast_frame::ptr, ast_frame::samples, ast_frame::src, and ast_frame::subclass.
Referenced by hook_event_cb().
|
static |
Definition at line 490 of file func_frame_trace.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), ast_custom_function_unregister(), cli_frames, and frame_trace_function.
|
static |
Definition at line 486 of file func_frame_trace.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 115 of file func_frame_trace.c.
Referenced by frame_trace_helper().
|
static |
Definition at line 437 of file func_frame_trace.c.
Referenced by load_module(), and unload_module().
struct { ... } frametype2str[] |
Referenced by frame_trace_helper(), and hook_event_cb().
const char* str |
Definition at line 89 of file func_frame_trace.c.
Referenced by frame_trace_helper().
enum ast_frame_type type |
Definition at line 88 of file func_frame_trace.c.
Referenced by handle_dump_frames().