public class MuteAudioAction extends AbstractManagerAction
res/res_mutestream.c
.
Available since Asterisk 1.8
Modifier and Type | Class and Description |
---|---|
static class |
MuteAudioAction.Direction
The audio direct (relative to the pbx) which is to be muted.
|
static class |
MuteAudioAction.State
Controls whether to mute (on) or unmute (off) the call
|
Constructor and Description |
---|
MuteAudioAction()
Creates a new empty MuteAction.
|
MuteAudioAction(String channel,
MuteAudioAction.Direction direction,
MuteAudioAction.State state)
Creates a new MuteAction that Mutes or Unmutes the two given channel.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the name of the channel to monitor.
|
MuteAudioAction.Direction |
getDirection()
Returns the audio direction which is to be muted/unmuted.
|
MuteAudioAction.State |
getState()
Returns the state controls whether we are muting or unmuting the channel.
|
void |
setChannel(String channel)
Sets the name of the channel to monitor.
|
void |
setDirection(MuteAudioAction.Direction direction)
Sets the audio direction which is to be muted/unmuted.
|
void |
setState(MuteAudioAction.State state)
Sets the state controls whether we are muting or unmuting the channel.
|
getActionId, setActionId, toString
public MuteAudioAction()
public MuteAudioAction(String channel, MuteAudioAction.Direction direction, MuteAudioAction.State state)
channel
- the name of the channel to Mute.direction
- the audio direction which is to be muted/unmutedstate
- controls whether we are muting or unmuting the channel.public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel()
public MuteAudioAction.Direction getDirection()
public MuteAudioAction.State getState()
public void setChannel(String channel)
This property is mandatory.
public void setDirection(MuteAudioAction.Direction direction)
This property is mandatory.
public void setState(MuteAudioAction.State state)
This property is mandatory.
Copyright © 2004–2020. All rights reserved.