hello guys ) i’m new in configuring asterisk without pbx. i’ve installed asterisk 1.6 on debian 6 squeeze, my outbound and inbound routes work fine,but i’m stuck at creating music on hold MOH! here are my configuration files
i’m using 666 number for testing )
extensions.conf
[out]
exten => _666,1,Answer()
exten => _666,n,Ringing()
exten => _666,n,Wait(2)
exten => _666,n,SetMusicOnHold(default)
musiconhold.conf
[default]
mode=files
directory=/var/lib/asterisk/moh
ramdom=yes
/var/lib/asterisk/moh files are default
asterisk-moh-opsound-wav-2.03
CHANGES-asterisk-moh-opsound-wav
CREDITS-asterisk-moh-opsound-wav
LICENSE-asterisk-moh-opsound-wav
macroform-cold_day.wav
macroform-robot_dity.wav
macroform-the_simplicity.wav
manolo_camp-morning_coffee.wav
reno_project-system.wav
after calling to 666 i get this kind of error
-- Executing [666@out:1] Answer("SIP/100-00000000", "") in new stack
-- Executing [666@out:2] Ringing("SIP/100-00000000", "") in new stack
-- Executing [666@out:3] Wait("SIP/100-00000000", "2") in new stack
-- Executing [666@out:4] SetMusicOnHold("SIP/100-00000000", "macroform-cold_day") in new stack
[2011-09-27 17:55:58] [color=#FF0000]WARNING[2565]: res_musiconhold.c:758 set_moh_exec: SetMusicOnHold application is deprecated and will be removed. Use Set(CHANNEL(musicclass)=…) instead[/color]
i have also tried to put Set(CHANNEL(musicclass)=default) but no use the call just hung up
can anyone help me please ( i want to learn and understand asterisk !!! thanks for the attention