[asterisk-bugs] [Asterisk 0014749]: [patch] Add support for relative path to digits, letters and phonetics files in say.c

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 31 06:22:36 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14749 
====================================================================== 
Reported By:                nicchap
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14749
Category:                   Addons/New Feature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-25 08:44 CDT
Last Modified:              2009-03-31 06:22 CDT
====================================================================== 
Summary:                    [patch] Add support for relative path to
digits,letters and phonetics files in say.c
Description: 
We use asterisk as our IVR base and thus support multiple applications for
multiple clients. Each client have their own set of prompts and voices,
including what I call VOCAB files, or digits - letters and phonetics.
Currently Asterisk only supports these files from the language root:

ie: digits/ or fr/digits or fr/letters and so on. 

This patch enables us to have multiple recordings of these files located
in a relative directory under the required language:

ie: allison/digits , fr/isabelle/letters, en/manuel/phonetics and so on

I tried as best to avoid touching any internals and decided to use a
channel variable called VOCAB_RELATIVE_PATH to enable this feature (simply
call the dialplan Set function to enable it). If this variable exists, then
the relative path defined by it is used, otherwise it defaults to it's
usual location. If the file is not found under the relative path, it also
defaults to it's usual location.
====================================================================== 

---------------------------------------------------------------------- 
 (0102452) nicchap (reporter) - 2009-03-31 06:22
 http://bugs.digium.com/view.php?id=14749#c102452 
---------------------------------------------------------------------- 
Leif, that would work in that the vocab (digits) files would play but
unfortunately that also breaks all the functions in say.c as they are also
mapped to a specific language. For instance, if I create a language called
frIsabelle, say_digits_str_full would need map frIsabbelle to french
otherwise it defaults to english, any english based languages would be fine
however.

So what's easier? Adding a language mapping in the c file and recompiling
or adding logic based on a channel variable? Any other ideas? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-31 06:22 nicchap        Note Added: 0102452                          
======================================================================




More information about the asterisk-bugs mailing list