O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SetMusicOnHold() — Sets the default Music on Hold class for the current channel

Synopsis

    SetMusicOnHold(class)

Sets the default class for Music on Hold for the current channel. When Music on Hold is activated, this class will be used to select which music is played. Classes are defined in the configuration file musiconhold.conf.

    exten=s,1,Answer()
    exten=s,2,SetMusicOnHold(default)
    exten=s,3,WaitMusicOnHold()

See Also

WaitMusicOnHold(), musiconhold.conf, MusicOnHold()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required