[asterisk-dev] Sound path

Philip A. Prindeville philipp_subx at redfish-solutions.com
Tue Nov 3 15:14:12 CST 2009


On 11/03/2009 05:16 AM, Kevin P. Fleming wrote:
> Philip A. Prindeville wrote:
>   
>> I was wondering if it would make sense to allow Asterisk to be 
>> configured to have a $PATH-like functionality to locate sound files, so 
>> that it would search in multiple places until it found a match.
>>     
> It already does.
>
>   
>> We could use this to allow looking-aside for custom-sounds, alternate 
>> languages for bi- or tri-lingual regions (think Switzerland, Belgium, 
>> and Canada)... or even putting a custom-sounds directory first so that 
>> the contents of "stock" sound files could be overridden with locally 
>> produced content.
>>     
> This is already possible. The channel's LANGUAGE code is split, piece by
> piece (separated by underscores), and used to build paths to look for
> files. The first file found is used.
>
> This means that, for example, LANGUAGE can be set to en_GB_female_BT,
> which would search for files in:
>
> .../sounds/en/GB/female/BT
> .../sounds/en/GB/female
> .../sounds/en/GB
> .../sounds/en
> .../sounds
>
>   

That doesn't address the issue of maintaining look-aside copies of
standard files...

-Philip




More information about the asterisk-dev mailing list