Asterisk - The Open Source Telephony Project
21.4.1
|
Channel states. More...
#include "asterisk.h"
Go to the source code of this file.
Enumerations | |
enum | ast_channel_state { AST_STATE_DOWN, AST_STATE_RESERVED, AST_STATE_OFFHOOK, AST_STATE_DIALING, AST_STATE_RING, AST_STATE_RINGING, AST_STATE_UP, AST_STATE_BUSY, AST_STATE_DIALING_OFFHOOK, AST_STATE_PRERING, AST_STATE_MUTE = (1 << 16) } |
ast_channel states More... | |
Functions | |
int | ast_setstate (struct ast_channel *chan, enum ast_channel_state) |
Change the state of a channel. More... | |
Channel states.
Definition in file channelstate.h.
enum ast_channel_state |
ast_channel states
Definition at line 35 of file channelstate.h.
int ast_setstate | ( | struct ast_channel * | chan, |
enum | ast_channel_state | ||
) |
Change the state of a channel.
Definition at line 7386 of file channel.c.
References AST_CHANNEL_NAME, ast_channel_publish_snapshot(), ast_copy_string(), AST_DEVICE_UNKNOWN, AST_DEVSTATE_CACHABLE, ast_devstate_changed_literal(), AST_DEVSTATE_NOT_CACHABLE, and AST_FLAG_DISABLE_DEVSTATE_CACHE.
Referenced by __analog_handle_event(), __ast_read(), ast_raw_answer_with_stream_topology(), chan_pjsip_answer(), chan_pjsip_incoming_response(), dahdi_answer(), handle_response_ciev(), indicate_congestion(), jingle_action_session_info(), jingle_action_session_initiate(), jingle_call(), sig_pri_call(), unistim_new(), and unreal_queue_frame().