|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.MusicOnHoldEvent
public class MusicOnHoldEvent
A MusicOnHoldEvent is triggered when music on hold starts or stops on a channel.
It is implemented in res/res_musiconhold.c.
Available since Asterisk 1.6
| Field Summary | |
|---|---|
static java.lang.String |
STATE_START
|
static java.lang.String |
STATE_STOP
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MusicOnHoldEvent(java.lang.Object source)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getChannel()
Returns the name of the channel. |
java.lang.String |
getState()
Returns the state. |
java.lang.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(java.lang.String channel)
Sets the name of the channel. |
void |
setState(java.lang.String state)
|
void |
setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel. |
| Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
|---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STATE_START
public static final java.lang.String STATE_STOP
| Constructor Detail |
|---|
public MusicOnHoldEvent(java.lang.Object source)
| Method Detail |
|---|
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel - the name of the channel.public java.lang.String getUniqueId()
public void setUniqueId(java.lang.String uniqueId)
uniqueId - the unique id of the channel.public java.lang.String getState()
STATE_START,
STATE_STOP,
isStart(),
isStop()public void setState(java.lang.String state)
public boolean isStart()
true if this a start event, false otherwise.public boolean isStop()
true if this an stop event, false otherwise.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||