Mon Mar 20 08:20:33 2006

Asterisk developer's documentation


Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Channel states

Bits 0-15 of state are reserved for the state (up/down) of the line. More...

Defines

#define AST_STATE_BUSY   7
#define AST_STATE_DIALING   3
#define AST_STATE_DIALING_OFFHOOK   8
#define AST_STATE_DOWN   0
#define AST_STATE_MUTE   (1 << 16)
#define AST_STATE_OFFHOOK   2
#define AST_STATE_PRERING   9
#define AST_STATE_RESERVED   1
#define AST_STATE_RING   4
#define AST_STATE_RINGING   5
#define AST_STATE_UP   6

Detailed Description

Bits 0-15 of state are reserved for the state (up/down) of the line.


Define Documentation

#define AST_STATE_BUSY   7
 

Line is busy

Definition at line 525 of file channel.h.

Referenced by ast_state2str(), misdn_indication(), pbx_builtin_busy(), and pbx_builtin_congestion().

#define AST_STATE_DIALING   3
 

Digits (or equivalent) have been dialed

Definition at line 517 of file channel.h.

Referenced by ast_state2str(), misdn_call(), modem_call(), zt_call(), and zt_handle_event().

#define AST_STATE_DIALING_OFFHOOK   8
 

Digits (or equivalent) have been dialed while offhook

Definition at line 527 of file channel.h.

Referenced by zt_handle_event().

#define AST_STATE_DOWN   0
 

Channel is down and available

Definition at line 511 of file channel.h.

Referenced by agent_request(), alsa_request(), ast_setstate(), ast_state2str(), cb_events(), check_availability(), features_request(), handle_hd_hf(), handle_message(), handle_request(), handle_request_invite(), iax2_request(), local_request(), mgcp_request(), misdn_call(), modem_hangup(), modem_request(), nbs_hangup(), nbs_request(), oh323_request(), oss_request(), phone_hangup(), phone_request(), release_chan(), sip_request_call(), skinny_request(), vpb_call(), vpb_hangup(), vpb_request(), and zt_handle_event().

#define AST_STATE_MUTE   (1 << 16)
 

Do not transmit voice data

Definition at line 533 of file channel.h.

#define AST_STATE_OFFHOOK   2
 

Channel is off hook

Definition at line 515 of file channel.h.

Referenced by ast_state2str().

#define AST_STATE_PRERING   9
 

Channel has detected an incoming call and is waiting for ring

Definition at line 529 of file channel.h.

Referenced by handle_init_event(), and ss_thread().

#define AST_STATE_RESERVED   1
 

Channel is down, but reserved

Definition at line 513 of file channel.h.

Referenced by ast_state2str(), handle_init_event(), misdn_request(), zt_handle_event(), and zt_request().

#define AST_STATE_RING   4
 

Line is ringing

Definition at line 519 of file channel.h.

Referenced by ast_answer(), ast_state2str(), cb_events(), handle_hd_hf(), handle_init_event(), handle_request_invite(), local_new(), mgcp_ss(), modem_mini_packet(), monitor_handle_notowned(), oh323_indicate(), phone_check_exception(), skinny_ss(), socket_read(), ss_thread(), and zt_handle_event().

#define AST_STATE_RINGING   5
 

Remote end is ringing

Definition at line 521 of file channel.h.

Referenced by answer_call(), ast_answer(), ast_state2str(), cb_events(), chan_ringing(), console_dial(), handle_request_invite(), handle_response_invite(), iax2_call(), mgcp_call(), misdn_indication(), nbs_call(), phone_call(), skinny_call(), vpb_call(), zt_call(), zt_handle_event(), zt_indicate(), and zt_read().

#define AST_STATE_UP   6
 

Line is up

Definition at line 523 of file channel.h.

Referenced by __zt_exception(), alsa_answer(), aopen_handle_escape(), ast_answer(), ast_read(), ast_state2str(), bestdata_handle_escape(), builtin_atxfer(), check_availability(), connection_made(), handle_message(), handle_request_invite(), i4l_handle_escape(), mgcp_answer(), modem_answer(), modem_call(), monitor_handle_notowned(), oh323_answer(), oss_answer(), phone_answer(), phone_exception(), phone_write(), sip_answer(), skinny_answer(), vpb_answer(), zt_answer(), zt_call(), and zt_handle_event().


Generated on Mon Mar 20 08:20:33 2006 for Asterisk - the Open Source PBX by  doxygen 1.3.9.1