net.sf.asterisk.manager.event
Class NewCallerIdEvent

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

public class NewCallerIdEvent
extends ManagerEvent

A NewCallerIdEvent is triggered when the caller id of a channel changes.
It is implemented in channel.c

Version:
$Id: NewCallerIdEvent.java,v 1.6 2005/08/27 02:59:24 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NewCallerIdEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Returns the new caller id.
 java.lang.String getCallerIdName()
          Returns the new Caller*ID Name if set or "≶Unknown>" if none has been set.
 java.lang.String getChannel()
          Returns the name of the channel.
 java.lang.Integer getCidCallingPres()
          Returns the CallerId presentation/screening.
 java.lang.String getCidCallingPresTxt()
          Returns the textual respresentation of the CallerId presentation/screening.
 java.lang.String getUniqueId()
          Returns the unique id of the channel.
 void setCallerId(java.lang.String callerId)
          Sets the new Caller*ID.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the new Caller*ID Name if set or "≶Unknown>" if none has been set.
 void setChannel(java.lang.String channel)
          Sets the name of the channel.
 void setCidCallingPres(java.lang.String s)
          Sets the CallerId presentation/screening in the form "%d (%s)".
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the 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

NewCallerIdEvent

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

getChannel

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

Returns:
the name of the channel.

setChannel

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

Parameters:
channel - the name of the channel

getUniqueId

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

Returns:
the unique id of the channel.

setUniqueId

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

Parameters:
uniqueId - the unique id of the channel.

getCallerId

public java.lang.String getCallerId()
Returns the new caller id.

Returns:
the new caller id.

setCallerId

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

Parameters:
callerId - the new Caller*ID.

getCallerIdName

public java.lang.String getCallerIdName()
Returns the new Caller*ID Name if set or "≶Unknown>" if none has been set.

Returns:
the new Caller*ID Name.

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the new Caller*ID Name if set or "≶Unknown>" if none has been set.

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

getCidCallingPres

public java.lang.Integer getCidCallingPres()
Returns the CallerId presentation/screening.

Returns:
the CallerId presentation/screening.
Since:
0.2

getCidCallingPresTxt

public java.lang.String getCidCallingPresTxt()
Returns the textual respresentation of the CallerId presentation/screening.

Returns:
the textual respresentation of the CallerId presentation/screening.
Since:
0.2

setCidCallingPres

public void setCidCallingPres(java.lang.String s)
Sets the CallerId presentation/screening in the form "%d (%s)".

Parameters:
s - the CallerId presentation/screening in the form "%d (%s)".
Since:
0.2


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