Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update formatting

timezone

string Sets the timezone for this particular call. Can be used, e.g., to set the timezone for a caller who is checking his/her voicemail. The value is expressed in Linux timezone format (ex. America/New_York -- see /usr/share/zoneinfo/zone.tab for the standard list of Linux timezones).

Note that (warning) this channel variable is only respected by the phrase layer -- ie, if you're using the 'say' application to announce times, this will work fine.variable must actually be set before the comparison, so either set it inline, transfer, or set it in the user directory.

See also: Time of Day and Holiday Routing.

Usage

You can set the time zone globally for Freeswitch in /conf/vars.xml

Code Block
languagexml
themeConfluence
<X-PRE-PROCESS cmd="set" data="timezone=America/Toronto"/>

Specify the timezone in the dialplan:

Code Block
languagexml
themeConfluence
<action application="set" data="timezone=Asia/Seoul"/>
Code Block
languagexml
themeConfluence
<action application="set" data="timezone=GMT0"/>
Code Block
languagexml
themeConfluence
<action application="set" data="timezone=America/New_York"/>

In the directory:

Code Block
languagexml
themeConfluence
<param name="timezone" value="America/New_York"/>