Asterisk - The Open Source Telephony Project
21.4.1
|
Body supplement. More...
#include <res_pjsip_pubsub.h>
Data Fields | |
struct { | |
struct ast_sip_pubsub_body_supplement * next | |
} | list |
const char * | subtype |
Content subtype In "plain/text", "text" is the subtype. | |
int(* | supplement_body )(void *body, void *data) |
Add additional content to a SIP request body. More... | |
const char * | type |
Content type In "plain/text", "plain" is the type. | |
Body supplement.
Body supplements provide additions to bodies not already provided by body generators. This may include proprietary extensions, optional content, or other nonstandard fare.
Definition at line 700 of file res_pjsip_pubsub.h.
int(* supplement_body) (void *body, void *data) |
Add additional content to a SIP request body.
A body generator will have already allocated a body and populated it with base data for the event. The supplement's duty is, if desired, to extend the body to have optional data beyond what a base RFC specifies.
body | The body of the SIP request. The type is determined by the body generator that allocated the body. |
data | The subscription data used to populate the body. The type is determined by the content type. |
Definition at line 723 of file res_pjsip_pubsub.h.