FreeSWITCH          




Page tree
Skip to end of metadata
Go to start of metadata

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).

(warning) this 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

Specify the timezone in the dialplan:

In the directory:

  • No labels

1 Comment

  1. In order to get the timezone directory variable in a call, I had to set it as a variable in the directory (not as a param), which makes sense (see: Routing with directory parameters). Not sure if this example is a typo or maybe for a different use case.

    I did this in my directory to test against the variable in the dialplan: