|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.BridgeAction
public class BridgeAction
The BridgeAction bridges two channels that are currently active on the system.
It is definied in res/res_features.c.
Available since Asterisk 1.6
| Constructor Summary | |
|---|---|
BridgeAction()
Creates a new empty BridgeAction. |
|
BridgeAction(java.lang.String channel1,
java.lang.String channel2)
Creates a new BridgeAction that bridges the two given channels. |
|
BridgeAction(java.lang.String channel1,
java.lang.String channel2,
java.lang.Boolean tone)
Creates a new BridgeAction that bridges the two given channels. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel1()
Returns the name of the channel to bridge to channel2. |
java.lang.String |
getChannel2()
Returns the name of the channel to bridge to channel1. |
java.lang.Boolean |
getTone()
Returns whether a courtesy tone will be played to channel2. |
void |
setChannel1(java.lang.String channel1)
Sets the name of the channel to bridge to channel2. |
void |
setChannel2(java.lang.String channel2)
Sets the name of the channel to bridge to channel1. |
void |
setTone(java.lang.Boolean tone)
Sets whether a courtesy tone will be played to channel2. |
| Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction |
|---|
getActionId, setActionId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BridgeAction()
public BridgeAction(java.lang.String channel1,
java.lang.String channel2)
channel1 - the name of the channel to bridge to channel2.channel2 - the name of the channel to bridge to channel1.
public BridgeAction(java.lang.String channel1,
java.lang.String channel2,
java.lang.Boolean tone)
channel1 - the name of the channel to bridge to channel2.channel2 - the name of the channel to bridge to channel1.tone - true to play a courtesy tone to channel2, false otherwise.| Method Detail |
|---|
public java.lang.String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic java.lang.String getChannel1()
public void setChannel1(java.lang.String channel1)
channel1 - the name of the channel to bridge to channel2.public java.lang.String getChannel2()
public void setChannel2(java.lang.String channel2)
channel2 - the name of the channel to bridge to channel1.public java.lang.Boolean getTone()
true to play a courtesy tone to channel2, false or
null (if not set) otherwise.public void setTone(java.lang.Boolean tone)
tone - true to play a courtesy tone to channel2, false otherwise.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||