Asterisk - The Open Source Telephony Project  GIT-master-4a4f1a5
Data Fields
sip_subscription_tree Struct Reference

A tree of SIP subscriptions. More...

Data Fields

pjsip_dialog * dlg
struct ast_sip_endpointendpoint
pjsip_evsub * evsub
struct ast_sip_sched_taskexpiration_task
int is_list
struct {
   struct sip_subscription_tree *   next
unsigned int notification_batch_interval
int notify_sched_id
struct subscription_persistencepersistence
enum ast_sip_subscription_role role
struct ast_sip_subscriptionroot
unsigned int send_scheduled_notify
struct ast_taskprocessorserializer
enum sip_subscription_tree_state state
pjsip_transport * transport

Detailed Description

A tree of SIP subscriptions.

Because of the ability to subscribe to resource lists, a SIP subscription can result in a tree of subscriptions being created. This structure represents the information relevant to the subscription as a whole, to include the underlying PJSIP structure for the subscription.

Definition at line 431 of file res_pjsip_pubsub.c.

Field Documentation

◆ dlg

pjsip_dialog* dlg

◆ endpoint

struct ast_sip_endpoint* endpoint

◆ evsub

pjsip_evsub* evsub

◆ expiration_task

struct ast_sip_sched_task* expiration_task

On asterisk restart, this is the task data used to restart the expiration timer if pjproject isn't capable of restarting the timer.

Definition at line 462 of file res_pjsip_pubsub.c.

Referenced by initial_notify_task(), pubsub_on_evsub_state(), and pubsub_on_rx_refresh().

◆ is_list

int is_list

Is this subscription to a list?

Definition at line 453 of file res_pjsip_pubsub.c.

Referenced by create_subscription_tree(), SwaggerType::load(), pubsub_on_rx_refresh(), send_notify(), and sip_subscription_accept().

◆ next [1/2]

struct sip_subscription_tree* next

Definition at line 455 of file res_pjsip_pubsub.c.

Referenced by for_each_subscription(), and remove_subscription().

◆  [2/2]

struct { ... } next

Next item in the list

◆ notification_batch_interval

unsigned int notification_batch_interval

Interval to use for batching notifications

Definition at line 445 of file res_pjsip_pubsub.c.

Referenced by create_subscription_tree(), and schedule_notification().

◆ notify_sched_id

int notify_sched_id

Scheduler ID for batched notification

Definition at line 447 of file res_pjsip_pubsub.c.

Referenced by allocate_subscription_tree(), schedule_notification(), and serialized_send_notify().

◆ persistence

struct subscription_persistence* persistence

◆ role

◆ root

struct ast_sip_subscription* root

◆ send_scheduled_notify

unsigned int send_scheduled_notify

Indicator if scheduled batched notification should be sent

Definition at line 449 of file res_pjsip_pubsub.c.

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

◆ serializer

◆ state

◆ transport

pjsip_transport* transport

The transport the subscription was received on. Only used for reliable transports.

Definition at line 466 of file res_pjsip_pubsub.c.

Referenced by subscription_persistence_remove(), and subscription_persistence_update().

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