mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
SIP-686 changed mod_say (en) to speak full dates when asked to speak a date in the future (rather than only weekday and time).
This commit is contained in:
parent
607247397c
commit
974cebd389
@ -306,6 +306,15 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw
|
|||||||
break;
|
break;
|
||||||
case SST_SHORT_DATE_TIME:
|
case SST_SHORT_DATE_TIME:
|
||||||
say_time = 1;
|
say_time = 1;
|
||||||
|
//Time is in the future
|
||||||
|
if ((tm.tm_year > tm_now.tm_year) ||
|
||||||
|
(tm.tm_year == tm_now.tm_year && tm.tm_mon > tm_now.tm_mon) ||
|
||||||
|
(tm.tm_year == tm_now.tm_year && tm.tm_mon == tm_now.tm_mon && tm.tm_mday > tm_now.tm_mday))
|
||||||
|
{
|
||||||
|
say_date = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//Time is today or earlier
|
||||||
if (tm.tm_year != tm_now.tm_year) {
|
if (tm.tm_year != tm_now.tm_year) {
|
||||||
say_date = 1;
|
say_date = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user