[Asterisk-Users] Asterisk PBX in Debian

Tzafrir Cohen tzafrir at cohens.org.il
Sat Oct 8 01:11:17 MST 2005


Hi

Please use proper quoting...

See below

On Sat, Oct 08, 2005 at 12:23:21AM -0400, gw at adcomcorp.com wrote:
>  -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir
> Cohen
> Sent: Friday, October 07, 2005 8:17 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] Asterisk PBX in Debian
> 
> > On Fri, Oct 07, 2005 at 07:37:26AM -0400, gw at adcomcorp.com wrote:
> 
> > > 
> > > Besides I found that using packages with asterisk on debian can do odd
> > 
> > > things to your custom sound files if you do a remove.
> > 
> > Regarding the sounds files: I don't think that the way Asterisk
> > installer handles them is very optimal either.
> > 
> > Your message got me thinking, though. I believe that Debian is right
> > installing all sounds to /usr/share/asterisk/sounds . But
> > /var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be
> > kept for custom sounds that are never touched by the package. 
> > 
> > I figure that file.c:build_filename could be changed to do the
> > following:
> > 
> >   if exists /var/lib/asterisk/sounds/<filename>
> >     return /var/lib/asterisk/sounds/<filename>
> >   else if exists /usr/share/sounds/asterisk/<filename>
> >     return /usr/share/sounds/asterisk/<filename>
> > 
> > What do you think? I figure I'll try to push this into Debian first.
> > (If this is indeed a good idea)
> 
> Using /var works, but setting it in asterisk could be a pain when it
> comes to voicemail prompts.  Plus, extensions.conf would need to grow
> and become a little cluttered.  Unless of course, one could do something
> to specify a new root voicemail path, and if the file is not found it
> plays from the default.

You missed the point: you still keep the same configuration. <filename>
should first be looked for in the custom directory and only afterwards
in /usr/share/sounds/asterisk/sounds .

voicemail/ is currently (in Debian) a symlink from the sounds directory 
to /var/lib/asterisk/voicemail

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list