Asterisk Project : Asterisk 10 Application_MusicOnHold This page last changed on Oct 14, 2011 by wikibot. # MusicOnHold() ### Synopsis Play Music On Hold indefinitely. ### Description Plays hold music specified by class. If omitted, the default music source for the channel will be used. Change the default class with Set(CHANNEL(musicclass)=...). If duration is given, hold music will be played specified number of seconds. If duration is ommited, music plays indefinitely. Returns `0` when done, `-1` on hangup. This application does not automatically answer and should be preceeded by an application such as Answer() or Progress(). ### Syntax
    MusicOnHold(class[,duration])
##### Arguments `class` `duration` ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:24