36 #define DEFAULT_LANGUAGE "en" 37 #define DEFAULT_ENCODING "identity" 46 status = pjsip_dlg_create_response(session->
inv_session->dlg, rdata, 200,
NULL,&tdata);
47 if (status != PJ_SUCCESS) {
53 if ((hdr = pjsip_endpt_get_capability(endpt, PJSIP_H_ACCEPT,
NULL))) {
54 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*)pjsip_hdr_clone(tdata->pool, hdr));
56 if ((hdr = pjsip_endpt_get_capability(endpt, PJSIP_H_ALLOW,
NULL))) {
57 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*)pjsip_hdr_clone(tdata->pool, hdr));
59 if ((hdr = pjsip_endpt_get_capability(endpt, PJSIP_H_SUPPORTED,
NULL))) {
60 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*)pjsip_hdr_clone(tdata->pool, hdr));
72 status = pjsip_dlg_send_response(session->
inv_session->dlg, pjsip_rdata_get_tsx(rdata), tdata);
73 if (status != PJ_SUCCESS) {
103 .requires =
"res_pjsip,res_pjsip_session",
Asterisk main include file. File version handling, generic pbx functions.
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.
int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value)
Add a header to an outbound SIP message.
static struct ast_mansession session
static int options_incoming_request(struct ast_sip_session *session, pjsip_rx_data *rdata)
static struct ast_sip_session_supplement dlg_options_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.
pjsip_endpoint * ast_sip_get_pjsip_endpoint(void)
Get a pointer to the PJSIP endpoint.
static int load_module(void)
static int unload_module(void)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_sip_session_register_supplement(supplement)