[asterisk-dev] [feature] Support for relative paths for all "say" functions
Kevin P. Fleming
kpfleming at digium.com
Sat Aug 22 08:54:07 CDT 2009
Andreas Sikkema wrote:
> Currently all the special stuff for pronunciation is related to the
> two digit country code. If you need more than two voices for a
> specific language (multi tenant asterisk install or something like
> that) you need to create a special language (in his example fr and
> fr_special) but then I think you'd lose the pronunciation rules
> because that only works for the two digit country code and not for
> something else.
My point was that Asterisk is already prepared (when finding prompts) to
automatically 'shorten' the LANGUAGE code by removing suffixes until it
finds what it is looking for; so if you have set LANGUAGE to fr_special,
and you ask for 'demo-instruct' to be played, Asterisk will first look
for demo-instruct in the fr_special directory, then in the fr directory,
and finally in the 'no language code' directory.
I am suggesting that the code in Asterisk that directly responds to
language codes (say.c, app_voicemail.c and other places) should *ALSO*
automatically shorten language codes, so that if LANGUAGE is set to
fr_special then say.c will still use the fr syntax for speaking
numbers/dates/times.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list