[Asterisk-Users] default music source for SIP channel
Lance Arbuckle
asterisk at arbuckle.org
Sat Jan 10 19:58:00 MST 2004
ml at neoninternet.com wrote:
>
> > The wiki says this about the MusicOnHold command:
> >
> > "Plays hold music specified by class. If omitted, the default music
> > source for the channel will be used."
> > http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold
> >
> > How do I set the default music on hold class for the SIP channel ? I
> > tried adding musiconhold=test to my sip.conf.
> > musiconhold.conf looks like this:
> > [classes]
> > default => quietmp3:/var/lib/asterisk/mohmp3
> > loud => mp3:/var/lib/asterisk/mohmp3
> > random => quietmp3:/var/lib/asterisk/mohmp3,-z
> > test => quietmp3:/var/lib/asterisk/mohmp3,-z
> >
> > in extensions.conf I did:
> > exten => 6000,1,Answer
> > exten => 6000,2,MusicOnHold
> >
> > When I dial 6000 from a SIP phone ( xlite), musiconhold starts to
> > play,
> > but from the 'default' class.
> > What am I screwing up ?
> >
> > -Lance
>
> -= Info about application 'SetMusicOnHold' =-
>
> [Synopsis]:
> Set default Music On Hold class
>
> [Description]:
> SetMusicOnHold(class): Sets the default class for music on hold for a given channel. When
> music on hold is activated, this class will be used to select which
> music is played.
>
> Kevin
Thanks Kevin, but boy, do I feel dumb. Maybe someone could update the
MusicOnHold wiki page and add SetMusicOnHold to the "Also See" section.
-Lance
More information about the asterisk-users
mailing list