Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include "asterisk.h"
#include <pjsip.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/module.h"
Go to the source code of this file.
Macros | |
#define | DOMAIN_NAME_LEN 255 |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static struct ast_sip_endpoint * | anonymous_identify (pjsip_rx_data *rdata) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | find_transport_state_in_use (void *obj, void *arg, int flags) |
static int | get_endpoint_details (pjsip_rx_data *rdata, char *domain, size_t domain_size) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "PJSIP Anonymous endpoint identifier" , .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, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "res_pjsip", } |
static struct ast_sip_endpoint_identifier | anonymous_identifier |
static const struct ast_module_info * | ast_module_info = &__mod_info |
#define DOMAIN_NAME_LEN 255 |
Definition at line 58 of file res_pjsip_endpoint_identifier_anonymous.c.
|
static |
Definition at line 142 of file res_pjsip_endpoint_identifier_anonymous.c.
|
static |
Definition at line 142 of file res_pjsip_endpoint_identifier_anonymous.c.
|
static |
Definition at line 60 of file res_pjsip_endpoint_identifier_anonymous.c.
References ao2_callback, ao2_cleanup, ao2_ref, ast_debug, ast_sip_get_disable_multi_domain(), ast_sip_get_sorcery(), ast_sip_get_transport_states(), ast_sorcery_object_get_id(), ast_sorcery_retrieve_by_id(), ast_strlen_zero(), ast_sip_transport::domain, ast_sip_domain_alias::domain, DOMAIN_NAME_LEN, done, find_transport_state_in_use(), get_endpoint_details(), ast_sip_transport_state::id, NULL, and transport_states.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 142 of file res_pjsip_endpoint_identifier_anonymous.c.
|
static |
Definition at line 43 of file res_pjsip_endpoint_identifier_anonymous.c.
References CMP_MATCH, ast_sip_transport_state::factory, and ast_sip_transport_state::transport.
Referenced by anonymous_identify().
|
static |
Definition at line 33 of file res_pjsip_endpoint_identifier_anonymous.c.
References ast_copy_pj_str(), ast_sip_is_uri_sip_sips(), and ast_sip_pjsip_uri_get_hostname().
Referenced by anonymous_identify().
|
static |
Definition at line 125 of file res_pjsip_endpoint_identifier_anonymous.c.
References anonymous_identifier, AST_MODULE_LOAD_SUCCESS, and ast_sip_register_endpoint_identifier_with_name().
|
static |
Definition at line 131 of file res_pjsip_endpoint_identifier_anonymous.c.
References anonymous_identifier, and ast_sip_unregister_endpoint_identifier().
|
static |
Definition at line 142 of file res_pjsip_endpoint_identifier_anonymous.c.
|
static |
Definition at line 121 of file res_pjsip_endpoint_identifier_anonymous.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 142 of file res_pjsip_endpoint_identifier_anonymous.c.