Asterisk - The Open Source Telephony Project
18.5.0
|
#include <res_pjsip_pubsub.h>
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_notifier * | notifier |
struct ast_sip_subscriber * | subscriber |
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... | |
Definition at line 314 of file res_pjsip_pubsub.h.
const char* accept[AST_SIP_MAX_ACCEPT] |
The types of body this subscriber accepts.
Definition at line 320 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 318 of file res_pjsip_pubsub.h.
Referenced by generate_initial_notify(), and subscription_get_generator_from_rdata().
const char* event_name |
The name of the event this subscriber deals with
Definition at line 316 of file res_pjsip_pubsub.h.
Referenced by ast_sip_create_subscription(), ast_sip_register_subscription_handler(), build_resource_tree(), cli_list_subscriptions_detail(), cli_show_subscription_common(), cli_show_subscriptions_detail(), find_sub_handler_for_event_name(), initial_notify_task(), load_module(), and subscription_persistence_remove().
struct ast_sip_subscription_handler* next |
Definition at line 340 of file res_pjsip_pubsub.h.
Referenced by ast_sip_unregister_subscription_handler(), and find_sub_handler_for_event_name().
struct { ... } next |
struct ast_sip_notifier* notifier |
Notifier callbacks for this handler
Definition at line 339 of file res_pjsip_pubsub.h.
Referenced by build_node_children(), build_resource_tree(), generate_initial_notify(), sub_persistence_recreate(), and subscription_get_generator_from_rdata().
struct ast_sip_subscriber* subscriber |
Subscriber callbacks for this handler
Definition at line 337 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.
Definition at line 328 of file res_pjsip_pubsub.h.
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 |
Definition at line 335 of file res_pjsip_pubsub.h.
Referenced by sip_subscription_to_ami().