|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.fastagi.command.AGICommand
net.sf.asterisk.fastagi.command.SetMusicOnCommand
public class SetMusicOnCommand
Turns on music on hold on the current channel.
Always returns 0.
| Constructor Summary | |
|---|---|
SetMusicOnCommand()
Creates a new SetMusicOnCommand playing music from the default music on hold class. |
|
SetMusicOnCommand(java.lang.String musicOnHoldClass)
Creates a new SetMusicOnCommand playing music from the default music on hold class. |
|
| Method Summary | |
|---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getMusicOnHoldClass()
Returns the music on hold class to play music from. |
void |
setMusicOnHoldClass(java.lang.String musicOnHoldClass)
Sets the music on hold class to play music from. |
| Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
|---|
escapeAndQuote, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SetMusicOnCommand()
public SetMusicOnCommand(java.lang.String musicOnHoldClass)
musicOnHoldClass - the music on hold class to play music from.| Method Detail |
|---|
public java.lang.String getMusicOnHoldClass()
null
for the default class.public void setMusicOnHoldClass(java.lang.String musicOnHoldClass)
musicOnHoldClass - the music on hold class to play music from or
null for the default class.public java.lang.String buildCommand()
AGICommand
buildCommand in class AGICommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||