Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_sip_subscription Struct Reference

Structure representing a "virtual" SIP subscription. More...

Data Fields

int body_changed
 
struct ast_sip_pubsub_body_generatorbody_generator
 
struct ast_strbody_text
 
struct {
   size_t   current
 
   struct ast_sip_subscription **   elems
 
   size_t   max
 
children
 
struct ao2_containerdatastores
 
char * display_name
 
unsigned int full_state
 
const struct ast_sip_subscription_handlerhandler
 
struct ast_jsonpersistence_data
 
char resource [0]
 
pjsip_evsub_state subscription_state
 
struct sip_subscription_treetree
 
pjsip_sip_uri * uri
 
unsigned int version
 

Detailed Description

Structure representing a "virtual" SIP subscription.

This structure serves a dual purpose. Structurally, it is the constructed tree of subscriptions based on the resources being subscribed to. API-wise, this serves as the handle that subscription handlers use in order to interact with the pubsub API.

Definition at line 492 of file res_pjsip_pubsub.c.

Field Documentation

int body_changed

Indicator that the body text has changed since the last notification

Definition at line 506 of file res_pjsip_pubsub.c.

struct ast_sip_pubsub_body_generator* body_generator

Body generator for NOTIFYs

Definition at line 500 of file res_pjsip_pubsub.c.

struct ast_str* body_text

Saved NOTIFY body text for this subscription

Definition at line 504 of file res_pjsip_pubsub.c.

struct { ... } children

Vector of child subscriptions

struct ao2_container* datastores

Subscription datastores set up by handlers

Definition at line 494 of file res_pjsip_pubsub.c.

char* display_name

Display Name of resource

Definition at line 518 of file res_pjsip_pubsub.c.

unsigned int full_state

For lists, indicates if full state should always be communicated.

Definition at line 512 of file res_pjsip_pubsub.c.

const struct ast_sip_subscription_handler* handler

The handler for this subscription

Definition at line 496 of file res_pjsip_pubsub.c.

struct ast_json* persistence_data

Data to be persisted with the subscription

Definition at line 516 of file res_pjsip_pubsub.c.

char resource[0]

Name of resource being subscribed to

Definition at line 520 of file res_pjsip_pubsub.c.

pjsip_evsub_state subscription_state

The current state of the subscription

Definition at line 508 of file res_pjsip_pubsub.c.

struct sip_subscription_tree* tree

Pointer to the base of the tree

Definition at line 498 of file res_pjsip_pubsub.c.

pjsip_sip_uri* uri

URI associated with the subscription

Definition at line 514 of file res_pjsip_pubsub.c.

unsigned int version

For lists, the current version to place in the RLMI body

Definition at line 510 of file res_pjsip_pubsub.c.

Referenced by ParsingContext::next_stack().


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