19#ifndef _ASTERISK_STASIS_APP_DEVICE_STATE_H
20#define _ASTERISK_STASIS_APP_DEVICE_STATE_H
ast_device_state
Device States.
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
Stasis Application API. See Stasis Application API for detailed documentation.
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.
enum stasis_device_state_result stasis_app_device_state_delete(const char *name)
Delete a device controlled by ARI.
struct ast_json * stasis_app_device_states_to_json(void)
Convert device states to json array.
stasis_device_state_result
@ STASIS_DEVICE_STATE_SUBSCRIBERS
@ STASIS_DEVICE_STATE_NOT_CONTROLLED
@ STASIS_DEVICE_STATE_MISSING
@ STASIS_DEVICE_STATE_UNKNOWN
struct ast_json * stasis_app_device_state_to_json(const char *name, enum ast_device_state state)
Convert device state to json.
Abstract JSON element (object, array, string, int, ...).