[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
Thu Aug 6 16:59:43 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/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:                     ready for review
Target Version:             1.6.x Version Tracker
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-08-06 16:59 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0108744) tilghman (administrator) - 2009-08-06 16:59
 https://issues.asterisk.org/view.php?id=14749#c108744 
---------------------------------------------------------------------- 
Our recent discussion from an architectural level is that while we're
interested in functionality like this, we plan to implement it in a
different way, namely by using a multiple set of prefixes on the language
element, such that we can failover in a sane way.  The present proposal
looks like this:

If the language were set to "es_ES_m_manuel", with the "m" indicating a
male voice, then language directories would be searched in the following
order for a match:  "es_ES_m_manuel", "es_ES_m", "es_ES", "es".  If you
were interested in modifying your patch to conform to this convention,
that's the direction in which we'd like to go. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-06 16:59 tilghman       Note Added: 0108744                          
======================================================================




More information about the asterisk-bugs mailing list