Asterisk-Java

org.asteriskjava.manager.event
Class HangupEvent

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

public class HangupEvent
extends AbstractChannelEvent

A HangupEvent is triggered when a channel is hung up.

It is implemented in channel.c

Version:
$Id: HangupEvent.java 969 2008-02-03 14:24:22Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HangupEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.Integer getCause()
          Returns the cause of the hangup.
 java.lang.String getCauseTxt()
          Returns the textual representation of the hangup cause.
 void setCause(java.lang.Integer cause)
          Sets the cause of the hangup.
 void setCauseTxt(java.lang.String causeTxt)
          Sets the textual representation of the hangup cause.
 
Methods inherited from class org.asteriskjava.manager.event.AbstractChannelEvent
getCallerId, getCallerIdName, getCallerIdNum, getChannel, getUniqueId, setCallerId, setCallerIdName, setCallerIdNum, setChannel, setUniqueId
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, 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

HangupEvent

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

getCause

public java.lang.Integer getCause()
Returns the cause of the hangup.

Returns:
the hangup cause.
See Also:
HangupCause

setCause

public void setCause(java.lang.Integer cause)
Sets the cause of the hangup.

Parameters:
cause - the hangup cause.

getCauseTxt

public java.lang.String getCauseTxt()
Returns the textual representation of the hangup cause.

Returns:
the textual representation of the hangup cause.
Since:
0.2

setCauseTxt

public void setCauseTxt(java.lang.String causeTxt)
Sets the textual representation of the hangup cause.

Parameters:
causeTxt - the textual representation of the hangup cause.
Since:
0.2

Asterisk-Java

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