Time and Temperature Overrides 2 min
Two of the most popular services on PhoneNet are our talking clock (791-1194 or just 1194 on-net) which was created as a replica of “George” the talking clock that Telstra ran for 66 years before shutting it down in 2019, and our weather service on 791-1196 (1196 on-net) where you can hear your local weather information and upcoming forecast.
By default callers to these services will hear the time and temperature for Sydney where we are based, and the only way to have localised information was to either request an override for an entire office code, or add individual lines to our directory.
If you were calling from one of our interconnected Community Networks you were stuck hearing the information for Sydney. While it was still possible for us to override this based on the caller ID, we stopped doing this a while ago as it was too time intensive especially with some requesting changes almost every day.
As of today that is no longer the case, and if you’re calling PhoneNet over IAX whether that be directly or from another community network you may now set the caller’s timezone and/or location information in your own dialplan whether that be for your entire switch or individual extensions and pass that over to us to receive your local time and weather information when calling our service.
Timezone
The talking clock uses a variable CALLER_TZ to announce your local time and should be set to a valid Linux or PHP timezone, for example:
Set(IAXVAR(CALLER_TZ)=Australia/Sydney)Set(IAXVAR(CALLER_TZ)=Europe/London)Set(IAXVAR(CALLER_TZ)=America/New_York)
If the value isn’t set to a valid timezone, it will default to Sydney.
Location
The weather service uses a variable CALLER_LOCATION to provide your local weather information and accepts a latitude and longitude, major city names, and post/zip codes from the US, Canada, and UK with Australia coming soon.
For example:
Set(IAXVAR(CALLER_LOCATION)=-33.86785,151.20732)Set(IAXVAR(CALLER_LOCATION)=sydney)Set(IAXVAR(CALLER_LOCATION)=SW1)
The time and temperature line (791-1195) will say the time associated with the weather report and does not use the CALLER_TZ value.
Caveats
These variables take precedence over any pre-configured location information whether that be through an office code data update, directory listing, or manual override we may have put in for you previously. If you’re connected directly to PhoneNet you may still submit default data for your office code(s) or individual lines, but you also now have the flexibility to override it at your leisure.
Closing Remarks
This has been one of the most requested enhancements since these services were launched so we hope it’s useful to you. We’re also thinking of ways to make this available for SIP services and will post an update when more information is available.