Using GotoIfTime with Timezones in Asterisk

Asterisk PBXStarting from Asterisk 1.6 GotoIfTime application supports Timezone parameter:

[Syntax]
GotoIfTime(times,weekdays,mdays,months[,timezone]?[labeliftrue][:labeliffalse])

I setup a system that receives calls from people in different timezones so I need to use Timezone parameter in GotoIfTime Asterisk application. Surprisingly I could not find examples on Asterisk’s website so I had to search for some.

There can be two possible formats: you can specify timezone as a shift relative to the time the Asterisk operates in, or you can specify as a path to respective timezone file. Here are the examples:

GotoIfTime with Timezone relative

GotoIfTime with Timezone names

Check path to timezone files in your system. it may be different.

Good luck!

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com