[Asterisk-Users] Multiple Sound Folder Support for Same Language Syntax

Max Glucksmann mglucksmann at comtel-networks.com
Fri Jun 16 07:18:44 MST 2006


Hello folks,

I’m setting up in one server two AstCC IVRs with different sound files but in the same language: Spanish. As you may already know, Spanish differs slightly in syntax from English. I tried setting the language to the folder names and sounds are taken correctly, but the syntax used is still english... 

I took a look in say.c and found the syntax section. It seems easy to patch so it supports this new scheme that uses multiple folders using the same syntax and different files; something like appending _es to the folder names so the module recognizes it is Spanish would do it for my case, but I can’t get to compile correctly the file.

In any case, this is the function that I would modify to include the new folders’ names:
static int ast_say_number_full_es

To be something like:
static int ast_say_number_full_new_folder_1_es
static int ast_say_number_full_new_folder_2_es

That would be a quick and good solution, considering that I won’t be adding IVRs everyday.

To make something better, I could write a function that called the original for every directory that ends in _es, or more likely to support every language searching for the suffix.
 
Could someone please guide me to recompile after making the modifications?

I’d be happy to publish whatever I come up with; it doesn’t really seem to be too complicated but it has been a very long time since I compiled my last C program ☺

Your help will be greatly appreciated.

With best regards,

Max Glucksmann
Max Glucksmann
e-mail: mglucksmann at comtel-networks.com
Web: http://www.comtel-networks.com
 
Venezuela
Teléfono: (0500) MAXITEL – ext. 1011001
Fax: (0212) 953-0769
 
USA
Phone: 1 (877) 467-2877 – ext. 1011001
Fax: (954) 827-0990




More information about the asterisk-users mailing list