MusicOnHold(class[,duration])
Full arguments reference
classrequiredduration
Plays hold music specified by class. If omitted, the default music source for the channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on. 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 omitted, 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().
classrequiredduration
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.