Asterisk - The Open Source Telephony Project
18.5.0
|
sip channel dialplan functions and unit tests More...
#include "asterisk.h"
#include <math.h>
#include "asterisk/channel.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/pbx.h"
#include "asterisk/acl.h"
#include "include/sip.h"
#include "include/globals.h"
#include "include/dialog.h"
#include "include/dialplan_functions.h"
#include "include/sip_utils.h"
Go to the source code of this file.
Functions | |
AST_TEST_DEFINE (test_sip_rtpqos_1) | |
int | sip_acf_channel_read (struct ast_channel *chan, const char *funcname, char *preparse, char *buf, size_t buflen) |
Channel read dialplan function for SIP. More... | |
void | sip_dialplan_function_register_tests (void) |
SIP test registration. More... | |
void | sip_dialplan_function_unregister_tests (void) |
SIP test registration. More... | |
static int | test_sip_rtpqos_1_destroy (struct ast_rtp_instance *instance) |
static int | test_sip_rtpqos_1_get_stat (struct ast_rtp_instance *instance, struct ast_rtp_instance_stats *stats, enum ast_rtp_instance_stat stat) |
static int | test_sip_rtpqos_1_new (struct ast_rtp_instance *instance, struct ast_sched_context *sched, struct ast_sockaddr *addr, void *data) |
static struct ast_frame * | test_sip_rtpqos_1_read (struct ast_rtp_instance *instance, int rtcp) |
static int | test_sip_rtpqos_1_write (struct ast_rtp_instance *instance, struct ast_frame *frame) |
sip channel dialplan functions and unit tests
Definition in file sip/dialplan_functions.c.
AST_TEST_DEFINE | ( | test_sip_rtpqos_1 | ) |
Definition at line 359 of file sip/dialplan_functions.c.
References ast_channel_tech_pvt_set(), ast_channel_tech_set(), ast_channel_unref, ast_dummy_channel_alloc, ast_free, ast_rtp_engine_register, ast_rtp_engine_unregister(), ast_rtp_instance_new(), ast_rtp_instance_set_remote_address, ast_str_buffer(), ast_str_create, ast_str_set(), ast_str_substitute_variables(), ast_strlen_zero, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, bindaddr, dialog_ref, dialog_unlink_all(), dialog_unref, done, sip_to_pjsip::info(), ast_rtp_instance_stats::local_maxjitter, ast_rtp_instance_stats::local_maxrxploss, ast_rtp_instance_stats::local_minjitter, ast_rtp_instance_stats::local_minrxploss, ast_rtp_instance_stats::local_normdevjitter, ast_rtp_instance_stats::local_normdevrxploss, ast_rtp_instance_stats::local_ssrc, ast_rtp_instance_stats::local_stdevjitter, ast_rtp_instance_stats::local_stdevrxploss, ast_rtp_instance_stats::maxrtt, ast_rtp_instance_stats::minrtt, name, ast_rtp_engine::name, ast_rtp_instance_stats::normdevrtt, NULL, sip_pvt::owner, ast_rtp_instance_stats::remote_maxjitter, ast_rtp_instance_stats::remote_maxrxploss, ast_rtp_instance_stats::remote_minjitter, ast_rtp_instance_stats::remote_minrxploss, ast_rtp_instance_stats::remote_normdevjitter, ast_rtp_instance_stats::remote_normdevrxploss, ast_rtp_instance_stats::remote_ssrc, ast_rtp_instance_stats::remote_stdevjitter, ast_rtp_instance_stats::remote_stdevrxploss, sip_pvt::rtp, ast_rtp_instance_stats::rtt, ast_rtp_instance_stats::rxcount, ast_rtp_instance_stats::rxjitter, ast_rtp_instance_stats::rxploss, sip_alloc, SIP_NOTIFY, sip_tech, ast_rtp_instance_stats::stdevrtt, TEST_EXECUTE, TEST_INIT, test_sip_rtpqos_1_destroy(), test_sip_rtpqos_1_get_stat(), test_sip_rtpqos_1_new(), test_sip_rtpqos_1_read(), test_sip_rtpqos_1_write(), ast_rtp_instance_stats::txcount, ast_rtp_instance_stats::txjitter, ast_rtp_instance_stats::txploss, and type.
int sip_acf_channel_read | ( | struct ast_channel * | chan, |
const char * | funcname, | ||
char * | preparse, | ||
char * | buf, | ||
size_t | buflen | ||
) |
Channel read dialplan function for SIP.
Definition at line 127 of file sip/dialplan_functions.c.
References args, AST_APP_ARG, ast_channel_tech(), ast_channel_tech_pvt(), ast_copy_string(), AST_DECLARE_APP_ARGS, ast_log, AST_MAX_USER_FIELD, ast_ouraddrfor(), ast_rtp_instance_get_local_address(), ast_rtp_instance_get_quality(), ast_rtp_instance_get_remote_address, ast_rtp_instance_get_stats(), AST_RTP_INSTANCE_STAT_ALL, AST_RTP_INSTANCE_STAT_FIELD_QUALITY, ast_sockaddr_isnull(), ast_sockaddr_stringify(), ast_sockaddr_stringify_addr(), ast_sockaddr_stringify_port(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero, AST_TRANSPORT_TLS, sip_pvt::from, sip_pvt::initreq, IS_SIP_TECH, ast_rtp_instance_stats::local_maxjitter, ast_rtp_instance_stats::local_maxrxploss, ast_rtp_instance_stats::local_minjitter, ast_rtp_instance_stats::local_minrxploss, ast_rtp_instance_stats::local_normdevjitter, ast_rtp_instance_stats::local_normdevrxploss, ast_rtp_instance_stats::local_ssrc, ast_rtp_instance_stats::local_stdevjitter, ast_rtp_instance_stats::local_stdevrxploss, LOG_ERROR, LOG_WARNING, ast_rtp_instance_stats::maxrtt, ast_rtp_instance_stats::minrtt, name, ast_rtp_instance_stats::normdevrtt, NULL, parse(), sip_pvt::peername, sip_pvt::recv, ast_rtp_instance_stats::remote_maxjitter, ast_rtp_instance_stats::remote_maxrxploss, ast_rtp_instance_stats::remote_minjitter, ast_rtp_instance_stats::remote_minrxploss, ast_rtp_instance_stats::remote_normdevjitter, ast_rtp_instance_stats::remote_normdevrxploss, ast_rtp_instance_stats::remote_ssrc, ast_rtp_instance_stats::remote_stdevjitter, ast_rtp_instance_stats::remote_stdevrxploss, REQ_OFFSET_TO_STR, sip_pvt::rtp, ast_rtp_instance_stats::rtt, ast_rtp_instance_stats::rxcount, ast_rtp_instance_stats::rxjitter, ast_rtp_instance_stats::rxploss, sip_pvt::sa, sip_pvt::socket, sip_pvt::srtp, t38properties::state, ast_rtp_instance_stats::stdevrtt, sip_pvt::t38, T38_DISABLED, sip_pvt::trtp, ast_rtp_instance_stats::txcount, ast_rtp_instance_stats::txjitter, ast_rtp_instance_stats::txploss, type, sip_socket::type, sip_pvt::uri, sip_pvt::useragent, and sip_pvt::vrtp.
void sip_dialplan_function_register_tests | ( | void | ) |
SIP test registration.
register dialplan function tests
Definition at line 502 of file sip/dialplan_functions.c.
References AST_TEST_REGISTER.
Referenced by sip_register_tests().
void sip_dialplan_function_unregister_tests | ( | void | ) |
SIP test registration.
unregister dialplan function tests
Definition at line 508 of file sip/dialplan_functions.c.
References AST_TEST_UNREGISTER.
Referenced by sip_unregister_tests().
|
static |
Definition at line 334 of file sip/dialplan_functions.c.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 352 of file sip/dialplan_functions.c.
References ast_rtp_instance_get_data().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 327 of file sip/dialplan_functions.c.
References ast_rtp_instance_set_data().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 340 of file sip/dialplan_functions.c.
References ast_null_frame.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 346 of file sip/dialplan_functions.c.
Referenced by AST_TEST_DEFINE().