Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include "asterisk.h"
#include <pjsip.h>
#include <pjsip_ua.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/res_pjsip_session.h"
#include "asterisk/module.h"
#include "asterisk/causes.h"
#include "asterisk/threadpool.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 void | rfc3326_add_reason_header (struct ast_sip_session *session, struct pjsip_tx_data *tdata) |
static int | rfc3326_incoming_request (struct ast_sip_session *session, struct pjsip_rx_data *rdata) |
static void | rfc3326_incoming_response (struct ast_sip_session *session, struct pjsip_rx_data *rdata) |
static void | rfc3326_outgoing_request (struct ast_sip_session *session, struct pjsip_tx_data *tdata) |
static void | rfc3326_outgoing_response (struct ast_sip_session *session, struct pjsip_tx_data *tdata) |
static void | rfc3326_use_reason_header (struct ast_sip_session *session, struct pjsip_rx_data *rdata) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "PJSIP RFC3326 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,res_pjsip_session", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_sip_session_supplement | rfc3326_supplement |
|
static |
Definition at line 167 of file res_pjsip_rfc3326.c.
|
static |
Definition at line 167 of file res_pjsip_rfc3326.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 167 of file res_pjsip_rfc3326.c.
|
static |
Definition at line 149 of file res_pjsip_rfc3326.c.
References AST_MODULE_LOAD_SUCCESS, ast_sip_session_register_supplement, and rfc3326_supplement.
|
static |
Definition at line 93 of file res_pjsip_rfc3326.c.
References ast_cause2str(), AST_CAUSE_ANSWERED_ELSEWHERE, ast_channel_hangupcause(), ast_debug, ast_sip_add_header(), ast_sorcery_object_get_id(), buf, and session.
Referenced by rfc3326_outgoing_request(), and rfc3326_outgoing_response().
|
static |
Definition at line 69 of file res_pjsip_rfc3326.c.
References rfc3326_use_reason_header(), and session.
|
static |
Definition at line 82 of file res_pjsip_rfc3326.c.
References rfc3326_use_reason_header(), session, and status.
|
static |
Definition at line 112 of file res_pjsip_rfc3326.c.
References ast_threadpool_serializer_get_current(), rfc3326_add_reason_header(), and session.
|
static |
Definition at line 129 of file res_pjsip_rfc3326.c.
References ast_threadpool_serializer_get_current(), rfc3326_add_reason_header(), session, and status.
|
static |
Definition at line 37 of file res_pjsip_rfc3326.c.
References ast_channel_hangupcause_set(), ast_copy_pj_str(), ast_sip_hangup_sip2cause(), ast_skip_blanks(), buf, header::next, NULL, and session.
Referenced by rfc3326_incoming_request(), and rfc3326_incoming_response().
|
static |
Definition at line 155 of file res_pjsip_rfc3326.c.
References ast_sip_session_unregister_supplement(), and rfc3326_supplement.
|
static |
Definition at line 167 of file res_pjsip_rfc3326.c.
|
static |
Definition at line 167 of file res_pjsip_rfc3326.c.
|
static |
Definition at line 142 of file res_pjsip_rfc3326.c.
Referenced by load_module(), and unload_module().