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

A subscription for extension state. More...

Collaboration diagram for exten_state_subscription:
Collaboration graph
[legend]

Data Fields

char context [AST_MAX_CONTEXT]
 
char exten [AST_MAX_EXTENSION]
 
int id
 
enum ast_extension_states last_exten_state
 
enum ast_presence_state last_presence_state
 
struct ast_taskprocessorserializer
 
struct ast_sip_subscriptionsip_sub
 
char * user_agent
 

Detailed Description

A subscription for extension state.

This structure acts as the owner for the underlying SIP subscription. It also keeps a pointer to an associated "provider" so when a state changes a notify data creator is quickly accessible.

Definition at line 69 of file res_pjsip_exten_state.c.

Field Documentation

◆ context

char context[AST_MAX_CONTEXT]

Context in which subscription looks for updates

Definition at line 77 of file res_pjsip_exten_state.c.

Referenced by exten_state_data_alloc(), new_subscribe(), publisher_start(), and subscription_established().

◆ exten

char exten[AST_MAX_EXTENSION]

Extension within the context to receive updates from

Definition at line 79 of file res_pjsip_exten_state.c.

Referenced by alloc_notify_task_data(), exten_state_data_alloc(), publisher_start(), subscription_established(), and to_ami().

◆ id

int id

Watcher id when registering for extension state changes

Definition at line 71 of file res_pjsip_exten_state.c.

Referenced by Model::load(), subscription_established(), and subscription_shutdown().

◆ last_exten_state

enum ast_extension_states last_exten_state

The last known extension state

Definition at line 83 of file res_pjsip_exten_state.c.

Referenced by alloc_notify_task_data(), exten_state_subscription_alloc(), and to_ami().

◆ last_presence_state

enum ast_presence_state last_presence_state

The last known presence state

Definition at line 85 of file res_pjsip_exten_state.c.

Referenced by alloc_notify_task_data(), and exten_state_subscription_alloc().

◆ serializer

The serializer to use for notifications

Definition at line 75 of file res_pjsip_exten_state.c.

Referenced by exten_state_subscription_alloc(), exten_state_subscription_destructor(), and state_changed().

◆ sip_sub

struct ast_sip_subscription* sip_sub

◆ user_agent

char* user_agent

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