Asterisk-Java

org.asteriskjava.manager.event
Class MasqueradeEvent

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

public class MasqueradeEvent
extends ManagerEvent

A MasqueradeEvent is triggered when Asterisk masquerades a channel.

Available since Asterisk 1.6

It is implemented in main/channel.c

Since:
1.0.0
Version:
$Id: MasqueradeEvent.java 1112 2008-08-16 14:03:18Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MasqueradeEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getClone()
          Returns the name of the clone channel.
 java.lang.Integer getCloneState()
          Returns the state of the clone channel.
 java.lang.String getCloneStateDesc()
          Returns the state of the clone channel as a descriptive text.
 java.lang.String getOriginal()
          Returns the name of the original channel.
 java.lang.Integer getOriginalState()
          Returns the state of the original channel.
 java.lang.String getOriginalStateDesc()
          Returns the state of the original channel as a descriptive text.
 void setClone(java.lang.String clone)
           
 void setCloneState(java.lang.String cloneState)
           
 void setOriginal(java.lang.String original)
           
 void setOriginalState(java.lang.String originalState)
           
 
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

MasqueradeEvent

public MasqueradeEvent(java.lang.Object source)
Method Detail

getClone

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

Returns:
the name of the clone channel.

setClone

public void setClone(java.lang.String clone)

getCloneState

public java.lang.Integer getCloneState()
Returns the state of the clone channel.

Returns:
the state of the clone channel.
See Also:
AstState

getCloneStateDesc

public java.lang.String getCloneStateDesc()
Returns the state of the clone channel as a descriptive text.

Returns:
the state of the clone channel as a descriptive text.

setCloneState

public void setCloneState(java.lang.String cloneState)

getOriginal

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

Returns:
the name of the original channel.

setOriginal

public void setOriginal(java.lang.String original)

getOriginalState

public java.lang.Integer getOriginalState()
Returns the state of the original channel.

Returns:
the state of the original channel.
See Also:
AstState

getOriginalStateDesc

public java.lang.String getOriginalStateDesc()
Returns the state of the original channel as a descriptive text.

Returns:
the state of the original channel as a descriptive text.

setOriginalState

public void setOriginalState(java.lang.String originalState)

Asterisk-Java

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