Asterisk - The Open Source Telephony Project
18.5.0
|
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. More... | |
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. More... | |
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 656 of file res_pjsip_pubsub.h.
struct { ... } list |
Referenced by ast_sip_pubsub_unregister_body_supplement().
struct ast_sip_pubsub_body_supplement* next |
Definition at line 680 of file res_pjsip_pubsub.h.
const char* subtype |
Content subtype In "plain/text", "text" is the subtype.
Definition at line 666 of file res_pjsip_pubsub.h.
Referenced by ast_sip_pubsub_generate_body_content().
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 679 of file res_pjsip_pubsub.h.
Referenced by ast_sip_pubsub_generate_body_content().
const char* type |
Content type In "plain/text", "plain" is the type.
Definition at line 661 of file res_pjsip_pubsub.h.
Referenced by ast_sip_pubsub_generate_body_content(), and Property::load().