Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
stasis_message_sanitizer Struct Reference

Structure containing callbacks for Stasis message sanitization. More...

#include <stasis.h>

Data Fields

int(* channel )(const struct ast_channel *chan)
 Callback which determines whether a channel should be sanitized from a message based on the channel. More...
 
int(* channel_id )(const char *channel_id)
 Callback which determines whether a channel should be sanitized from a message based on the channel's unique ID. More...
 
int(* channel_snapshot )(const struct ast_channel_snapshot *snapshot)
 Callback which determines whether a channel should be sanitized from a message based on the channel's snapshot. More...
 

Detailed Description

Structure containing callbacks for Stasis message sanitization.

Note
If either callback is implemented, both should be implemented since not all callers may have access to the full snapshot.

Definition at line 200 of file stasis.h.

Field Documentation

◆ channel

int(* channel) (const struct ast_channel *chan)

Callback which determines whether a channel should be sanitized from a message based on the channel.

Parameters
chanThe channel to be checked
Return values
non-zeroif the channel should be left out of the message
zeroif the channel should remain in the message

Definition at line 232 of file stasis.h.

Referenced by app_send_end_msg().

◆ channel_id

int(* channel_id) (const char *channel_id)

Callback which determines whether a channel should be sanitized from a message based on the channel's unique ID.

Parameters
channel_idThe unique ID of the channel
Return values
non-zeroif the channel should be left out of the message
zeroif the channel should remain in the message

Definition at line 210 of file stasis.h.

Referenced by ast_endpoint_snapshot_to_json(), and container_to_json_array().

◆ channel_snapshot

int(* channel_snapshot) (const struct ast_channel_snapshot *snapshot)

Callback which determines whether a channel should be sanitized from a message based on the channel's snapshot.

Parameters
snapshotA snapshot generated from the channel
Return values
non-zeroif the channel should be left out of the message
zeroif the channel should remain in the message

Definition at line 221 of file stasis.h.

Referenced by ast_ari_channels_list(), ast_channel_snapshot_to_json(), stasis_end_to_json(), and stasis_start_to_json().


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