additional sound files

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Feb 23 10:55:45 UTC 2006


On Thu, Feb 23, 2006 at 11:37:14AM +0100, David Welton wrote:
> Hi,
> 
> I'm writing regarding asterisk and its integration in Debian (or, in
> this case, Ubuntu, but that's not pertinent).
> 
> My question is about adding additional sound files.  README.Debian says:
> 
> Sounds reside at /usr/share/asterisk/sounds. Voicemail mailboxes are below
> /var/spool/asterisk/voicemail using symlinks.
> 
> If they reside there, how does one go about adding to, or modifying
> them?  We'd like to change some of the sounds, without having to worry
> we update the Debian packages...
> 
> I'm thinking along the lines of PATH... in other words,
> /usr/local/share/asterisk/sounds overrides the equivalent files in
> /usr/share/asterisk, but that's juts the first thing that pops into my
> head, perhaps there is a better way.

Adding a PATH takes a bit of coding non-trivial coding (in file.c), as 
Asterisk already does some of its own searches. The update process of
Asterisk has a similar problem and IIRC they choose to be very tolerant
to changes.

Also recall that changes to sound files can come from the -extra package
or from any other package that drops sound files (e.g: the -prompts).

One thing that is trivial to add is a symlink
/usr/share/asterisk/sounds/local ->/usr/local/asterisk/sounds . To play
them you'll use "local/filename" .

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the Pkg-voip-maintainers mailing list