100{
102 const char *lang;
107 );
108
111 return 0;
112 }
113
115
119
120 if (!strcmp(
type,
"alpha")) {
122 }
else if (!strcmp(
type,
"phonetic")) {
124 }
else if (!strcmp(
type,
"digits")) {
126 }
else if (!strcmp(
type,
"number")) {
127 int num;
130 } else {
132 }
133 }
else if (!strcmp(
type,
"ordinal")) {
134 int num;
137 } else {
139 }
140 }
else if (!strcmp(
type,
"money")) {
142 } else {
144 }
145
146 if (!filenames) {
147 return -1;
148 }
149
151 snprintf(
buf,
len,
"%s", files);
153
154 return 0;
155}
const char * ast_channel_language(const struct ast_channel *chan)
int ast_str_to_int(const char *str, int *res)
Convert the given string to a signed integer.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
struct ast_str * ast_get_ordinal_str(int num, const char *lang)
Returns an ast_str of files for SayOrdinal playback.
struct ast_str * ast_get_character_str(const char *str, const char *lang, enum ast_say_case_sensitivity sensitivity)
Returns an ast_str of files for SayAlpha playback.
struct ast_str * ast_get_number_str(int num, const char *lang)
Returns an ast_str of files for SayNumber playback.
struct ast_str * ast_get_phonetic_str(const char *str, const char *lang)
Returns an ast_str of files for SayPhonetic playback.
struct ast_str * ast_get_money_str(const char *str, const char *lang)
Returns an ast_str of files for SayMoney playback.
struct ast_str * ast_get_digit_str(const char *str, const char *lang)
Returns an ast_str of files for SayDigits playback.
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Support for dynamic strings.