From 87e3d25515a16be80e6455d78c428b3d88e43aa0 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Tue, 24 Dec 2013 10:36:45 -0600 Subject: [PATCH] FS-6052 --resolve --- src/mod/say/mod_say_ru/mod_say_ru.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mod/say/mod_say_ru/mod_say_ru.c b/src/mod/say/mod_say_ru/mod_say_ru.c index 826daa747a..843bb8b216 100644 --- a/src/mod/say/mod_say_ru/mod_say_ru.c +++ b/src/mod/say/mod_say_ru/mod_say_ru.c @@ -223,6 +223,20 @@ static switch_status_t ru_say_general_count(switch_say_file_handle_t *sh, char * switch_status_t status; cases_t cases; //падеж say_gender_t gender; //тип произношения + char sbuf[128] = ""; + + if (say_args->method == SSM_ITERATED) { + if ((tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1))) { + char *p; + for (p = tosay; p && *p; p++) { + switch_say_file(sh, "digits/%c", *p); + } + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n"); + return SWITCH_STATUS_GENERR; + } + return SWITCH_STATUS_SUCCESS; + } switch (say_args->type) { case SST_MESSAGES: