Re: [asterisk-users] [1.6.2.5] Asterisk can't find MOH file
On Thu, 17 Mar 2011 15:09:18 +, Ishfaq Malik wrote: >MusicOnHold() doesn't take a file name as a parameter, it takes a class >name or if left blank, plays from the default class Yes, thanks for the tip. Found it: Turns out the Ubuntu package expects sound files to be located in /usr/share/asterisk/sounds instead of the usual /var/lib/asterisk/sounds. asterisk.conf: astdatadir => /usr/share/asterisk Thanks guys. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] [1.6.2.5] Asterisk can't find MOH file
On Thu, 2011-03-17 at 15:39 +0100, Gilles wrote: > On Thu, 17 Mar 2011 09:23:35 -0500, "Danny Nicholas" > wrote: > >Moh should be in /var/lib/asterisk/moh not /var/lib/asterisk/sounds or in > >this case /var/lib/asterisk/moh/custom. > > Thanks for the tip, but after moving the MOH files to the right > location, and even restarting Asterisk, it still doesn't find them, > with the same error message: > MusicOnHold() doesn't take a file name as a parameter, it takes a class name or if left blank, plays from the default class > = > # ll /var/lib/asterisk/moh/ > -rw-r--r-- 1 root root 1954191 2009-12-26 15:57 > macroform-cold_day.ulaw > -rw-r--r-- 1 root root 1509854 2009-12-26 15:57 > macroform-robot_dity.ulaw > -rw-r--r-- 1 root root 2232088 2009-12-26 15:57 > macroform-the_simplicity.ulaw > -rw-r--r-- 1 root root 584771 2009-12-26 15:57 > manolo_camp-morning_coffee.ulaw > -rw-r--r-- 1 root root 2573886 2009-12-26 15:57 > reno_project-system.ulaw > = > > I tried using MusicOnHold() but it doesn't take a parameter, and just > plays some other tune: > = > ;exten => ,n,Playback(manolo_camp-morning_coffee) > exten => ,n,MusicOnHold(manolo_camp-morning_coffee) > = > > Actually, how can Asterisk know that a file is MOH and hence, should > be found in /var/lib/asterisk/moh/, rather than a regular prompt/sound > file located in /var/lib/asterisk/sounds? > > Thank you. -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] [1.6.2.5] Asterisk can't find MOH file
On Thu, 17 Mar 2011 09:23:35 -0500, "Danny Nicholas" wrote: >Moh should be in /var/lib/asterisk/moh not /var/lib/asterisk/sounds or in >this case /var/lib/asterisk/moh/custom. Thanks for the tip, but after moving the MOH files to the right location, and even restarting Asterisk, it still doesn't find them, with the same error message: = # ll /var/lib/asterisk/moh/ -rw-r--r-- 1 root root 1954191 2009-12-26 15:57 macroform-cold_day.ulaw -rw-r--r-- 1 root root 1509854 2009-12-26 15:57 macroform-robot_dity.ulaw -rw-r--r-- 1 root root 2232088 2009-12-26 15:57 macroform-the_simplicity.ulaw -rw-r--r-- 1 root root 584771 2009-12-26 15:57 manolo_camp-morning_coffee.ulaw -rw-r--r-- 1 root root 2573886 2009-12-26 15:57 reno_project-system.ulaw = I tried using MusicOnHold() but it doesn't take a parameter, and just plays some other tune: = ;exten => ,n,Playback(manolo_camp-morning_coffee) exten => ,n,MusicOnHold(manolo_camp-morning_coffee) = Actually, how can Asterisk know that a file is MOH and hence, should be found in /var/lib/asterisk/moh/, rather than a regular prompt/sound file located in /var/lib/asterisk/sounds? Thank you. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] [1.6.2.5] Asterisk can't find MOH file
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles Sent: Thursday, March 17, 2011 9:18 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] [1.6.2.5] Asterisk can't find MOH file Hello I thought I had things set OK to have Asterisk play FR files for prompts and MOH, but for some reason, it still can't find them: ll /var/lib/asterisk/sounds/ drwxr-xr-x 2 asterisk asterisk 4096 2011-01-21 16:18 custom/ drwxr-xr-x 10 root root61440 2011-03-17 14:21 fr/ Note: fr/ contains core + extra + moh as downloaded from here: http://downloads.asterisk.org/pub/telephony/sounds/ find /var/lib/asterisk/sounds/ -name "manolo_camp-mor*" /var/lib/asterisk/sounds/fr/manolo_camp-morning_coffee.ulaw extensions.conf ;just in case, but shouldn't be needed exten => ,1,Set(CHANNEL(language)=fr) exten => ,n,Wait(2) exten => ,n,Answer() exten => ,n,Playback(manolo_camp-morning_coffee) exten => ,n,Hangup cat asterisk.conf ... [options] nocolor = yes ; Disable console colors languageprefix = yes ; Use the new sound prefix path syntax [compat] pbx_realtime=1.6 res_agi=1.6 app_set=1.6 cat /etc/asterisk/chan_dahdi.conf [channels] language=fr signalling = fxs_ks ... cat /etc/asterisk/sip.conf [general] language=fr port = 5060 ... CLI> -- Executing [@internal:1] Set("SIP/xlite-0002", "CHANNEL(language)=fr") in new stack -- Executing [@internal:2] Wait("SIP/xlite-0002", "2") in new stack -- Executing [@internal:3] Answer("SIP/xlite-0002", "") in new stack -- Executing [@internal:4] Playback("SIP/xlite-0002", "manolo_camp-morning_coffee") in new stack [Mar 17 15:10:18] WARNING[1888]: file.c:650 ast_openstream_full: File manolo_camp-morning_coffee does not exist in any format [Mar 17 15:10:18] WARNING[1888]: file.c:953 ast_streamfile: Unable to open manolo_camp-morning_coffee (format 0x4 (ulaw)): No such file or directory [Mar 17 15:10:18] WARNING[1888]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/xlite-0002 for manolo_camp-morning_coffee -- Executing [@internal:5] Hangup("SIP/xlite-0002", "") in new stack == Spawn extension (internal, , 5) exited non-zero on 'SIP/xlite-0002' -- Executing [h@internal:1] NoOp("SIP/xlite-0002", "Called ended with ") in new stack Does someone what I missed that would explain the error above? Thank you. Moh should be in /var/lib/asterisk/moh not /var/lib/asterisk/sounds or in this case /var/lib/asterisk/moh/custom. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] [1.6.2.5] Asterisk can't find MOH file
Hello I thought I had things set OK to have Asterisk play FR files for prompts and MOH, but for some reason, it still can't find them: ll /var/lib/asterisk/sounds/ drwxr-xr-x 2 asterisk asterisk 4096 2011-01-21 16:18 custom/ drwxr-xr-x 10 root root61440 2011-03-17 14:21 fr/ Note: fr/ contains core + extra + moh as downloaded from here: http://downloads.asterisk.org/pub/telephony/sounds/ find /var/lib/asterisk/sounds/ -name "manolo_camp-mor*" /var/lib/asterisk/sounds/fr/manolo_camp-morning_coffee.ulaw extensions.conf ;just in case, but shouldn't be needed exten => ,1,Set(CHANNEL(language)=fr) exten => ,n,Wait(2) exten => ,n,Answer() exten => ,n,Playback(manolo_camp-morning_coffee) exten => ,n,Hangup cat asterisk.conf ... [options] nocolor = yes ; Disable console colors languageprefix = yes ; Use the new sound prefix path syntax [compat] pbx_realtime=1.6 res_agi=1.6 app_set=1.6 cat /etc/asterisk/chan_dahdi.conf [channels] language=fr signalling = fxs_ks ... cat /etc/asterisk/sip.conf [general] language=fr port = 5060 ... CLI> -- Executing [@internal:1] Set("SIP/xlite-0002", "CHANNEL(language)=fr") in new stack -- Executing [@internal:2] Wait("SIP/xlite-0002", "2") in new stack -- Executing [@internal:3] Answer("SIP/xlite-0002", "") in new stack -- Executing [@internal:4] Playback("SIP/xlite-0002", "manolo_camp-morning_coffee") in new stack [Mar 17 15:10:18] WARNING[1888]: file.c:650 ast_openstream_full: File manolo_camp-morning_coffee does not exist in any format [Mar 17 15:10:18] WARNING[1888]: file.c:953 ast_streamfile: Unable to open manolo_camp-morning_coffee (format 0x4 (ulaw)): No such file or directory [Mar 17 15:10:18] WARNING[1888]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/xlite-0002 for manolo_camp-morning_coffee -- Executing [@internal:5] Hangup("SIP/xlite-0002", "") in new stack == Spawn extension (internal, , 5) exited non-zero on 'SIP/xlite-0002' -- Executing [h@internal:1] NoOp("SIP/xlite-0002", "Called ended with ") in new stack Does someone what I missed that would explain the error above? Thank you. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users