mwi_subscription Struct Reference

A subscription for MWI. More...

Collaboration diagram for mwi_subscription:

Collaboration graph
[legend]

Data Fields

char id [1]
unsigned int is_solicited
struct ast_sip_subscriptionsip_sub
struct ao2_containerstasis_subs

Detailed Description

A subscription for MWI.

This subscription is the basis for MWI for an endpoint. Each endpoint that uses MWI will have a corresponding mwi_subscription.

This structure acts as the owner for the underlying SIP subscription. When the mwi_subscription is destroyed, the SIP subscription dies, too. The mwi_subscription's lifetime is governed by its underlying stasis subscriptions. When all stasis subscriptions are destroyed, the mwi_subscription is destroyed as well.

Definition at line 101 of file res_pjsip_mwi.c.


Field Documentation

char id[1]

Identifier for the subscription. The identifier is the same as the corresponding endpoint's stasis ID. Used as a hash key

Definition at line 115 of file res_pjsip_mwi.c.

Referenced by mwi_create_subscription(), mwi_stasis_subscription_alloc(), mwi_sub_cmp(), mwi_subscription_alloc(), mwi_subscription_destructor(), send_unsolicited_mwi_notify(), and send_unsolicited_mwi_notify_to_contact().

unsigned int is_solicited

Is the MWI solicited (i.e. Initiated with an external SUBSCRIBE) ?

Definition at line 110 of file res_pjsip_mwi.c.

Referenced by mwi_stasis_cb(), mwi_subscription_alloc(), and send_mwi_notify().

struct ast_sip_subscription* sip_sub [read]

The SIP subscription. Unsolicited MWI does not use this

Definition at line 108 of file res_pjsip_mwi.c.

Referenced by add_mwi_datastore(), mwi_stasis_cb(), mwi_subscription_alloc(), mwi_subscription_destructor(), and send_mwi_notify().

struct ao2_container* stasis_subs [read]


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

Generated on Thu Apr 16 06:36:55 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6