asterisk-core-sounds - extra sound files of asterisk

Jonas Smedegaard dr at
Mon Mar 29 14:11:23 UTC 2010

On Mon, Mar 29, 2010 at 04:01:56PM +0300, Tzafrir Cohen wrote:
>On Sun, Mar 21, 2010 at 11:04:24AM +0100, Jonas Smedegaard wrote:
>> On Sun, Mar 21, 2010 at 07:00:01AM +0200, Tzafrir Cohen wrote:
>>> On Sun, Mar 21, 2010 at 03:16:33AM +0100, Jonas Smedegaard wrote:
>>>> On Sat, Mar 20, 2010 at 11:55:50PM +0200, Tzafrir Cohen wrote:
>>>>> Look at 
>>>>> Please explain how packages from it could be used with 
>>>>> update-alternatives .
>>>>> This package builds 9 different binary packages:
>>>>>  asterisk-core-sounds-{en,es,fr}-{g722,gsm,wav}
>>>>> All three asterisk-core-sounds-en-* packages install files to the 
>>>>> same directory. They install the same files with a different 
>>>>> extension. Thus they are not mutually exlcusive. And thus each of 
>>>>> them makes that directory a sane candidate for the symlink 
>>>>> /usr/share/asterisk/sounds/en . (The same applies to the two other 
>>>>> languages).


>>> Sometimes it makes sense to have just the gsm ones. In fact, in many 
>>> cases (this is what I'll probably do inthe next live CD. This is the 
>>> current default).
>> Ah, ok.  Then ship it like this:
>> asterisk-core-sounds-en-g722_1.4.17-1_all.deb
>>   Depends: asterisk-core-sounds-en-gsm
>>   Provides: asterisk-sounds-en, asterisk-sounds-en-us
>> asterisk-core-sounds-en-gsm_1.4.17-1_all.deb
>>   Register-alternatives: /usr/share/asterisk/sounds/en,
>>     /usr/share/asterisk/sounds/en_US
>>   Recommends: asterisk-core-sounds-en-g722,
>>     asterisk-core-sounds-en-wav
>>   Provides: asterisk-sounds-en, asterisk-sounds-en-us
>> asterisk-core-sounds-en-wav_1.4.17-1_all.deb
>>   Depends: asterisk-core-sounds-en-gsm
>>   Provides: asterisk-sounds-en, asterisk-sounds-en-us
>While I'm not happy with this solution, I've adapted the en, fr and es
>packages to use it (except the package asterisk-prompt-es-co that is not
>maintained by this team. Anybody from Avatar reading this?). I didn't
>get to the packages of other languages yet.

Great to hear that!

>A package that installs the alternatives xx and xx_YY also provides
>asterisk-prompt-xx and asterisk-prompt-xx-yy . If there are different
>packages for multiple formats, only one of them should provide it.
>Prefferably the smallest one.

With above scheme, it _is_ the smallest one (the GSM format one) which 
provides the language and thus must always be installed for a language 
to be registered.

Hmm.  Actually I think the non-gsm packages should only recommend (not 
depend on) the gsm ones: They _are_ usable alone for odd purposes.

>As a side note, asterisk-prompt-fr-proformatique currently has wav
>files, but I see no reason why there won't be an e.g. an extra package
>of gsm files for the same prompts. In that case we'll have to change the
>provider of the alternatives.
>This also implies that if you just install 'asterisk-prompt-xx' or
>asterisk-prompt-xx-yy' you're likely to get gsm files.

Not only likely but guaranteed.  Which is the minimum required for 
fulfilling the need of a language or language+dialect.

Using normal install routines, the recommendations make that core 
package pull in the larger add-on packages too.  Only if suppressing 
recommendations (explicitly or generally) will they not be pulled in.

>Anyway, this package is acumulating more and more fixes unrelated to
>those of the sound files (e.g.: a minor fix regarding the patht that is
>required for the mph package).

Not sure what you mean by "this package".

  - Jonas

* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website:

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <>

More information about the Pkg-voip-maintainers mailing list