提交 d4fd8acc authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1684 in FS/freeswitch from…

Merge pull request #1684 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11636-fix-say-date to master

* commit '6b2ad1d4':
  FS-11636: [mod_say_de] fix SST_CURRENT_DATE_TIME FS-11636: [mod_say_en] fix SST_CURRENT_DATE_TIME
...@@ -384,6 +384,11 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay, ...@@ -384,6 +384,11 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay,
break; break;
} }
if (say_date) {
say_dow = say_day = say_month = say_year = 1;
say_today = say_yesterday = 0;
}
if (say_today) { if (say_today) {
say_file("time/today.wav"); say_file("time/today.wav");
} }
...@@ -408,11 +413,6 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay, ...@@ -408,11 +413,6 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay,
say_num(tm.tm_year + 1900, SSM_PRONOUNCED_YEAR); say_num(tm.tm_year + 1900, SSM_PRONOUNCED_YEAR);
} }
if (say_date) {
say_dow = say_day = say_month = say_year = 1;
say_today = say_yesterday = 0;
}
if (say_time) { if (say_time) {
if (say_date || say_today || say_yesterday || say_dow) { if (say_date || say_today || say_yesterday || say_dow) {
say_file("time/at.wav"); say_file("time/at.wav");
......
...@@ -355,6 +355,11 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw ...@@ -355,6 +355,11 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw
break; break;
} }
if (say_date) {
say_year = say_month = say_day = say_dow = 1;
say_today = say_yesterday = 0;
}
if (say_today) { if (say_today) {
switch_say_file(sh, "time/today"); switch_say_file(sh, "time/today");
} }
...@@ -364,12 +369,6 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw ...@@ -364,12 +369,6 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw
if (say_dow) { if (say_dow) {
switch_say_file(sh, "time/day-%d", tm.tm_wday); switch_say_file(sh, "time/day-%d", tm.tm_wday);
} }
if (say_date) {
say_year = say_month = say_day = say_dow = 1;
say_today = say_yesterday = 0;
}
if (say_month) { if (say_month) {
switch_say_file(sh, "time/mon-%d", tm.tm_mon); switch_say_file(sh, "time/mon-%d", tm.tm_mon);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论