Asterisk-Java

org.asteriskjava.manager.event
Class ParkedCallEvent

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

public class ParkedCallEvent
extends AbstractParkedCallEvent

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 1114 2008-08-16 15:10:22Z srt $
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 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.
 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 setUnqiueId(java.lang.String unqiueId)
          Sets the unique id of the parked channel as a workaround for a typo in asterisk manager event.
 
Methods inherited from class org.asteriskjava.manager.event.AbstractParkedCallEvent
getCallerId, getCallerIdName, getCallerIdNum, getChannel, getExten, getParkingLot, getUniqueId, setCallerId, setCallerIdName, setCallerIdNum, setChannel, setExten, setParkingLot, setUniqueId
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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

ParkedCallEvent

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

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.


setUnqiueId

public void setUnqiueId(java.lang.String unqiueId)
Sets the unique id of the parked channel as a workaround for a typo in asterisk manager event.


Asterisk-Java

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