net.sf.asterisk.manager.event
Class ParkedCallEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.ResponseEvent
              extended by net.sf.asterisk.manager.event.ParkedCallEvent
All Implemented Interfaces:
java.io.Serializable

public class ParkedCallEvent
extends ResponseEvent

A ParkedCallEvent is triggered when a channel is parked (in this case no action id is set) and in response to a ParkedCallsAction.
It is implemented in res/res_features.c

Version:
$Id: ParkedCallEvent.java,v 1.3 2005/08/27 04:04:29 srt Exp $
Author:
srt
See Also:
ParkedCallsAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParkedCallEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Returns the Caller*ID number of the parked channel.
 java.lang.String getCallerIdName()
          Returns the Caller*ID name of the parked channel.
 java.lang.String getChannel()
          Returns the name of the channel that is parked.
 java.lang.String getExten()
          Returns the extension the channel is parked at.
 java.lang.String getFrom()
          Returns the name of the channel that parked the call.
 java.lang.Integer getTimeout()
          Returns the number of seconds this call will be parked.
This corresponds to the parkingtime option in features.conf.
 java.lang.String getUniqueId()
          Returns the unique id of the parked channel.
 void setCallerId(java.lang.String callerId)
          Sets the Caller*ID number of the parked channel.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID name of the parked channel.
 void setChannel(java.lang.String channel)
          Sets the name of the channel that is parked.
 void setExten(java.lang.String exten)
          Sets the extension the channel is parked at.
 void setFrom(java.lang.String from)
          Sets the name of the channel that parked the call.
 void setTimeout(java.lang.Integer timeout)
          Sets the number of seconds this call will be parked.
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the parked channel.
 
Methods inherited from class net.sf.asterisk.manager.event.ResponseEvent
getActionId, getInternalActionId, setActionId, setInternalActionId
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, 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

ParkedCallEvent

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

getExten

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


setExten

public void setExten(java.lang.String exten)
Sets the extension the channel is parked at.


getChannel

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


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel that is parked.


getFrom

public java.lang.String getFrom()
Returns the name of the channel that parked the call.


setFrom

public void setFrom(java.lang.String from)
Sets the name of the channel that parked the call.


getTimeout

public java.lang.Integer getTimeout()
Returns the number of seconds this call will be parked.
This corresponds to the parkingtime option in features.conf.


setTimeout

public void setTimeout(java.lang.Integer timeout)
Sets the number of seconds this call will be parked.


getCallerId

public java.lang.String getCallerId()
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)
Sets the Caller*ID number of the parked channel.

Parameters:
callerId - the Caller*ID number of the parked channel.

getCallerIdName

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

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

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.
Since:
0.2

getUniqueId

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


setUniqueId

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



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