Asterisk-Java

org.asteriskjava.manager.event
Class AbstractOriginateEvent

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.AbstractOriginateEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OriginateFailureEvent, OriginateSuccessEvent

public abstract class AbstractOriginateEvent
extends ResponseEvent

Abstract base class for events triggered in response to an OriginateAction.

Version:
$Id: AbstractOriginateEvent.java 459 2006-07-06 23:24:57Z srt $
Author:
srt
See Also:
OriginateAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected AbstractOriginateEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerIdName()
          Returns the Caller*ID Name of the originated channel.
 java.lang.String getCallerIdNum()
          Returns the Caller*ID Number of the originated channel.
 java.lang.String getChannel()
          Returns the name of the channel to connect to the outgoing call.
 java.lang.String getContext()
          Returns the name of the context of the extension to connect to.
 java.lang.String getExten()
          Returns the the extension to connect to.
 java.lang.Integer getReason()
           
 java.lang.String getUniqueId()
          Returns the unique id of the originated channel.
 void setCallerId(java.lang.String callerIdNum)
           
 void setCallerIdName(java.lang.String callerIdName)
           
 void setCallerIdNum(java.lang.String callerId)
           
 void setChannel(java.lang.String channel)
          Sets the name of the channel to connect to the outgoing call.
 void setContext(java.lang.String context)
          Sets the name of the context of the extension to connect to.
 void setExten(java.lang.String exten)
          Sets the the extension to connect to.
 void setReason(java.lang.Integer reason)
           
 void setUniqueId(java.lang.String uniqueId)
           
 
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

AbstractOriginateEvent

protected AbstractOriginateEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getChannel

public java.lang.String getChannel()
Returns the name of the channel to connect to the outgoing call.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel to connect to the outgoing call.


getContext

public java.lang.String getContext()
Returns the name of the context of the extension to connect to.


setContext

public void setContext(java.lang.String context)
Sets the name of the context of the extension to connect to.


getExten

public java.lang.String getExten()
Returns the the extension to connect to.


setExten

public void setExten(java.lang.String exten)
Sets the the extension to connect to.


getReason

public java.lang.Integer getReason()

setReason

public void setReason(java.lang.Integer reason)

getUniqueId

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

Returns:
the unique id of the originated channel or "<null>" if none is available.

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

getCallerIdNum

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

Available sind Asterisk 1.4.

Returns:
the Caller*ID Number of the originated channel or "<unknown>" if none was set.
Since:
0.3

setCallerIdNum

public void setCallerIdNum(java.lang.String callerId)

setCallerId

public void setCallerId(java.lang.String callerIdNum)

getCallerIdName

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

Available sind Asterisk 1.4.

Returns:
the Caller*ID Name of the originated channel or "<unknown>" if none was set.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)

Asterisk-Java

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