Asterisk - The Open Source Telephony Project GIT-master-f36a736
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.

◆ 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 Section::__cmp__(), Section::__eq__(), Section::__ge__(), Section::__gt__(), Section::__le__(), Section::__lt__(), Model::load(), and mwi_sub_cmp().

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

◆ 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 mwi_create_subscription(), mwi_subscribe_all(), mwi_subscribe_single(), mwi_subscription_alloc(), and mwi_subscription_established().

◆ 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.

◆ terminate

unsigned int terminate

True if this subscription is to be terminated

Definition at line 129 of file res_pjsip_mwi.c.


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