Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-4741

timezone doesn't seem to work in time based conditions (tod_tz_offset and tz-offset)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: mod_dialplan_xml
    • Labels:
      None
    • Environment:
      CentOS 6.2 x86_64
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      a92fb01
    • GIT Master Revision hash::
      yes

      Description

      I try both "tz-offset" (per tag) and "tod_tz_offset" and it doesn't seem to have any effect can someone please confirm that I'm doing the right thing and is someone else using it successfully?
      Here is my test dialplan:
        <section name="dialplan" description="Regex/XML Dialplan">
          <context name="public">
            <extension name="test">
              <condition break="never">
                <action application="set" data="ringback=$${us-ring}"/>
                <action application="set" data="timezone=America/New_York" inline="true"/>
                <action application="set" data="tod_tz_offset=-4" inline="true"/>
                <action application="log" data="CRIT ${strftime_tz(America/New_York %b %d %Y %H:%M:%S)}"/>
              </condition>
              <condition tz-offset="-4" mon="10" mday="21" minute-of-day="900-1200" break="on-true">
                <action application="transfer" data="30 XML default" />
              </condition>
            </extension>
          </context>
        </section>
      I see the log logging the correct time, however the second condition is never getting matched based on the tod_tz_offset variable or tz-offset tag.
      according to the wiki (http://wiki.freeswitch.org/wiki/Tod#Time_zone_manipulation) this feature needs testing, so I'm not sure if this ever worked.

        Attachments

          Activity

            People

            • Assignee:
              anthm Anthony Minessale II
              Reporter:
              abaci64 abaci
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: