Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
ast_sip_subscription_response_data Struct Reference

Data for responses to SUBSCRIBEs and NOTIFIEs. More...

#include <res_pjsip_pubsub.h>

Collaboration diagram for ast_sip_subscription_response_data:
Collaboration graph
[legend]

Data Fields

struct ast_sip_bodybody
 
struct ast_variableheaders
 
int status_code
 
const char * status_text
 

Detailed Description

Data for responses to SUBSCRIBEs and NOTIFIEs.

Some of PJSIP's evsub callbacks expect us to provide them with data so that they can craft a response rather than have us create our own response.

Filling in the structure is optional, since the framework will automatically respond with a 200 OK response if we do not provide it with any additional data.

Definition at line 208 of file res_pjsip_pubsub.h.

Field Documentation

◆ body

struct ast_sip_body* body

Optional body to add to the response

Definition at line 216 of file res_pjsip_pubsub.h.

◆ headers

struct ast_variable* headers

Optional additional headers to add to the response

Definition at line 214 of file res_pjsip_pubsub.h.

◆ status_code

int status_code

Status code of the response

Definition at line 210 of file res_pjsip_pubsub.h.

◆ status_text

const char* status_text

Optional status text

Definition at line 212 of file res_pjsip_pubsub.h.


The documentation for this struct was generated from the following file: