Asterisk - The Open Source Telephony Project
18.5.0
|
RTCP logging with Homer. More...
#include "asterisk.h"
#include "asterisk/res_hep.h"
#include "asterisk/module.h"
#include "asterisk/netsock2.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/stasis.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/json.h"
#include "asterisk/config.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static char * | assign_uuid (struct ast_json *json_channel) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static void | rtcp_message_handler (struct stasis_message *message) |
static void | rtp_topic_handler (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "RTCP HEPv3 Logger" , .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 = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .requires = "res_hep", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct stasis_subscription * | stasis_rtp_subscription |
RTCP logging with Homer.
Definition in file res_hep_rtcp.c.
|
static |
Definition at line 191 of file res_hep_rtcp.c.
|
static |
Definition at line 191 of file res_hep_rtcp.c.
|
static |
Definition at line 46 of file res_hep_rtcp.c.
References ast_begins_with(), ast_channel_cleanup, ast_channel_get_by_name(), ast_func_read(), ast_json_object_get(), ast_json_string_get(), ast_strdup, buf, HEP_UUID_TYPE_CALL_ID, hepv3_get_uuid_type(), and NULL.
Referenced by rtcp_message_handler().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 191 of file res_hep_rtcp.c.
|
static |
Definition at line 158 of file res_hep_rtcp.c.
References ast_log, AST_LOG_WARNING, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_rtp_rtcp_received_type(), ast_rtp_rtcp_sent_type(), ast_rtp_topic(), hepv3_is_loaded(), NULL, rtp_topic_handler(), stasis_subscribe, stasis_subscription_accept_message_type(), STASIS_SUBSCRIPTION_FILTER_SELECTIVE, and stasis_subscription_set_filter().
Referenced by unload_module().
|
static |
Definition at line 85 of file res_hep_rtcp.c.
References ao2_ref, assign_uuid(), ast_json_dump_string, ast_json_free(), ast_json_object_get(), ast_json_string_get(), ast_json_unref(), ast_sockaddr_parse(), ast_strlen_zero, ast_tvnow(), hepv3_capture_info::capture_time, hepv3_capture_info::capture_type, hepv3_capture_info::dst_addr, HEPV3_CAPTURE_TYPE_RTCP, hepv3_create_capture_info(), hepv3_send_packet(), NULL, PARSE_PORT_REQUIRE, RAII_VAR, hepv3_capture_info::src_addr, stasis_message_to_json(), hepv3_capture_info::uuid, and hepv3_capture_info::zipped.
Referenced by rtp_topic_handler().
|
static |
Definition at line 148 of file res_hep_rtcp.c.
References ast_rtp_rtcp_received_type(), ast_rtp_rtcp_sent_type(), rtcp_message_handler(), and stasis_message_type().
Referenced by load_module().
|
static |
Definition at line 177 of file res_hep_rtcp.c.
References AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_SUPPORT_EXTENDED, ASTERISK_GPL_KEY, load_module(), and stasis_unsubscribe_and_join().
|
static |
Definition at line 191 of file res_hep_rtcp.c.
|
static |
Definition at line 191 of file res_hep_rtcp.c.
|
static |
Definition at line 44 of file res_hep_rtcp.c.