public class MusicOnHoldEvent extends ManagerEvent
It is implemented in res/res_musiconhold.c
.
Available since Asterisk 1.6
Modifier and Type | Field and Description |
---|---|
static String |
STATE_START |
static String |
STATE_STOP |
source
Constructor and Description |
---|
MusicOnHoldEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
Returns the name of the channel.
|
String |
getClassName() |
String |
getState()
Returns the state.
|
String |
getUniqueId()
Returns the unique id of the channel.
|
boolean |
isStart()
Returns whether this is a start event.
|
boolean |
isStop()
Returns whether this is a stop event.
|
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setClassName(String className) |
void |
setState(String state) |
void |
setUniqueId(String uniqueId)
Sets the unique id of the channel.
|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString
getSource
public static final String STATE_START
public static final String STATE_STOP
public MusicOnHoldEvent(Object source)
public String getChannel()
public void setChannel(String channel)
channel
- the name of the channel.public String getUniqueId()
public void setUniqueId(String uniqueId)
uniqueId
- the unique id of the channel.public String getState()
STATE_START
,
STATE_STOP
,
isStart()
,
isStop()
public void setState(String state)
public boolean isStart()
true
if this a start event, false
otherwise.public boolean isStop()
true
if this an stop event, false
otherwise.public String getClassName()
public void setClassName(String className)
Copyright © 2004–2016. All rights reserved.