Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
mwi_subscription Struct Reference

A subscription for MWI. More...

Collaboration diagram for mwi_subscription:
Collaboration graph
[legend]

Data Fields

char * aors
 
char id [1]
 
unsigned int is_solicited
 
struct ast_sip_subscriptionsip_sub
 
struct ao2_containerstasis_subs
 
unsigned int terminate
 

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 116 of file res_pjsip_mwi.c.

Field Documentation

◆ aors

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().

◆ id

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().

◆ is_solicited

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().

◆ sip_sub

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().

◆ stasis_subs

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().

◆ terminate

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().


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