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.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static pj_status_t | sips_contact_on_tx_request (pjsip_tx_data *tdata) |
Upgrade Contact URIs on outgoing SIP requests to SIPS if required. More... | |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "UAC SIPS Contact support" , .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, .load_pri = AST_MODPRI_APP_DEPEND, .requires = "res_pjsip", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static pjsip_module | sips_contact_module |
|
static |
Definition at line 106 of file res_pjsip_sips_contact.c.
|
static |
Definition at line 106 of file res_pjsip_sips_contact.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 106 of file res_pjsip_sips_contact.c.
|
static |
Definition at line 91 of file res_pjsip_sips_contact.c.
References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_sip_register_service(), and sips_contact_module.
|
static |
Upgrade Contact URIs on outgoing SIP requests to SIPS if required.
The rules being used here are according to RFC 3261 section 8.1.1.8. In brief, if the request URI is SIPS or the topmost Route header is SIPS, then the Contact header we send must also be SIPS.
Definition at line 39 of file res_pjsip_sips_contact.c.
|
static |
Definition at line 85 of file res_pjsip_sips_contact.c.
References ast_sip_unregister_service(), and sips_contact_module.
|
static |
Definition at line 106 of file res_pjsip_sips_contact.c.
|
static |
Definition at line 106 of file res_pjsip_sips_contact.c.
|
static |
Definition at line 78 of file res_pjsip_sips_contact.c.
Referenced by load_module(), and unload_module().