36 struct pjsip_rx_data *rdata,
int code)
39 pjsip_dialog *dlg =
session->inv_session->dlg;
41 if (pjsip_dlg_create_response(dlg, rdata, code,
NULL, &tdata) == PJ_SUCCESS) {
42 struct pjsip_transaction *tsx = pjsip_rdata_get_tsx(rdata);
43 pjsip_dlg_send_response(dlg, tsx, tdata);
48 struct pjsip_rx_data *rdata)
50 if (!rdata->msg_info.ctype) {
85 .
requires =
"res_pjsip,res_pjsip_session",
Asterisk main include file. File version handling, generic pbx functions.
static struct ast_mansession session
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_SIP_SUPPLEMENT_PRIORITY_LAST
static int empty_info_incoming_request(struct ast_sip_session *session, struct pjsip_rx_data *rdata)
static struct ast_sip_session_supplement empty_info_supplement
static void send_response(struct ast_sip_session *session, struct pjsip_rx_data *rdata, int code)
static int load_module(void)
static int unload_module(void)
#define ast_sip_session_register_supplement(supplement)
void ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *supplement)
Unregister a an supplement to SIP session processing.
A supplement to SIP message processing.
A structure describing a SIP session.