36 struct pjsip_rx_data *rdata,
int code)
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 int unload_module(void)
void ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *supplement)
Unregister a an supplement to SIP session processing.
struct pjsip_inv_session * inv_session
A structure describing a SIP session.
static struct ast_mansession session
static void send_response(struct ast_sip_session *session, struct pjsip_rx_data *rdata, int code)
static int load_module(void)
static struct ast_sip_session_supplement empty_info_supplement
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
A supplement to SIP message processing.
static int empty_info_incoming_request(struct ast_sip_session *session, struct pjsip_rx_data *rdata)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_sip_session_register_supplement(supplement)