19 #ifndef _ASTERISK_STASIS_APP_RECORDING_H 20 #define _ASTERISK_STASIS_APP_RECORDING_H 172 #define STASIS_APP_RECORDING_TERMINATE_INVALID 0 173 #define STASIS_APP_RECORDING_TERMINATE_NONE -1 174 #define STASIS_APP_RECORDING_TERMINATE_ANY -2
stasis_app_recording_media_operation
struct stasis_app_control * control
const char * stasis_app_stored_recording_get_file(struct stasis_app_stored_recording *recording)
Returns the filename for this recording, for use with streamfile.
struct ast_json * stasis_app_stored_recording_to_json(struct stasis_app_stored_recording *recording)
Convert stored recording info to JSON.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
char stasis_app_recording_termination_parse(const char *str)
Parse a string into the recording termination enum.
const ast_string_field target
struct ao2_container * stasis_app_stored_recording_find_all(void)
Find all stored recordings on disk.
struct ast_json * stasis_app_recording_to_json(const struct stasis_app_recording *recording)
Construct a JSON model of a recording.
const char * stasis_app_recording_get_name(struct stasis_app_recording *recording)
Gets the unique name of a recording object.
const char * stasis_app_stored_recording_get_filename(struct stasis_app_stored_recording *recording)
Returns the full filename, with extension, for this recording.
#define AST_STRING_FIELD(name)
Declare a string field.
const ast_string_field name
const char * stasis_app_stored_recording_get_extension(struct stasis_app_stored_recording *recording)
Returns the extension for this recording.
enum ast_record_if_exists stasis_app_recording_if_exists_parse(const char *str)
Parse a string into the if_exists enum.
stasis_app_recording_oper_results
Possible results from a recording operation.
struct stasis_message_type * stasis_app_recording_snapshot_type(void)
Message type for recording updates. The data is an ast_channel_blob.
struct stasis_app_recording_options * stasis_app_recording_options_create(const char *name, const char *format)
Allocate a recording options object.
int stasis_app_stored_recording_delete(struct stasis_app_stored_recording *recording)
Delete a recording from disk.
stasis_app_recording_state
enum ast_record_if_exists if_exists
int stasis_app_stored_recording_copy(struct stasis_app_stored_recording *src_recording, const char *dst, struct stasis_app_stored_recording **dst_recording)
Copy a recording.
struct stasis_app_stored_recording * stasis_app_stored_recording_find_by_name(const char *name)
Creates a stored recording object, with the given name.
Abstract JSON element (object, array, string, int, ...).
const ast_string_field format
struct stasis_app_recording * stasis_app_recording_find_by_name(const char *name)
Finds the recording object with the given name.
Stasis Application API. See Stasis Application API for detailed documentation.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
enum stasis_app_recording_oper_results stasis_app_recording_operation(struct stasis_app_recording *recording, enum stasis_app_recording_media_operation operation)
Controls the media for a given recording operation.
enum stasis_app_recording_state stasis_app_recording_get_state(struct stasis_app_recording *recording)
Gets the current state of a recording operation.
struct stasis_app_recording * stasis_app_control_record(struct stasis_app_control *control, struct stasis_app_recording_options *options)
Record media from a channel.