Bug#337209: custom asterisk sounds

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Nov 3 09:42:50 UTC 2005


Package: asterisk
Version: 1.0.9-5
Severity: wishlist

Originally asterisk places all sound files under /var/lib/asterisk . On
Debian most of them (expcept the voicemail) are placed under
/usr/share/asterisk instead.

This generally helps keeping a bunch of non-var files out of /var .
However:

1. what if the sysadmin wishes to override some sounds? One can add
  custom files under /usr/share/asterisk/sounds, but if one changes a
  packaged file, it may be overriden by the package later.
2. What if we want to add sounds at runtime? (e.g: record)

Solution 1:
The perfect solution for that would have been to make Asterisk search in
/var/lib/asterisk/sounds for a file before looking in
/usr/share/asterisk/sounds . However this seems to be a bit problematic
to make. If anybody manages to add such a change to file.c, it would
solve the problem in the cleanest way.

Solution 2:
Put the changed files in (yuck) /var/lib/asterisk/voicemail , and rely
on the link to the voicemail directory. This works even today, but is
ugly and may have strange side-effects of permissions.
Note that this only solves problem (2), and not problem (1).

Solutoin 3:
Add a similar link from /usr/share/asterisk/sounds/custom to
/var/lib/asterisk/sounds/custom (which will have to be created as well.
Again: solves only (2).

-- 
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