Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_sip_event_publisher_handler Struct Reference

Callbacks that event publisher handlers will define. More...

#include <res_pjsip_outbound_publish.h>

Data Fields

const char * event_name
 The name of the event this handler deals with.
 
struct {
   struct ast_sip_event_publisher_handler *   next
 
next
 
int(* start_publishing )(struct ast_sip_outbound_publish *configuration, struct ast_sip_outbound_publish_client *client)
 Called when a publisher should start publishing. More...
 
int(* stop_publishing )(struct ast_sip_outbound_publish_client *client)
 Called when a publisher should stop publishing. More...
 

Detailed Description

Callbacks that event publisher handlers will define.

Definition at line 41 of file res_pjsip_outbound_publish.h.

Field Documentation

int(* start_publishing) (struct ast_sip_outbound_publish *configuration, struct ast_sip_outbound_publish_client *client)

Called when a publisher should start publishing.

Parameters
configurationThe outbound publish configuration, event-specific configuration is accessible using extended sorcery fields
clientThe publish client that can be used to send PUBLISH messages.
Return values
0success
-1failure

Definition at line 54 of file res_pjsip_outbound_publish.h.

int(* stop_publishing) (struct ast_sip_outbound_publish_client *client)

Called when a publisher should stop publishing.

Parameters
clientThe publish client that was used to send PUBLISH messages.
Return values
0success
-1failure

Definition at line 64 of file res_pjsip_outbound_publish.h.


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