44 "Internal Server Error",
"Error building response");
60 "Internal Server Error",
"Error building response");
75 "Conflict",
"Uncontrolled device specified");
79 "Not Found",
"Device name is missing");
98 "Conflict",
"Uncontrolled device specified");
102 "Not Found",
"Device name is missing");
106 "Internal Server Error",
107 "Cannot delete device with subscribers");
Stasis Application Device State API. See StasisApplication API" for detailed documentation.
ast_device_state
Device States.
Asterisk main include file. File version handling, generic pbx functions.
enum stasis_device_state_result stasis_app_device_state_delete(const char *name)
Delete a device controlled by ARI.
void ast_ari_device_states_update(struct ast_variable *headers, struct ast_ari_device_states_update_args *args, struct ast_ari_response *response)
Change the state of a device controlled by ARI. (Note - implicitly creates the device state)...
Structure for variables, used for configurations and for channel variables.
const char * device_state
void ast_ari_response_ok(struct ast_ari_response *response, struct ast_json *message)
Fill in an OK (200) ast_ari_response.
Generated file - declares stubs to be implemented in res/ari/resource_deviceStates.c.
enum stasis_device_state_result stasis_app_device_state_update(const char *name, const char *value)
Changes the state of a device controlled by ARI.
void ast_ari_response_error(struct ast_ari_response *response, int response_code, const char *response_text, const char *message_fmt,...)
Fill in an error ast_ari_response.
void ast_ari_device_states_delete(struct ast_variable *headers, struct ast_ari_device_states_delete_args *args, struct ast_ari_response *response)
Destroy a device-state controlled by ARI.
void ast_ari_response_no_content(struct ast_ari_response *response)
Fill in a No Content (204) ast_ari_response.
struct ast_json * stasis_app_device_states_to_json(void)
Convert device states to json array.
void ast_ari_device_states_get(struct ast_variable *headers, struct ast_ari_device_states_get_args *args, struct ast_ari_response *response)
Retrieve the current state of a device.
Abstract JSON element (object, array, string, int, ...).
void ast_ari_device_states_list(struct ast_variable *headers, struct ast_ari_device_states_list_args *args, struct ast_ari_response *response)
List all ARI controlled device states.
struct ast_json * stasis_app_device_state_to_json(const char *name, enum ast_device_state state)
Convert device state to json.