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));
71 status = pjsip_dlg_send_response(
session->inv_session->dlg, pjsip_rdata_get_tsx(rdata), tdata);
72 if (
status != PJ_SUCCESS) {
102 .
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
pjsip_endpoint * ast_sip_get_pjsip_endpoint(void)
Get a pointer to the PJSIP endpoint.
int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value)
Add a header to an outbound SIP message.
static int options_incoming_request(struct ast_sip_session *session, pjsip_rx_data *rdata)
static struct ast_sip_session_supplement dlg_options_supplement
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.