Asterisk-Java

org.asteriskjava.manager.event
Class BridgeExecEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.BridgeExecEvent
All Implemented Interfaces:
java.io.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

Field Summary
static java.lang.String RESPONSE_FAILED
           
static java.lang.String RESPONSE_SUCCESS
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BridgeExecEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getChannel1()
          The name of the first channel.
 java.lang.String getChannel2()
          The name of the second channel.
 java.lang.String getReason()
          Returns the reason for failure.
 java.lang.String getResponse()
          Returns whether bridging succeeded or failed.
 void setChannel1(java.lang.String channel1)
           
 void setChannel2(java.lang.String channel2)
           
 void setReason(java.lang.String reason)
           
 void setResponse(java.lang.String response)
           
 
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
 

Field Detail

RESPONSE_FAILED

public static final java.lang.String RESPONSE_FAILED
See Also:
Constant Field Values

RESPONSE_SUCCESS

public static final java.lang.String RESPONSE_SUCCESS
See Also:
Constant Field Values
Constructor Detail

BridgeExecEvent

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

getResponse

public java.lang.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(java.lang.String response)

getReason

public java.lang.String getReason()
Returns the reason for failure. Possible values are

Returns:
the reason for failure or null on success.

setReason

public void setReason(java.lang.String reason)

getChannel1

public java.lang.String getChannel1()
The name of the first channel.

Returns:
name of the first channel.

setChannel1

public void setChannel1(java.lang.String channel1)

getChannel2

public java.lang.String getChannel2()
The name of the second channel.

Returns:
name of the second channel.

setChannel2

public void setChannel2(java.lang.String channel2)

Asterisk-Java

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