Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
A tree of SIP subscriptions. More...
Data Fields | |
pjsip_dialog * | dlg |
struct ast_sip_endpoint * | endpoint |
pjsip_evsub * | evsub |
struct ast_sip_sched_task * | expiration_task |
unsigned int | generate_initial_notify |
int | is_list |
struct { | |
struct sip_subscription_tree * next | |
} | next |
unsigned int | notification_batch_interval |
int | notify_sched_id |
struct subscription_persistence * | persistence |
enum ast_sip_subscription_role | role |
struct ast_sip_subscription * | root |
unsigned int | send_scheduled_notify |
struct ast_taskprocessor * | serializer |
enum sip_subscription_tree_state | state |
char | transport_key [IP6ADDR_COLON_PORT_BUFLEN] |
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 442 of file res_pjsip_pubsub.c.
pjsip_dialog* dlg |
The underlying PJSIP dialog
Definition at line 454 of file res_pjsip_pubsub.c.
Referenced by allocate_subscription(), ast_sip_create_subscription(), ast_sip_subscription_get_remote_uri(), ast_sip_subscription_notify(), clean_sub_tree(), cli_complete_subscription_common(), cli_list_subscriptions_detail(), cli_show_subscription_common(), cli_show_subscriptions_detail(), create_subscription_tree(), initial_notify_task(), pubsub_on_refresh_timeout(), serialized_send_notify(), sip_subscription_to_ami(), subscription_persistence_create(), subscription_persistence_update(), subscription_setup_dialog(), subscription_tree_destructor(), and subscription_unreference_dialog().
struct ast_sip_endpoint* endpoint |
The endpoint with which the subscription is communicating
Definition at line 444 of file res_pjsip_pubsub.c.
Referenced by allocate_subscription_tree(), ast_sip_create_subscription(), cli_list_subscriptions_detail(), cli_show_subscriptions_detail(), create_subscription_tree(), pubsub_on_rx_refresh(), remove_subscription(), sip_subscription_send_request(), sip_subscription_to_ami(), subscription_persistence_create(), subscription_persistence_remove(), subscription_persistence_update(), subscription_setup_dialog(), and subscription_tree_destructor().
pjsip_evsub* evsub |
The underlying PJSIP event subscription structure
Definition at line 452 of file res_pjsip_pubsub.c.
Referenced by ast_sip_create_subscription(), clean_sub_tree(), create_subscription_tree(), initial_notify_task(), pubsub_on_client_refresh(), pubsub_on_evsub_state(), pubsub_on_refresh_timeout(), pubsub_on_rx_refresh(), pubsub_on_rx_subscribe_request(), pubsub_on_server_timeout(), send_notify(), serialized_pubsub_on_client_refresh(), sip_subscription_accept(), sip_subscription_send_request(), sip_subscription_to_ami(), sub_persistence_recreate(), sub_tree_subscription_terminate_cb(), and subscription_setup_dialog().
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 473 of file res_pjsip_pubsub.c.
Referenced by clean_sub_tree(), initial_notify_task(), and pubsub_on_rx_refresh().
unsigned int generate_initial_notify |
Indicator if initial notify should be generated. Used to refresh modified RLS.
Definition at line 481 of file res_pjsip_pubsub.c.
Referenced by pubsub_on_refresh_timeout(), and pubsub_on_rx_refresh().
int is_list |
Is this subscription to a list?
Definition at line 464 of file res_pjsip_pubsub.c.
Referenced by create_subscription_tree(), SwaggerType::load(), pubsub_on_rx_refresh(), send_notify(), and sip_subscription_accept().
struct sip_subscription_tree* next |
Definition at line 466 of file res_pjsip_pubsub.c.
Referenced by for_each_subscription(), and remove_subscription().
struct { ... } next |
Next item in the list
unsigned int notification_batch_interval |
Interval to use for batching notifications
Definition at line 456 of file res_pjsip_pubsub.c.
Referenced by create_subscription_tree(), and schedule_notification().
int notify_sched_id |
Scheduler ID for batched notification
Definition at line 458 of file res_pjsip_pubsub.c.
Referenced by allocate_subscription_tree(), pubsub_on_rx_refresh(), schedule_notification(), and serialized_send_notify().
struct subscription_persistence* persistence |
Persistence information
Definition at line 450 of file res_pjsip_pubsub.c.
Referenced by allocate_subscription(), ast_sip_subscription_set_persistence_data(), cli_subscription_expiry(), create_subscription_tree(), initial_notify_task(), pubsub_on_rx_subscribe_request(), send_notify(), sub_tree_subscription_terminate_cb(), subscription_persistence_remove(), and subscription_persistence_update().
enum ast_sip_subscription_role role |
The role for this subscription
Definition at line 448 of file res_pjsip_pubsub.c.
Referenced by ami_subscription_detail_inbound(), ami_subscription_detail_outbound(), cli_complete_subscription_inbound(), cli_complete_subscription_outbound(), cli_list_subscriptions_inbound(), cli_list_subscriptions_outbound(), cli_show_subscription_inbound(), cli_show_subscription_outbound(), cli_show_subscriptions_inbound(), cli_show_subscriptions_outbound(), create_subscription_tree(), and sip_subscription_to_ami().
struct ast_sip_subscription* root |
The root of the subscription tree
Definition at line 462 of file res_pjsip_pubsub.c.
Referenced by clean_sub_tree(), cli_list_subscriptions_detail(), cli_show_subscription_common(), cli_show_subscriptions_detail(), create_subscription_tree(), destroy_subscriptions(), initial_notify_task(), pubsub_on_refresh_timeout(), pubsub_on_rx_refresh(), remove_subscription(), send_notify(), serialized_send_notify(), sip_subscription_to_ami(), sub_tree_subscription_terminate_cb(), subscription_persistence_remove(), subscription_persistence_update(), and subscription_tree_destructor().
unsigned int send_scheduled_notify |
Indicator if scheduled batched notification should be sent
Definition at line 460 of file res_pjsip_pubsub.c.
Referenced by pubsub_on_rx_refresh(), schedule_notification(), send_notify(), and serialized_send_notify().
struct ast_taskprocessor* serializer |
Serializer on which to place operations for this subscription
Definition at line 446 of file res_pjsip_pubsub.c.
Referenced by allocate_subscription_tree(), initial_notify_task(), pubsub_on_client_refresh(), pubsub_on_rx_refresh(), pubsub_on_rx_subscribe_request(), pubsub_on_server_timeout(), sched_cb(), sub_persistence_recreate(), sub_tree_transport_cb(), subscription_setup_dialog(), and subscription_tree_destructor().
Subscription tree state
Definition at line 468 of file res_pjsip_pubsub.c.
Referenced by clean_sub_tree(), pubsub_on_evsub_state(), pubsub_on_refresh_timeout(), pubsub_on_rx_refresh(), pubsub_on_server_timeout(), serialized_pubsub_on_refresh_timeout(), serialized_send_notify(), and sub_tree_subscription_terminate_cb().
char transport_key[IP6ADDR_COLON_PORT_BUFLEN] |
The transport the subscription was received on. Only used for reliable transports.
Definition at line 477 of file res_pjsip_pubsub.c.
Referenced by subscription_persistence_remove(), and subscription_persistence_update().