On Mon, Mar 22, 2010 at 09:38:26PM -0400, sean darcy wrote: > 1.6.2: > > -- Executing [...@incoming-pstn-line:4] VoiceMail("DAHDI/4-1", > "1...@default,u") in new stack > -- <DAHDI/4-1> Playing > '/var/spool/asterisk/voicemail/default/100/unavail.gsm' (language 'en') > [Mar 22 17:15:46] WARNING[31145]: file.c:650 ast_openstream_full: File > vm-intro does not exist in any format > [Mar 22 17:15:46] WARNING[31145]: file.c:953 ast_streamfile: Unable to > open vm-intro (format 0x4 (ulaw)): No such file or directory > > But: > > locate vm-intro > > /var/lib/asterisk/sounds/en/vm-intro.gsm > /var/lib/asterisk/sounds/en/vm-intro.ulaw > /var/lib/asterisk/sounds/en/vm-intro.wav > > head -12 /etc/asterisk/asterisk.conf > [directories](!) ; remove the (!) to enable this
As long as it is not enabled, the compile-time defaults are used. > astetcdir => /etc/asterisk > astmoddir => /usr/lib64/asterisk/modules > astvarlibdir => /var/lib/asterisk > astdbdir => /var/lib/asterisk > astkeydir => /var/lib/asterisk > astdatadir => /var/lib/asterisk > astagidir => /var/lib/asterisk/agi-bin > astspooldir => /var/spool/asterisk > astrundir => /var/run/asterisk > astlogdir => /var/log/asterisk > > > So in which folder are these sounds supposed to be? Unless you specifid the full path explicitly, the sound files are looked for in the following pathes (in the following order). Suppose you wanted the sound file called: 'somewhere/soundname' DATADIR/sounds/LANG_FULL/somewhere/soundname DATADIR/sounds/LANG/somewhere/soundname DATADIR/sounds/somewhere/soundname DATADIR/sounds/DEFAULTLANG/soundname DATADIR defaults to /var/lib/asterisk (unless you use the Debian/Ubuntu packages...) and can be set in asterisk.conf otherwise. LANG_FULL is the complete value of LANGUAGE, if it is set. LANG is the value of LANGUAGE sliced after the first '_'. For instance, if LANG_FULL was 'en_US_Whatever', LANG will be 'en'. DEFAULTLANG defaults to 'en' and can be set to a default value in asterisk.conf. Normally people don't change it. Hmm... 'core show settings' does not show datadir. Should it? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- _____________________________________________________________________ -- 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