public class BridgeAction extends AbstractManagerAction
It is definied in res/res_features.c
.
Available since Asterisk 1.6
Constructor and Description |
---|
BridgeAction()
Creates a new empty BridgeAction.
|
BridgeAction(String channel1,
String channel2)
Creates a new BridgeAction that bridges the two given channels.
|
BridgeAction(String channel1,
String channel2,
Boolean tone)
Creates a new BridgeAction that bridges the two given channels.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel1()
Returns the name of the channel to bridge to channel2.
|
String |
getChannel2()
Returns the name of the channel to bridge to channel1.
|
Boolean |
getTone()
Returns whether a courtesy tone will be played to channel2.
|
void |
setChannel1(String channel1)
Sets the name of the channel to bridge to channel2.
|
void |
setChannel2(String channel2)
Sets the name of the channel to bridge to channel1.
|
void |
setTone(Boolean tone)
Sets whether a courtesy tone will be played to channel2.
|
getActionId, setActionId, toString
public BridgeAction()
public BridgeAction(String channel1, String channel2)
channel1
- the name of the channel to bridge to channel2.channel2
- the name of the channel to bridge to channel1.public BridgeAction(String channel1, String channel2, 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.public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel1()
public void setChannel1(String channel1)
channel1
- the name of the channel to bridge to channel2.public String getChannel2()
public void setChannel2(String channel2)
channel2
- the name of the channel to bridge to channel1.public Boolean getTone()
true
to play a courtesy tone to channel2, false
or
null
(if not set) otherwise.public void setTone(Boolean tone)
tone
- true
to play a courtesy tone to channel2, false
otherwise.Copyright © 2004–2017. All rights reserved.