org.asteriskjava.manager.event
Class BridgeExecEvent
java.lang.Object
java.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.BridgeExecEvent
- All Implemented Interfaces:
- Serializable
public class BridgeExecEvent
- extends ManagerEvent
A BridgeExecEvent is triggered when two channels are bridged through a feature code or bridging the channels fails.
It is implemented in main/features.c
Available since Asterisk 1.6.
- Since:
- 1.0.0
- Version:
- $Id: BridgeExecEvent.java 1276 2009-03-23 21:48:25Z 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 |
RESPONSE_FAILED
public static final String RESPONSE_FAILED
- See Also:
- Constant Field Values
RESPONSE_SUCCESS
public static final String RESPONSE_SUCCESS
- See Also:
- Constant Field Values
BridgeExecEvent
public BridgeExecEvent(Object source)
getResponse
public String getResponse()
- Returns whether bridging succeeded or failed. Possible values are
- Returns:
- "Failed" if bridging failed, "Success" if it succeeded.
- See Also:
RESPONSE_FAILED,
RESPONSE_SUCCESS
setResponse
public void setResponse(String response)
getReason
public String getReason()
- Returns the reason for failure. Possible values are
- Unable to bridge channel to itself
- Cannot grab end point
- cannot create placeholder
- Could not make channels compatible for bridge
- Returns:
- the reason for failure or
null on success.
setReason
public void setReason(String reason)
getChannel1
public String getChannel1()
- The name of the first channel.
- Returns:
- name of the first channel.
setChannel1
public void setChannel1(String channel1)
getChannel2
public String getChannel2()
- The name of the second channel.
- Returns:
- name of the second channel.
setChannel2
public void setChannel2(String channel2)
Copyright © 2004-2010 Stefan Reuter. All Rights Reserved.