Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Functions | Variables
func_frame_trace.c File Reference

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_framehook_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 []
 

Detailed Description

Trace internal ast_frames on a channel.

Author
David Vossel dvoss.nosp@m.el@d.nosp@m.igium.nosp@m..com

Definition in file func_frame_trace.c.

Variable Documentation

struct ast_cli_entry cli_frames[]
static
Initial value:
= {
{ .handler = handle_dump_frames , .summary = "Display frames queued on a specific channel" ,}
}

Definition at line 486 of file func_frame_trace.c.

const struct ast_datastore_info frame_trace_datastore
static
Initial value:
= {
.type = "frametrace",
.destroy = datastore_destroy_cb
}

Definition at line 115 of file func_frame_trace.c.

struct ast_custom_function frame_trace_function
static
Initial value:
= {
.name = "FRAME_TRACE",
.write = frame_trace_helper,
}

Definition at line 437 of file func_frame_trace.c.