Asterisk - The Open Source Telephony Project
21.4.1
|
RTP/RTCP Unit Tests. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/test.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/data_buffer.h"
#include "asterisk/format_cache.h"
#include <assert.h>
#include <sched.h>
Go to the source code of this file.
Enumerations | |
enum | test_type { TEST_TYPE_NONE = 0, TEST_TYPE_NACK, TEST_TYPE_REMB, TEST_TYPE_STD_RTCP } |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static void | ast_sched_context_destroy_wrapper (struct ast_sched_context *sched) |
AST_TEST_DEFINE (nack_no_packet_loss) | |
AST_TEST_DEFINE (nack_nominal) | |
AST_TEST_DEFINE (nack_overflow) | |
AST_TEST_DEFINE (lost_packet_stats_nominal) | |
AST_TEST_DEFINE (remb_nominal) | |
AST_TEST_DEFINE (sr_rr_nominal) | |
AST_TEST_DEFINE (fir_nominal) | |
AST_TEST_DEFINE (mes) | |
static int | load_module (void) |
static void | SLEEP_SPINNER (int ms) |
static int | test_init_rtp_instances (struct ast_rtp_instance **instance1, struct ast_rtp_instance **instance2, struct ast_sched_context *test_sched, enum test_type type) |
static void | test_read_frames (struct ast_rtp_instance *instance, int num) |
static void | test_write_and_read_frames (struct ast_rtp_instance *instance1, struct ast_rtp_instance *instance2, int seqno, int num) |
static void | test_write_and_read_interleaved_frames (struct ast_rtp_instance *instance1, struct ast_rtp_instance *instance2, int howlong, int rtcp_interval) |
static void | test_write_frames (struct ast_rtp_instance *instance, int seqno, int num) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "RTP/RTCP test module" , .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 |
RTP/RTCP Unit Tests.
Definition in file test_res_rtp.c.