asterisk-core-sounds - extra sound files of asterisk

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Mar 15 14:29:01 UTC 2010


On Mon, Mar 15, 2010 at 04:20:08PM +0200, Tzafrir Cohen wrote:
> On Mon, Mar 15, 2010 at 02:08:55AM +0200, Tzafrir Cohen wrote:
> > On Sat, Mar 06, 2010 at 11:17:55PM +0100, Jonas Smedegaard wrote:
> > > On Mon, Feb 22, 2010 at 11:31:15PM +0200, Tzafrir Cohen wrote:
> > >> A follow-up:
> > >>
> > >> On Mon, Jan 18, 2010 at 05:36:19PM +0200, Tzafrir Cohen wrote:
> > >
> > >>> Another issue: should those files be installed directly at  
> > >>> /usr/share/asterisk/sounds/LANG (e.g.: LANG=en)? or do we want to  
> > >>> avoid that, and make it something along the lines of en_digium or  
> > >>> en_US ?
> > >>
> > >> In order to avoid potential collisions, I wanted to use the semy  
> > >> standard schema of:
> > >>
> > >>  ${lang}_${country}_${gender}_${description}.
> > >>
> > >> Thus the prompts we have are:
> > >>
> > >> en_US_f_Allison
> > >> es_MX_f_Allison [*]
> > >> fr_CA_f_June
> > >>
> > >> This all works fine if LANGUAGE was set. But what if it isn't?
> > >
> > >> So, do we make /usr/share/sounds/en a symlink? Or more direct symlinks? 
> > >> This collides with the current asterisk-sounds package that places  
> > >> files in /usr/share/sounds/en (it is basically the same as  
> > >> asterisk-core-en-gsm).
> > >
> > > I'd suggest to...
> > >
> > >  1. Update package using /usr/share/sounds/$LANG directly
> > >  2. use /etc/alternatives, allowing local admin to override default
> > 
> > Commited the basic part:
> > http://svn.debian.org/viewsvn/pkg-voip?view=rev&revision=8206
> > 
> > One thing I'm not particilary happy about is what to do if we already
> > have a sounds/en/ directory. I currently just alert the user (probably a
> > 'high' priority debconf message would be preffered) and silently
> > succeed.
> > 
> > http://svn.debian.org/viewsvn/pkg-voip/asterisk/trunk/debian/asterisk-sounds-main.postinst?view=markup
> 
> Next, French packages.
> 
> asterisk-prompt-fr-armelle
> asterisk-prompt-fr-proformatique
> 
> http://svn.debian.org/viewsvn/pkg-voip?view=rev&revision=8209
> http://svn.debian.org/viewsvn/pkg-voip?view=rev&revision=8210
> 
> I'm note well familiar with either. I decided to give the proformatique
> package a priority in update-alternatives (60 vs. 50) as it has files of
> better quality (wav vs. gsm) and I had to break the tie somehow.
> 
> Also CC to the fols listed as maintainers of the package at
> http://dak.proformatique.com/debian/pool/main/p/pf-asterisk-prompt-fr/
> 
> (I also noticed you maintain a app_conference package. I think quite a
> few others would be interested in it)

I forgot to mention: update-alternatives does not work as planned:

after:

  dpkg --install asterisk-prompt-fr-armelle_20070613-3_all.deb
  dpkg --install asterisk-prompt-fr-proformatique_20070706-1.4-4_all.deb
  dpkg --purge   asterisk-prompt-fr-proformatique

the link /etc/alternatives/asterisk-sounds-fr remains a dandling link
to /usr/share/asterisk/sounds/fr_FR_Proformatique . I have to manually
run:

  update-alternatives --auto

to fix that.

Any idea what I missed?

-- 
               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 Pkg-voip-maintainers mailing list