| struct |
ast_sip_pubsub_body_supplement * next
|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. |
|const char *||type|
|Content type In "plain/text", "plain" is the type. |
Body supplements provide additions to bodies not already provided by body generators. This may include proprietary extensions, optional content, or other nonstandard fare.
|const char* subtype|
|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.|
Referenced by ast_sip_pubsub_generate_body_content().
|const char* type|