Asterisk - The Open Source Telephony Project GIT-master-a358458
Data Fields
ast_sip_subscription Struct Reference

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

Collaboration diagram for ast_sip_subscription:
Collaboration graph
[legend]

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

◆ body_changed

int body_changed

Indicator that the body text has changed since the last notification

Definition at line 506 of file res_pjsip_pubsub.c.

Referenced by generate_notify_body().

◆ body_generator

struct ast_sip_pubsub_body_generator* body_generator

Body generator for NOTIFYs

Definition at line 500 of file res_pjsip_pubsub.c.

◆ body_text

struct ast_str* body_text

Saved NOTIFY body text for this subscription

Definition at line 504 of file res_pjsip_pubsub.c.

Referenced by generate_notify_body().

◆ 

struct { ... } children

◆ current

size_t current

Definition at line 502 of file res_pjsip_pubsub.c.

◆ datastores

struct ao2_container* datastores

◆ display_name

char* display_name

Display Name of resource

Definition at line 518 of file res_pjsip_pubsub.c.

Referenced by allocate_subscription(), and cmp_subscription_childrens().

◆ elems

struct ast_sip_subscription* * elems

Definition at line 502 of file res_pjsip_pubsub.c.

◆ full_state

unsigned int full_state

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

Definition at line 512 of file res_pjsip_pubsub.c.

◆ handler

const struct ast_sip_subscription_handler* handler

◆ max

size_t max

Definition at line 502 of file res_pjsip_pubsub.c.

◆ persistence_data

struct ast_json* persistence_data

Data to be persisted with the subscription

Definition at line 516 of file res_pjsip_pubsub.c.

Referenced by ast_sip_subscription_get_persistence_data(), and ast_sip_subscription_set_persistence_data().

◆ resource

char resource[0]

◆ subscription_state

pjsip_evsub_state subscription_state

The current state of the subscription

Definition at line 508 of file res_pjsip_pubsub.c.

Referenced by pubsub_on_refresh_timeout(), send_notify(), and serialized_send_notify().

◆ tree

struct sip_subscription_tree* tree

Pointer to the base of the tree

Definition at line 498 of file res_pjsip_pubsub.c.

Referenced by allocate_subscription(), ast_sip_subscription_set_persistence_data(), and create_virtual_subscriptions().

◆ uri

pjsip_sip_uri* uri

URI associated with the subscription

Definition at line 514 of file res_pjsip_pubsub.c.

◆ version

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(), and pubsub_on_rx_refresh().


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