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.
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.
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.


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 202 of file stasis.h.


Field Documentation

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_id The unique ID of the channel
Return values:
non-zero if the channel should be left out of the message
zero if the channel should remain in the message

Referenced by ast_endpoint_snapshot_to_json(), and container_to_json_array().


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

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