func_sayfiles: Retrieve say file names

Up until now, all of the logic used to translate
arguments to the Say applications has been
directly coupled to playback, preventing other
modules from using this logic.

This refactors code in say.c and adds a SAYFILES
function that can be used to retrieve the file
names that would be played. These can then be
used in other applications or for other purposes.

Additionally, a SayMoney application and a SayOrdinal
application are added. Both SayOrdinal and SayNumber
are also expanded to support integers greater than
one billion.

ASTERISK-29531

Change-Id: If9718c89353b8e153d84add3cc4637b79585db19
This commit is contained in:
Naveen Albert
2021-07-26 17:46:44 +00:00
committed by George Joseph
parent 7df69633cf
commit ddf6299b8d
6 changed files with 1056 additions and 95 deletions

View File

@@ -8257,6 +8257,12 @@ int ast_say_number(struct ast_channel *chan, int num,
return ast_say_number_full(chan, num, ints, language, options, -1, -1);
}
int ast_say_ordinal(struct ast_channel *chan, int num,
const char *ints, const char *language, const char *options)
{
return ast_say_ordinal_full(chan, num, ints, language, options, -1, -1);
}
int ast_say_enumeration(struct ast_channel *chan, int num,
const char *ints, const char *language, const char *options)
{
@@ -8275,6 +8281,12 @@ int ast_say_digit_str(struct ast_channel *chan, const char *str,
return ast_say_digit_str_full(chan, str, ints, lang, -1, -1);
}
int ast_say_money_str(struct ast_channel *chan, const char *str,
const char *ints, const char *lang)
{
return ast_say_money_str_full(chan, str, ints, lang, -1, -1);
}
int ast_say_character_str(struct ast_channel *chan, const char *str,
const char *ints, const char *lang, enum ast_say_case_sensitivity sensitivity)
{