Asterisk-Java

org.asteriskjava.util
Class AstState

java.lang.Object
  extended by org.asteriskjava.util.AstState

public class AstState
extends java.lang.Object

Utility methods related to channel state handling in Asterisk's channel.c.

Since:
1.0.0

Field Summary
static int AST_STATE_BUSY
          Line is busy.
static int AST_STATE_DIALING
          Digits (or equivalent) have been dialed.
static int AST_STATE_DIALING_OFFHOOK
          Digits (or equivalent) have been dialed while offhook.
static int AST_STATE_DOWN
          Channel is down and available.
static int AST_STATE_OFFHOOK
          Channel is off hook.
static int AST_STATE_PRERING
          Channel has detected an incoming call and is waiting for ring.
static int AST_STATE_RING
          Line is ringing.
static int AST_STATE_RINGING
          Remote end is ringing.
static int AST_STATE_RSRVD
          Channel is down, but reserved.
static int AST_STATE_UP
          Line is up.
 
Method Summary
static java.lang.Integer str2state(java.lang.String str)
          This is the inverse to ast_state2str in channel.c.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AST_STATE_DOWN

public static final int AST_STATE_DOWN
Channel is down and available.

See Also:
Constant Field Values

AST_STATE_RSRVD

public static final int AST_STATE_RSRVD
Channel is down, but reserved.

See Also:
Constant Field Values

AST_STATE_OFFHOOK

public static final int AST_STATE_OFFHOOK
Channel is off hook.

See Also:
Constant Field Values

AST_STATE_DIALING

public static final int AST_STATE_DIALING
Digits (or equivalent) have been dialed.

See Also:
Constant Field Values

AST_STATE_RING

public static final int AST_STATE_RING
Line is ringing.

See Also:
Constant Field Values

AST_STATE_RINGING

public static final int AST_STATE_RINGING
Remote end is ringing.

See Also:
Constant Field Values

AST_STATE_UP

public static final int AST_STATE_UP
Line is up.

See Also:
Constant Field Values

AST_STATE_BUSY

public static final int AST_STATE_BUSY
Line is busy.

See Also:
Constant Field Values

AST_STATE_DIALING_OFFHOOK

public static final int AST_STATE_DIALING_OFFHOOK
Digits (or equivalent) have been dialed while offhook.

See Also:
Constant Field Values

AST_STATE_PRERING

public static final int AST_STATE_PRERING
Channel has detected an incoming call and is waiting for ring.

See Also:
Constant Field Values
Method Detail

str2state

public static java.lang.Integer str2state(java.lang.String str)
This is the inverse to ast_state2str in channel.c.

Parameters:
str - state as a descriptive text.
Returns:
numeric state.

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.