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 |
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
MusicOnHoldEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getAccountCode() |
String |
getChannel()
Returns the name of the channel.
|
String |
getClassName() |
String |
getLanguage() |
String |
getLinkedId() |
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 |
setAccountCode(String accountCode) |
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setClazz(String className) |
void |
setLanguage(String language) |
void |
setLinkedId(String linkedId) |
void |
setState(String state) |
void |
setUniqueId(String uniqueId)
Sets the unique id of the channel.
|
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, 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 getClassName()
public void setClazz(String className)
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 getAccountCode()
public void setAccountCode(String accountCode)
public String getLinkedId()
public void setLinkedId(String linkedId)
public String getLanguage()
public void setLanguage(String language)
Copyright © 2004–2020. All rights reserved.