Asterisk - The Open Source Telephony Project
18.5.0
|
A subscription for MWI. More...
Data Fields | |
char * | aors |
char | id [1] |
unsigned int | is_solicited |
struct ast_sip_subscription * | sip_sub |
struct ao2_container * | stasis_subs |
unsigned int | terminate |
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 116 of file res_pjsip_mwi.c.
char* aors |
AORs we should react to for unsolicited MWI NOTIFY
Definition at line 125 of file res_pjsip_mwi.c.
Referenced by mwi_subscription_alloc(), mwi_subscription_destructor(), and send_contact_notify().
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 134 of file res_pjsip_mwi.c.
Referenced by Model::load(), mwi_create_subscription(), mwi_sub_cmp(), mwi_subscription_alloc(), mwi_subscription_destructor(), mwi_subscription_shutdown(), 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 127 of file res_pjsip_mwi.c.
Referenced by mwi_subscription_alloc(), mwi_subscription_destructor(), send_mwi_notify(), and send_notify().
struct ast_sip_subscription* sip_sub |
The SIP subscription. Unsolicited MWI does not use this
Definition at line 123 of file res_pjsip_mwi.c.
Referenced by add_mwi_datastore(), mwi_subscription_alloc(), mwi_subscription_destructor(), send_mwi_notify(), and send_notify().
struct ao2_container* stasis_subs |
Container of mwi_stasis_subscription structures. A single MWI subscription may be for multiple mailboxes, thus requiring multiple stasis subscriptions
Definition at line 121 of file res_pjsip_mwi.c.
Referenced by allow_and_or_replace_unsolicited(), create_unsolicited_mwi_subscriptions(), mwi_get_notify_data(), mwi_on_aor(), mwi_subscription_alloc(), mwi_subscription_destructor(), mwi_subscription_established(), mwi_subscription_shutdown(), mwi_to_ami(), send_mwi_notify(), and unsubscribe().
unsigned int terminate |
True if this subscription is to be terminated
Definition at line 129 of file res_pjsip_mwi.c.
Referenced by is_unsolicited_allowed(), and send_mwi_notify().