41 if (pjsip_dlg_create_response(session->
inv_session->dlg, rdata, code,
NULL, &tdata) == PJ_SUCCESS) {
42 struct pjsip_transaction *tsx = pjsip_rdata_get_tsx(rdata);
44 pjsip_dlg_send_response(session->
inv_session->dlg, tsx, tdata);
50 static const pj_str_t rec_str = {
"Record", 6 };
51 pjsip_generic_string_hdr *record;
57 record = pjsip_msg_find_hdr_by_name(rdata->msg_info.msg, &rec_str,
NULL);
64 if (!pj_stricmp2(&record->hvalue,
"on")) {
66 }
else if (!pj_stricmp2(&record->hvalue,
"off")) {
127 .requires =
"res_pjsip,res_pjsip_session",
#define ast_channel_lock(chan)
struct ast_sip_endpoint * endpoint
static struct ast_sip_session_supplement info_supplement
Asterisk main include file. File version handling, generic pbx functions.
struct ast_sip_info_recording_configuration recording
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.
#define ast_strlen_zero(foo)
static int handle_incoming_request(struct ast_sip_session *session, struct pjsip_rx_data *rdata)
static struct ast_mansession session
static void send_response(struct ast_sip_session *session, int code, struct pjsip_rx_data *rdata)
const ast_string_field offfeature
struct ast_channel * channel
int ast_get_feature(struct ast_channel *chan, const char *feature, char *buf, size_t len)
Get the DTMF code for a call feature.
int ast_queue_frame(struct ast_channel *chan, struct ast_frame *f)
Queue one or more frames to a channel's frame queue.
static int unload_module(void)
struct ast_sip_endpoint_info_configuration info
static int load_module(void)
#define ast_channel_unlock(chan)
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.
const ast_string_field onfeature
#define AST_FEATURE_MAX_LEN
Data structure associated with a single frame of data.
Call Parking and Pickup API Includes code and algorithms from the Zapata library. ...
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_sip_session_register_supplement(supplement)