Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Applications to test connection and produce report in text file. More...
#include "asterisk.h"
#include <sys/stat.h>
#include "asterisk/paths.h"
#include "asterisk/channel.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Interface Test Application") | |
static int | load_module (void) |
static int | measurenoise (struct ast_channel *chan, int ms, char *who) |
static int | sendnoise (struct ast_channel *chan, int ms) |
static int | testclient_exec (struct ast_channel *chan, const char *data) |
static int | testserver_exec (struct ast_channel *chan, const char *data) |
static int | unload_module (void) |
Variables | |
static char * | testc_app = "TestClient" |
static char * | tests_app = "TestServer" |
Applications to test connection and produce report in text file.
Definition in file app_test.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Interface Test Application" | |||
) |
|
static |
Definition at line 490 of file app_test.c.
References ast_register_application_xml, testc_app, testclient_exec(), tests_app, and testserver_exec().
|
static |
Definition at line 83 of file app_test.c.
References abs, ao2_bump, ao2_cleanup, ao2_ref, ast_channel_readformat(), ast_debug, ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_slin, AST_FRAME_VOICE, ast_frfree, ast_log, ast_read(), ast_set_read_format(), ast_tvdiff_ms(), ast_tvnow(), ast_waitfor(), ast_frame::data, ast_frame_subclass::format, ast_frame::frametype, LOG_NOTICE, ast_frame::ptr, ast_frame::samples, and ast_frame::subclass.
Referenced by testclient_exec(), and testserver_exec().
|
static |
Definition at line 143 of file app_test.c.
References ast_tonepair_start(), ast_tonepair_stop(), and ast_waitfordigit().
Referenced by testclient_exec(), and testserver_exec().
|
static |
Definition at line 154 of file app_test.c.
References ast_answer(), ast_app_getdata(), ast_channel_name(), ast_config_AST_LOG_DIR, ast_debug, ast_dtmf_stream(), ast_log, ast_mkdir(), ast_safe_sleep(), AST_STATE_UP, ast_strlen_zero(), ast_waitfordigit(), LOG_NOTICE, LOG_WARNING, measurenoise(), NULL, and sendnoise().
Referenced by load_module().
|
static |
Definition at line 329 of file app_test.c.
References ast_answer(), ast_app_getdata(), ast_channel_name(), ast_config_AST_LOG_DIR, ast_debug, ast_dtmf_stream(), ast_log, ast_mkdir(), ast_safe_sleep(), AST_STATE_UP, ast_strlen_zero(), ast_waitfordigit(), LOG_NOTICE, measurenoise(), NULL, PATH_MAX, and sendnoise().
Referenced by load_module().
|
static |
Definition at line 480 of file app_test.c.
References ast_unregister_application(), testc_app, and tests_app.
|
static |
Definition at line 81 of file app_test.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 80 of file app_test.c.
Referenced by load_module(), and unload_module().