Asterisk - The Open Source Telephony Project GIT-master-d856a3e
Data Fields
ast_sip_event_publisher_handler Struct Reference

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

#include <res_pjsip_outbound_publish.h>

Collaboration diagram for ast_sip_event_publisher_handler:
Collaboration graph
[legend]

Data Fields

const char * event_name
 The name of the event this handler deals with. More...
 
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

◆ event_name

const char* event_name

The name of the event this handler deals with.

Definition at line 43 of file res_pjsip_outbound_publish.h.

Referenced by find_publisher_handler_for_event_name(), load_module(), and sip_outbound_publish_synchronize().

◆ next [1/2]

◆  [2/2]

struct { ... } next

◆ start_publishing

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.

◆ stop_publishing

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: