Asterisk - The Open Source Telephony Project
18.5.0
|
Test endpoints. More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/endpoints.h"
#include "asterisk/module.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/test.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (create) | |
AST_TEST_DEFINE (defaults) | |
AST_TEST_DEFINE (setters) | |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Endpoint testing" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const char * | test_category = "/core/endpoints/" |
Test endpoints.
Definition in file test_endpoints.c.
|
static |
Definition at line 157 of file test_endpoints.c.
|
static |
Definition at line 157 of file test_endpoints.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 157 of file test_endpoints.c.
AST_TEST_DEFINE | ( | create | ) |
Definition at line 43 of file test_endpoints.c.
References ast_endpoint_create(), ast_endpoint_get_resource(), ast_endpoint_get_tech(), ast_endpoint_shutdown(), AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), NULL, RAII_VAR, test_category, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | defaults | ) |
Definition at line 75 of file test_endpoints.c.
References ao2_cleanup, ast_endpoint_create(), ast_endpoint_shutdown(), ast_endpoint_snapshot_create(), AST_ENDPOINT_UNKNOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), NULL, RAII_VAR, test_category, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | setters | ) |
Definition at line 106 of file test_endpoints.c.
References ao2_cleanup, ast_endpoint_create(), AST_ENDPOINT_ONLINE, ast_endpoint_set_max_channels(), ast_endpoint_set_state(), ast_endpoint_shutdown(), ast_endpoint_snapshot_create(), AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), NULL, RAII_VAR, test_category, TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 145 of file test_endpoints.c.
References AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_CORE, AST_TEST_REGISTER, ASTERISK_GPL_KEY, and unload_module().
|
static |
Definition at line 137 of file test_endpoints.c.
References AST_TEST_UNREGISTER.
Referenced by load_module().
|
static |
Definition at line 157 of file test_endpoints.c.
|
static |
Definition at line 157 of file test_endpoints.c.
|
static |
Definition at line 41 of file test_endpoints.c.
Referenced by AST_TEST_DEFINE().