ast_sip_subscription_handler Struct Reference

#include <res_pjsip_pubsub.h>

Collaboration diagram for ast_sip_subscription_handler:

Collaboration graph

Data Fields

const char * accept [AST_SIP_MAX_ACCEPT]
const char * body_type
const char * event_name
struct {
ast_sip_subscription_handler *   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.
void(* to_ami )(struct ast_sip_subscription *sub, struct ast_str **buf)
 Converts the subscriber to AMI.

Detailed Description

Definition at line 300 of file res_pjsip_pubsub.h.

Field Documentation

const char* accept[AST_SIP_MAX_ACCEPT]

The types of body this subscriber accepts.

Definition at line 306 of file res_pjsip_pubsub.h.

Referenced by ast_sip_register_subscription_handler().

const char* body_type

Type of data used to generate NOTIFY bodies

Definition at line 304 of file res_pjsip_pubsub.h.

Referenced by generate_initial_notify(), and subscription_get_generator_from_rdata().

const char* event_name

struct { ... } next

Definition at line 326 of file res_pjsip_pubsub.h.

struct ast_sip_notifier* notifier [read]

Subscriber callbacks for this handler

Definition at line 323 of file res_pjsip_pubsub.h.

Referenced by pubsub_on_rx_notify().

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.

Referenced by shutdown_subscriptions().

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

Converts the subscriber to AMI.

sub The subscription
buf The string to write AMI data

Referenced by sip_subscription_to_ami().

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

Generated on Thu Apr 16 06:35:38 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6