Asterisk - The Open Source Telephony Project
18.5.0
|
PJSIP logging with Homer. More...
#include "asterisk.h"
#include <pjsip.h>
#include <pjsip_ua.h>
#include <pjlib.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/res_pjsip_session.h"
#include "asterisk/res_hep.h"
#include "asterisk/module.h"
#include "asterisk/netsock2.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static char * | assign_uuid (const pj_str_t *call_id, const pj_str_t *local_tag, const pj_str_t *remote_tag) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static pj_bool_t | logging_on_rx_msg (pjsip_rx_data *rdata) |
static pj_status_t | logging_on_tx_msg (pjsip_tx_data *tdata) |
static int | transport_to_protocol_id (pjsip_transport *tp) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "PJSIP 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_pjsip,res_pjsip_session,res_hep", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static pjsip_module | logging_module |
PJSIP logging with Homer.
Definition in file res_hep_pjsip.c.
|
static |
Definition at line 255 of file res_hep_pjsip.c.
|
static |
Definition at line 255 of file res_hep_pjsip.c.
|
static |
Definition at line 47 of file res_hep_pjsip.c.
References ao2_cleanup, ast_channel_name(), ast_copy_pj_str(), ast_malloc, ast_sip_dialog_get_session(), ast_strdup, HEP_UUID_TYPE_CHANNEL, hepv3_get_uuid_type(), NULL, RAII_VAR, session, and hepv3_capture_info::uuid.
Referenced by logging_on_rx_msg(), and logging_on_tx_msg().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 255 of file res_hep_pjsip.c.
|
static |
Definition at line 233 of file res_hep_pjsip.c.
References ast_log, AST_LOG_WARNING, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_sip_register_service(), hepv3_is_loaded(), and logging_module.
Referenced by unload_module().
|
static |
Definition at line 156 of file res_hep_pjsip.c.
References ao2_ref, assign_uuid(), ast_sip_get_pjsip_endpoint(), ast_sockaddr_parse(), hepv3_capture_info::capture_time, hepv3_capture_info::capture_type, hepv3_capture_info::dst_addr, HEPV3_CAPTURE_TYPE_SIP, hepv3_create_capture_info(), hepv3_send_packet(), PARSE_PORT_REQUIRE, hepv3_capture_info::protocol_id, hepv3_capture_info::src_addr, transport_to_protocol_id(), hepv3_capture_info::uuid, and hepv3_capture_info::zipped.
|
static |
Definition at line 83 of file res_hep_pjsip.c.
References ao2_ref, assign_uuid(), ast_sip_get_pjsip_endpoint(), ast_sockaddr_parse(), ast_tvnow(), hepv3_capture_info::capture_time, hepv3_capture_info::capture_type, hepv3_capture_info::dst_addr, HEPV3_CAPTURE_TYPE_SIP, hepv3_create_capture_info(), hepv3_send_packet(), PARSE_PORT_REQUIRE, hepv3_capture_info::protocol_id, hepv3_capture_info::src_addr, transport_to_protocol_id(), hepv3_capture_info::uuid, and hepv3_capture_info::zipped.
|
static |
Definition at line 74 of file res_hep_pjsip.c.
Referenced by logging_on_rx_msg(), and logging_on_tx_msg().
|
static |
Definition at line 244 of file res_hep_pjsip.c.
References AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_SUPPORT_EXTENDED, ast_sip_unregister_service(), ASTERISK_GPL_KEY, load_module(), and logging_module.
|
static |
Definition at line 255 of file res_hep_pjsip.c.
|
static |
Definition at line 255 of file res_hep_pjsip.c.
|
static |
Definition at line 223 of file res_hep_pjsip.c.
Referenced by load_module(), and unload_module().