| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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 496 of file app_test.c.
References ast_register_application_xml, testc_app, testclient_exec(), tests_app, and testserver_exec().
| 
 | static | 
Definition at line 89 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 149 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 160 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 335 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 486 of file app_test.c.
References ast_unregister_application(), testc_app, and tests_app.
| 
 | static | 
Definition at line 87 of file app_test.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 86 of file app_test.c.
Referenced by load_module(), and unload_module().