Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
ast_sip_subscription_handler Struct Reference

#include <res_pjsip_pubsub.h>

Collaboration diagram for ast_sip_subscription_handler:
Collaboration graph
[legend]

Data Fields

const char * accept [AST_SIP_MAX_ACCEPT]
 
const char * body_type
 
const char * event_name
 
struct {
   struct ast_sip_subscription_handler *   next
 
next
 
struct ast_sip_notifiernotifier
 
struct ast_sip_subscribersubscriber
 
void(* subscription_shutdown )(struct ast_sip_subscription *subscription)
 Called when a subscription is to be destroyed. More...
 
void(* to_ami )(struct ast_sip_subscription *sub, struct ast_str **buf)
 Converts the subscriber to AMI. More...
 

Detailed Description

Definition at line 358 of file res_pjsip_pubsub.h.

Field Documentation

◆ accept

const char* accept[AST_SIP_MAX_ACCEPT]

The types of body this subscriber accepts.

Definition at line 364 of file res_pjsip_pubsub.h.

Referenced by ast_sip_register_subscription_handler(), and exceptional_accept().

◆ body_type

const char* body_type

Type of data used to generate NOTIFY bodies

Definition at line 362 of file res_pjsip_pubsub.h.

◆ event_name

const char* event_name

◆ next [1/2]

◆  [2/2]

struct { ... } next

◆ notifier

struct ast_sip_notifier* notifier

Notifier callbacks for this handler

Definition at line 383 of file res_pjsip_pubsub.h.

Referenced by pubsub_on_rx_refresh(), and send_notify().

◆ subscriber

struct ast_sip_subscriber* subscriber

Subscriber callbacks for this handler

Definition at line 381 of file res_pjsip_pubsub.h.

◆ subscription_shutdown

void(* subscription_shutdown) (struct ast_sip_subscription *subscription)

Called when a subscription is to be destroyed.

The handler is not expected to send any sort of requests or responses during this callback. The handler MUST, however, begin the destruction process for the subscription during this callback.

Definition at line 372 of file res_pjsip_pubsub.h.

◆ to_ami

void(* to_ami) (struct ast_sip_subscription *sub, struct ast_str **buf)

Converts the subscriber to AMI.

Parameters
subThe subscription
bufThe string to write AMI data

Definition at line 379 of file res_pjsip_pubsub.h.

Referenced by sip_subscription_to_ami().


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