[asterisk-users] Which folder for sounds?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Thu Mar 25 06:28:41 CDT 2010
On Wed, Mar 24, 2010 at 05:49:30PM -0400, sean darcy wrote:
> Tzafrir Cohen wrote:
> > On Mon, Mar 22, 2010 at 09:38:26PM -0400, sean darcy wrote:
> >> 1.6.2:
> >>
> >> -- Executing [s at incoming-pstn-line:4] VoiceMail("DAHDI/4-1",
> >> "100 at 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
The sound files directory was irrelevant, as Asterisk tried to use a
full path.
"/var/spool/asterisk/voicemail/default/100/unavail.gsm" does not exist
in any format. That is:
/var/spool/asterisk/voicemail/default/100/unavail.gsm.{exten}
does not exist, for any valid value of 'exten' (wav, WAV, gsm, etc. See
the 'Extensions' column in 'core show file formats').
> >>
> >> 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,
Full path was specified. Hence the rest of the explanation is pointless
:-(
> > DEFAULTLANG defaults to 'en' and can be set to a default value in
> > asterisk.conf. Normally people don't change it.
It isn't. My mistake. It can only be overriden in the code. Sorry.
(Generally asterisk.conf is parsed in main/asterisk.c . DEFAULT_LANGUAGE
is defined in include/asterisk.h .
>
> But 1.6.2 can't find them. I've found that if I make the folders
> explicit, by removing the (!) in asterisk.conf it does find them. Which
> means that somehow the default datadir is NOT /var/lib/asterisk. Odd.
Also note that Debian / Ubuntu set datadir at build time:
Basically by running:
make ASTDATADIR=/usr/share/asterisk
See http://svn.debian.org/viewsvn/pkg-voip/asterisk/trunk/debian/rules
But I sadly also pointed to the completely wrong direction. See above.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list