net.sf.asterisk.manager.event
Class DialEvent

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

public class DialEvent
extends ManagerEvent

A dial event is triggered whenever a phone attempts to dial someone.
This event is implemented in apps/app_dial.c.
Available since Asterisk 1.2.

Since:
0.2
Version:
$Id: DialEvent.java,v 1.4 2005/07/26 11:35:58 srt Exp $
Author:
Asteria Solutions Group, Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DialEvent(java.lang.Object source)
          Creates a new DialEvent.
 
Method Summary
 java.lang.String getCallerId()
          Returns the Caller*ID.
 java.lang.String getCallerIdName()
          Returns the Caller*ID Name.
 java.lang.String getDestination()
          Returns the name of the destination channel.
 java.lang.String getDestUniqueId()
          Returns the unique ID of the distination channel.
 java.lang.String getSrc()
          Returns the name of the source channel.
 java.lang.String getSrcUniqueId()
          Returns the unique ID of the source channel.
 void setCallerId(java.lang.String callerId)
          Sets the caller*ID.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*Id Name.
 void setDestination(java.lang.String destination)
          Sets the name of the destination channel.
 void setDestUniqueId(java.lang.String destUniqueId)
          Sets the unique ID of the distination channel.
 void setSrc(java.lang.String src)
          Sets the name of the source channel.
 void setSrcUniqueId(java.lang.String srcUniqueId)
          Sets the unique ID of the source channel.
 
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

DialEvent

public DialEvent(java.lang.Object source)
Creates a new DialEvent.

Parameters:
source -
Method Detail

getSrc

public java.lang.String getSrc()
Returns the name of the source channel.

Returns:
the name of the source channel.

setSrc

public void setSrc(java.lang.String src)
Sets the name of the source channel.

Parameters:
src - the name of the source channel.

getDestination

public java.lang.String getDestination()
Returns the name of the destination channel.

Returns:
the name of the destination channel.

setDestination

public void setDestination(java.lang.String destination)
Sets the name of the destination channel.

Parameters:
destination - the name of the destination channel.

getCallerId

public java.lang.String getCallerId()
Returns the Caller*ID.

Returns:
the Caller*ID or "" if none has been set.

setCallerId

public void setCallerId(java.lang.String callerId)
Sets the caller*ID.

Parameters:
callerId - the caller*ID.

getCallerIdName

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

Returns:
the Caller*ID Name or "" if none has been set.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the Caller*Id Name.

Parameters:
callerIdName - the Caller*Id Name to set.

getSrcUniqueId

public java.lang.String getSrcUniqueId()
Returns the unique ID of the source channel.

Returns:
the unique ID of the source channel.

setSrcUniqueId

public void setSrcUniqueId(java.lang.String srcUniqueId)
Sets the unique ID of the source channel.

Parameters:
srcUniqueId - the unique ID of the source channel.

getDestUniqueId

public java.lang.String getDestUniqueId()
Returns the unique ID of the distination channel.

Returns:
the unique ID of the distination channel.

setDestUniqueId

public void setDestUniqueId(java.lang.String destUniqueId)
Sets the unique ID of the distination channel.

Parameters:
destUniqueId - the unique ID of the distination channel.


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