Asterisk-Java

org.asteriskjava.manager.event
Class StatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.ResponseEvent
              extended by org.asteriskjava.manager.event.StatusEvent
All Implemented Interfaces:
java.io.Serializable

public class StatusEvent
extends ResponseEvent

A StatusEvent is triggered for each active channel in response to a StatusAction.

Version:
$Id: StatusEvent.java 397 2006-05-26 12:13:32Z srt $
Author:
srt
See Also:
StatusAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StatusEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAccount()
          Returns the account code of this channel.
 java.lang.String getCallerId()
          Deprecated.  
 java.lang.String getCallerIdName()
          Returns the Caller*ID Name of this channel.
 java.lang.String getCallerIdNum()
          Returns the Caller*ID Number of this channel.
 java.lang.String getChannel()
          Returns the name of this channel.
 java.lang.String getContext()
           
 java.lang.String getExtension()
           
 java.lang.String getLink()
          Returns the name of the linked channel if this channel is bridged.
 java.lang.Integer getPriority()
           
 java.lang.Integer getSeconds()
          Returns the number of elapsed seconds.
 java.lang.String getState()
           
 java.lang.String getUniqueId()
          Returns the unique id of this channel.
 void setAccount(java.lang.String account)
          Sets the account code of this channel.
 void setCallerId(java.lang.String callerIdNum)
          Sets the Caller*ID Number of this channel.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID Name of this channel.
 void setCallerIdNum(java.lang.String callerIdNum)
          Sets the Caller*ID Number of this channel.
 void setChannel(java.lang.String channel)
          Sets the name of this channel.
 void setContext(java.lang.String context)
           
 void setExtension(java.lang.String extension)
           
 void setLink(java.lang.String link)
          Sets the name of the linked channel.
 void setPriority(java.lang.Integer priority)
           
 void setSeconds(java.lang.Integer seconds)
          Sets the number of elapsed seconds.
 void setState(java.lang.String state)
           
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of this channel.
 
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent
getActionId, getInternalActionId, setActionId, setInternalActionId
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getTimestamp, setDateReceived, setPrivilege, setTimestamp, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusEvent

public StatusEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getChannel

public java.lang.String getChannel()
Returns the name of this channel.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of this channel.


getCallerId

public java.lang.String getCallerId()
Deprecated. 

Returns the Caller*ID Number of this channel.

This property is deprecated as of Asterisk 1.4, use getCallerIdNum() instead.

Returns:
the Caller*ID Number of this channel or "<unknown>" if none is available.

setCallerId

public void setCallerId(java.lang.String callerIdNum)
Sets the Caller*ID Number of this channel.

This property is deprecated as of Asterisk 1.4.

Parameters:
callerId - the Caller*ID Number to set.

getCallerIdNum

public java.lang.String getCallerIdNum()
Returns the Caller*ID Number of this channel.

Returns:
the Caller*ID Number of this channel or "<unknown>" if none is available.
Since:
0.3

setCallerIdNum

public void setCallerIdNum(java.lang.String callerIdNum)
Sets the Caller*ID Number of this channel.

Parameters:
callerIdNum - the Caller*ID Number to set.
Since:
0.3

getCallerIdName

public java.lang.String getCallerIdName()
Returns the Caller*ID Name of this channel.

Returns:
the Caller*ID Name of this channel or "<unknown>" if none is available.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the Caller*ID Name of this channel.

Parameters:
callerIdName - the Caller*ID Name of this channel.

getAccount

public java.lang.String getAccount()
Returns the account code of this channel.


setAccount

public void setAccount(java.lang.String account)
Sets the account code of this channel.


getState

public java.lang.String getState()

setState

public void setState(java.lang.String state)

getContext

public java.lang.String getContext()

setContext

public void setContext(java.lang.String context)

getExtension

public java.lang.String getExtension()

setExtension

public void setExtension(java.lang.String extension)

getPriority

public java.lang.Integer getPriority()

setPriority

public void setPriority(java.lang.Integer priority)

getSeconds

public java.lang.Integer getSeconds()
Returns the number of elapsed seconds.


setSeconds

public void setSeconds(java.lang.Integer seconds)
Sets the number of elapsed seconds.


getLink

public java.lang.String getLink()
Returns the name of the linked channel if this channel is bridged.


setLink

public void setLink(java.lang.String link)
Sets the name of the linked channel.


getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of this channel.


setUniqueId

public void setUniqueId(java.lang.String uniqueId)
Sets the unique id of this channel.


Asterisk-Java

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