Asterisk-Java

org.asteriskjava.manager.event
Class AbstractParkedCallEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AbstractParkedCallEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ParkedCallEvent, ParkedCallGiveUpEvent, ParkedCallTimeOutEvent, UnparkedCallEvent

public abstract class AbstractParkedCallEvent
extends ManagerEvent

Abstract base class for several call parking related events.

Since:
0.2
Version:
$Id: AbstractParkedCallEvent.java 1151 2008-08-21 20:20:21Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected AbstractParkedCallEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Deprecated. since 1.0.0. Use getCallerIdNum() instead.
 java.lang.String getCallerIdName()
          Returns the Caller*ID name of the parked channel.
 java.lang.String getCallerIdNum()
          Returns the Caller*ID number of the parked channel.
 java.lang.String getChannel()
          Returns the name of the channel that is or was parked.
 java.lang.String getExten()
          Returns the extension the channel is or was parked at.
 java.lang.String getParkingLot()
          Returns the parking lot.
 java.lang.String getUniqueId()
          Returns the unique id of the parked channel.
 void setCallerId(java.lang.String callerId)
           
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID name of the parked channel.
 void setCallerIdNum(java.lang.String callerIdNum)
           
 void setChannel(java.lang.String channel)
           
 void setExten(java.lang.String exten)
           
 void setParkingLot(java.lang.String parkingLot)
          Sets the parking lot.
 void setUniqueId(java.lang.String uniqueId)
           
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, 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

AbstractParkedCallEvent

protected AbstractParkedCallEvent(java.lang.Object source)
Method Detail

getExten

public java.lang.String getExten()
Returns the extension the channel is or was parked at.

Returns:
the extension the channel is or was parked at.

setExten

public void setExten(java.lang.String exten)

getChannel

public java.lang.String getChannel()
Returns the name of the channel that is or was parked.

Returns:
the name of the channel that is or was parked.

setChannel

public void setChannel(java.lang.String channel)

getParkingLot

public java.lang.String getParkingLot()
Returns the parking lot.

Available since Asterisk 1.6.

Returns:
the parking lot.
Since:
1.0.0

setParkingLot

public void setParkingLot(java.lang.String parkingLot)
Sets the parking lot.

Parameters:
parkingLot - the parking lot.

getCallerIdNum

public java.lang.String getCallerIdNum()
Returns the Caller*ID number of the parked channel.

Returns:
the Caller*ID number of the parked channel.
Since:
1.0.0

setCallerIdNum

public void setCallerIdNum(java.lang.String callerIdNum)

getCallerId

public java.lang.String getCallerId()
Deprecated. since 1.0.0. Use getCallerIdNum() instead.

Returns the Caller*ID number of the parked channel.

Returns:
the Caller*ID number of the parked channel.

setCallerId

public void setCallerId(java.lang.String callerId)

getCallerIdName

public java.lang.String getCallerIdName()
Returns the Caller*ID name of the parked channel.

Returns:
the Caller*ID name of the parked channel.

setCallerIdName

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

Parameters:
callerIdName - the Caller*ID name of the parked channel.

getUniqueId

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

Note: This property is not set properly by all versions of Asterisk, see http://bugs.digium.com/view.php?id=13323 and http://bugs.digium.com/view.php?id=13358 for more information. Use getChannel() instead.

Returns:
the unique id of the parked channel.

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

Asterisk-Java

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