Echo application – play back what you hear to evaluate latency.
More...
Go to the source code of this file.
Echo application – play back what you hear to evaluate latency.
- Author
- Mark Spencer marks.nosp@m.ter@.nosp@m.digiu.nosp@m.m.co.nosp@m.m
Definition in file app_echo.c.
◆ __reg_module()
| static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
| static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ echo_exec()
| static int echo_exec |
( |
struct ast_channel * |
chan, |
|
|
const char * |
data |
|
) |
| |
|
static |
Definition at line 59 of file app_echo.c.
60{
61 int res = -1;
62 int fir_sent = 0;
63
66 if (!f) {
67 break;
68 }
73 && !fir_sent) {
77 }
78 fir_sent = 1;
79 }
84 };
86 fir_sent = 1;
87 }
94 }
96 res = 0;
99 }
101 }
103 return res;
104}
int ast_waitfor(struct ast_channel *chan, int ms)
Wait for input on a channel.
int ast_write(struct ast_channel *chan, struct ast_frame *frame)
Write a frame to a channel This function writes the given frame to the indicated channel.
struct ast_frame * ast_read(struct ast_channel *chan)
Reads a frame.
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
enum ast_frame_type frametype
References AST_CONTROL_VIDUPDATE, AST_FRAME_CONTROL, AST_FRAME_DTMF, AST_FRAME_MODEM, AST_FRAME_NULL, AST_FRAME_VIDEO, ast_frfree, ast_read(), ast_waitfor(), ast_write(), ast_frame::delivery, end, ast_frame::frametype, ast_frame_subclass::integer, and ast_frame::subclass.
Referenced by load_module().
◆ load_module()
| static int load_module |
( |
void |
| ) |
|
|
static |
Definition at line 111 of file app_echo.c.
112{
114}
static int echo_exec(struct ast_channel *chan, const char *data)
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
References app, ast_register_application_xml, and echo_exec().
◆ unload_module()
| static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
◆ app
| const char app[] = "Echo" |
|
static |
◆ ast_module_info