Asterisk-Java

org.asteriskjava.manager.event
Class OriginateResponseEvent

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

public class OriginateResponseEvent
extends ResponseEvent

Response to an OriginateAction.

Version:
$Id: OriginateResponseEvent.java 1108 2008-08-16 11:22:50Z srt $
Author:
srt
See Also:
OriginateAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OriginateResponseEvent(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 getResponse()
          Returns the result of the corresponding Originate action.
 java.lang.String getUniqueId()
          Returns the unique id of the originated channel.
 boolean isSuccess()
           
 void setCallerId(java.lang.String callerId)
           
 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 setResponse(java.lang.String response)
          Sets the result of the corresponding Originate action.
 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
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

OriginateResponseEvent

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

getResponse

public java.lang.String getResponse()
Returns the result of the corresponding Originate action.

Returns:
"Success" or "Failure"

setResponse

public void setResponse(java.lang.String response)
Sets the result of the corresponding Originate action.

Parameters:
response - "Success" or "Failure"

isSuccess

public boolean isSuccess()

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 null if none was set.
Since:
0.3

setCallerIdNum

public void setCallerIdNum(java.lang.String callerId)

setCallerId

public void setCallerId(java.lang.String callerId)

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 null if none was set.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)

Asterisk-Java

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