[Freeswitch-users] mod_say or strftime problems?
Yuriy Ivzhenko
yivzhenko at mksat.net
Thu Apr 22 05:12:18 PDT 2010
I have same problem with mod_say_ru if timezone is set to
<action application="set" data="timezone=Europe/Kiev"/>
And i don't understand why "tm.tm_hour + 1"
In source code
if (say_time) {
switch_snprintf(buf, sizeof(buf), "%d:%d:%d", tm.tm_hour + 1,
tm.tm_min, tm.tm_sec);
say_args->type = SST_TIME_MEASUREMENT;
ru_say_time(session, buf, say_args, args);
As temporary resolution i just set different timezone :)
On Wednesday 21 April 2010 17:30:18 boris at tagnet.ru wrote:
> Hello!
>
> I have an extension for the current date/time:
> <extension name="SayTime">
> <condition field="destination_number" expression="^9000$">
> <action application="answer"/>
> <action application="say" data="ru current_date_time
> pronounced $strftime(%s)"/>
> <action application="sleep" data="1000"/>
> <action application="hangup"/>
> </condition>
> </extension>
>
> The extension works fine, but time is +1 hour of current time. For example
> current time is 16:00, the extension says 17:00. I use FreeSwitch 1.0.6
> (from release tarball), CentOS 5.4, ntp synched, timezone YEKT (summer
> time in effect now, so tz=YEKST). So, my question is - something wrong
> with my extension configuration or this is bug in mod_say_ru or may be
> strfmt?
>
> With respect,
> Boris
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
More information about the FreeSWITCH-users
mailing list