Hello,
does anyone know how to get the say number (say.c) agi "application"
to work in french [assuming that I have the French voice files]
I have looked in the code and about a 1/3 of the way thru there is :
/*--- ast_say_number_full: call language-specific functions */
/* Called from AGI */
int ast_say_number_full(struct ast_channel *chan, int num, char *ints,
char *language, char *options, int audiofd, int ctrlfd)
{
if (!strcasecmp(language,"en") ) { /* English syntax */
return(ast_say_number_full_en(chan, num, ints, language,
audiofd, ctrlfd));
} else if (!strcasecmp(language, "da") ) { /* Danish
syntax */
return(ast_say_number_full_da(chan, num, ints, language,
options, audiofd, ctrlfd));
} else if (!strcasecmp(language, "de") ) { /* German
syntax */
return(ast_say_number_full_de(chan, num, ints, language,
options, audiofd, ctrlfd));
} else if (!strcasecmp(language, "es") ||
!strcasecmp(language, "mx")) { /* Spanish syntax */
return(ast_say_number_full_es(chan, num, ints, language,
options, audiofd, ctrlfd));
} else if (!strcasecmp(language, "fr") ) { /* French
syntax */
and then further on there is logic for french numbers.
does anyone know the syntax as looking on the code / google / wiki
gives me no ideas.
Thanks
David
On Jun 27, 2005, at 1:04 PM, David John Walsh wrote:> Hello, > > does anyone know how to get the say number (say.c) agi "application" > to work in french [assuming that I have the French voice files] >Maybe Harry knows but hasn't documented it yet. Sorry, couldn't resist :-)
On Monday 27 June 2005 23:04, David John Walsh wrote:> Hello, > > does anyone know how to get the say number (say.c) agi "application" > to work in french [assuming that I have the French voice files] > I have looked in the code and about a 1/3 of the way thru there is : > } else if (!strcasecmp(language, "fr") ) { /* French > syntax */ > > and then further on there is logic for french numbers. > > does anyone know the syntax as looking on the code / google / wiki > gives me no ideas.Have you tried setting the channel language to "fr" (language=fr in the device configuration, or SetLanguage(fr) in the extensions.conf file)? This seems to be all that is needed.
it was the second one i needed - thank you. I only needed the numbers in french on one b number and make it that the number could be dialled from any extension (which is why option a was unsuitable. thanks again. On 28/06/05, Arvanitis Kostas <arvanit@ellemedia.com> wrote:> On Monday 27 June 2005 23:04, David John Walsh wrote: > > Hello, > > > > does anyone know how to get the say number (say.c) agi "application" > > to work in french [assuming that I have the French voice files] > > I have looked in the code and about a 1/3 of the way thru there is : > > } else if (!strcasecmp(language, "fr") ) { /* French > > syntax */ > > > > and then further on there is logic for french numbers. > > > > does anyone know the syntax as looking on the code / google / wiki > > gives me no ideas. > > Have you tried setting the channel language to "fr" (language=fr in the > device configuration, or SetLanguage(fr) in the extensions.conf file)? > > This seems to be all that is needed. > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >