org.asteriskjava.manager.event
Class HangupEvent
java.lang.Object
java.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.AbstractChannelEvent
org.asteriskjava.manager.event.HangupEvent
- All Implemented Interfaces:
- 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
| 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 |
HangupEvent
public HangupEvent(Object source)
getCause
public Integer getCause()
- Returns the cause of the hangup.
- Returns:
- the hangup cause.
- See Also:
HangupCause
setCause
public void setCause(Integer cause)
- Sets the cause of the hangup.
- Parameters:
cause - the hangup cause.
getCauseTxt
public 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(String causeTxt)
- Sets the textual representation of the hangup cause.
- Parameters:
causeTxt - the textual representation of the hangup cause.- Since:
- 0.2
Copyright © 2004-2010 Stefan Reuter. All Rights Reserved.