[asterisk-users] Music on Hold issue with asterisk 1.4.2

Steve Finkelstein sf at stevefink.net
Sat Apr 28 09:27:59 MST 2007


Interesting, that works David.

I got the example directly out of the published "VoIP Hacks" book and
followed instructions step by step.

Either way, thanks much. :-)

- sf

Dave Miller wrote:
> Steve Finkelstein wrote on 4/28/07 12:21 AM:
> 
>> my musiconhold.conf:
>>
>> [default]
>> mode=quietmp3
>> directory=/var/lib/asterisk/mohmp3
>>
>> and finally in my extensions.conf:
>>
>> asterisk-1.4.2 # grep 100 /etc/asterisk/extensions.conf
>> exten => 100,1,MusicOnHold(30)
>> exten => 100,2,Hangup
>>
>> When I dial 100 however, I receive the following:
> 
>> [Apr 28 00:17:33] WARNING[30975]: res_musiconhold.c:947
>> local_ast_moh_start: No class: 30
> 
> The parameter to MusicOnHold is the class of music to play.  You have no
> class named "30" just like the error says. :)
> 
> You do have a class named "default" in the config snippet you pasted, so
> MusicOnHold(default) should work.
> 


More information about the asterisk-users mailing list