Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_sip_pubsub_body_supplement Struct Reference

Body supplement. More...

#include <res_pjsip_pubsub.h>

Collaboration diagram for ast_sip_pubsub_body_supplement:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Field Documentation

◆ list

struct { ... } list

◆ next

Definition at line 680 of file res_pjsip_pubsub.h.

◆ subtype

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().

◆ supplement_body

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.

Parameters
bodyThe body of the SIP request. The type is determined by the body generator that allocated the body.
dataThe 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().

◆ type

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().


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