|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
struct ast_module * | AST_MODULE_SELF_SYM (void) |
|
static void | ast_msg_safe_destroy (void *obj) |
|
| AST_TEST_DEFINE (test_message_msg_tech_registration) |
|
| AST_TEST_DEFINE (test_message_msg_handler_registration) |
|
| AST_TEST_DEFINE (test_message_manipulation) |
|
| AST_TEST_DEFINE (test_message_queue_dialplan_nominal) |
|
| AST_TEST_DEFINE (test_message_queue_handler_nominal) |
|
| AST_TEST_DEFINE (test_message_queue_both_nominal) |
|
| AST_TEST_DEFINE (test_message_has_destination_dialplan) |
|
| AST_TEST_DEFINE (test_message_has_destination_handler) |
|
| AST_TEST_DEFINE (test_message_msg_send) |
|
static int | create_test_dialplan (void) |
|
static int | handler_wait_for_message (struct ast_test *test) |
| Wait for the test_msg_handler to receive the message.
|
|
static int | load_module (void) |
|
static int | test_cleanup_cb (struct ast_test_info *info, struct ast_test *test) |
|
static int | test_init_cb (struct ast_test_info *info, struct ast_test *test) |
|
static int | test_msg_handle_msg_cb (struct ast_msg *msg) |
|
static int | test_msg_has_destination_cb (const struct ast_msg *msg) |
|
static int | test_msg_send (const struct ast_msg *msg, const char *to, const char *from) |
|
static int | unload_module (void) |
|
static int | user_event_hook_cb (int category, const char *event, char *body) |
|
static int | user_event_wait_for_events (struct ast_test *test, int expected_events) |
| Wait for the expected number of user events to be received.
|
|
static int | verify_bad_headers (struct ast_test *test) |
|
static int | verify_user_event_fields (int user_event, const char *header, const char *value) |
| Verifies a user event header/value pair. More...
|
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Out-of-call text message support" , .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, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
struct { |
size_t current |
|
struct ast_variable ** elems |
|
size_t max |
|
} | bad_headers |
| If a user event fails, the bad headers that didn't match.
|
|
struct var_vector | expected_user_event_fields |
|
static int | expected_user_events |
| The number of user events we expect for this test.
|
|
static ast_cond_t | handler_cond |
| Condition wait variable for test_msg_handler receiving message.
|
|
static ast_mutex_t | handler_lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
| Mutex for handler_cond .
|
|
static int | handler_received_message |
| Predicate for the test_msg_handler receiving a message.
|
|
static int | message_received |
|
static int | received_user_events |
| The current number of received user events.
|
|
static struct ast_msg_handler | test_msg_handler |
| Our test message handler. More...
|
|
static struct ast_msg_tech | test_msg_tech |
|
static ast_cond_t | user_event_cond |
| Condition wait variable for all dialplan user events being received.
|
|
static struct manager_custom_hook | user_event_hook |
| AMI event hook that verifies whether or not we've gotten our user events. More...
|
|
static ast_mutex_t | user_event_lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, {1, 0} } |
| Mutex for user_event_cond .
|
|
Test module for out-of-call text message module.
- Author
Matt Jordan <mjordan@digium.com>
Definition in file test_message.c.