]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3204
authorJeff Lenk <jeff@jefflenk.com>
Wed, 30 Mar 2011 16:20:57 +0000 (11:20 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 30 Mar 2011 16:21:52 +0000 (11:21 -0500)
src/mod/say/mod_say_ru/mod_say_ru.c

index f75ab3b3d856609e0d436443e1948f58189472ea..771f997f8ae6eae1c50e91889c0307f142a40eca 100644 (file)
@@ -496,10 +496,10 @@ static switch_status_t ru_say_time(switch_core_session_t *session, char *tosay,
                ru_say_count(session, buf, male_h, genitivus, args);
                say_file("time/h-year.wav");
        }
-       if (say_month || say_year || say_date || say_dow) {
-               say_file("time/at.wav");
-       }
        if (say_time) {
+               if (say_month || say_year || say_date || say_dow) {
+                       say_file("time/at.wav");
+               }
                switch_snprintf(buf, sizeof(buf), "%d:%d:%d", tm.tm_hour, tm.tm_min, tm.tm_sec);
                say_args->type = SST_TIME_MEASUREMENT;
                ru_say_time(session, buf, say_args, args);