public class SetMusicOnCommand extends AbstractAgiCommand
Always returns 0.
| Constructor and Description |
|---|
SetMusicOnCommand()
Creates a new SetMusicOnCommand playing music from the default music on
hold class.
|
SetMusicOnCommand(String musicOnHoldClass)
Creates a new SetMusicOnCommand playing music from the default music on
hold class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getMusicOnHoldClass()
Returns the music on hold class to play music from.
|
void |
setMusicOnHoldClass(String musicOnHoldClass)
Sets the music on hold class to play music from.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SetMusicOnCommand()
public SetMusicOnCommand(String musicOnHoldClass)
musicOnHoldClass - the music on hold class to play music from.public String getMusicOnHoldClass()
null
for the default class.public void setMusicOnHoldClass(String musicOnHoldClass)
musicOnHoldClass - the music on hold class to play music from or
null for the default class.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2021. All rights reserved.