From ad455e5014cda4cb6b348c7a1555b2f4b231f15a Mon Sep 17 00:00:00 2001 From: Gang Zhuo Date: Wed, 24 Aug 2022 08:53:59 +0800 Subject: [PATCH] [mod_say_ja, mod_say_th] Fix the seconds for TIME_MEASUREMENT --- src/mod/say/mod_say_ja/mod_say_ja.c | 2 +- src/mod/say/mod_say_th/mod_say_th.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/say/mod_say_ja/mod_say_ja.c b/src/mod/say/mod_say_ja/mod_say_ja.c index 98f05898ad..14f02b3215 100644 --- a/src/mod/say/mod_say_ja/mod_say_ja.c +++ b/src/mod/say/mod_say_ja/mod_say_ja.c @@ -308,7 +308,7 @@ static switch_status_t ja_say_time(switch_core_session_t *session, char *tosay, } if (seconds) { - say_num(hours, SSM_PRONOUNCED); + say_num(seconds, SSM_PRONOUNCED); say_file("time/seconds.wav"); } else { if (hours || minutes) { diff --git a/src/mod/say/mod_say_th/mod_say_th.c b/src/mod/say/mod_say_th/mod_say_th.c index 18c40078da..563992feb3 100644 --- a/src/mod/say/mod_say_th/mod_say_th.c +++ b/src/mod/say/mod_say_th/mod_say_th.c @@ -308,7 +308,7 @@ static switch_status_t th_say_time(switch_core_session_t *session, char *tosay, if (seconds == 2) { say_file("time/2s.wav"); } else { - say_num(hours, SSM_PRONOUNCED); + say_num(seconds, SSM_PRONOUNCED); } say_file("time/seconds.wav"); } else {