[Home]

Summary:ASTERISK-29639: app_voicemail: Voicemail message playback ignores tz setting
Reporter:Luke Escude (lukeescude)Labels:
Date Opened:2021-09-10 12:01:39Date Closed:2021-09-10 12:54:39
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail/ODBC
Versions:16.20.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hello! Our setup for Voicemail uses voicemail.conf for configuration, and ODBC storage for the backend.

Here is our voicemail.conf (abbreviated)

[zonemessages]
global=America/Chicago|'vm-received' Q 'digits/at' IMP
... more definitions

[voicemail-context]
391 => 1234,English Cancel VM,,,tz=America/Chicago|hidefromdir=yes|saycid=yes|envelope=yes|delete=no|
... more mailboxes


You can see "global" is set to America/Chicago, and tz on the box is also America/Chicago, but the playback is in UTC (the server default timezone).
Comments:By: Asterisk Team (asteriskteam) 2021-09-10 12:01:43.140-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Luke Escude (lukeescude) 2021-09-10 12:05:37.063-0500

Oh this is dumb, I think I'm realizing now that tz= points to a label defined in the [zonemessages] context.

you'd think it would just accept a standard UNIX tz, but oh well - I believe this is the issue, if someone wants to confirm that I'm just being dumb.

By: Sean Bright (seanbright) 2021-09-10 12:06:58.099-0500

{{global}} is not referenced anywhere in the {{app_voicemail.c}} code as far as I can see.

By: Sean Bright (seanbright) 2021-09-10 12:08:04.837-0500

What is the output of {{voicemail show zones}}?

By: Sean Bright (seanbright) 2021-09-10 12:09:06.197-0500

Your analysis is correct. This is a config issue.

By: Luke Escude (lukeescude) 2021-09-10 12:10:03.189-0500

Hey Sean, you're correct, that's one we set up years ago during the initial creation of our platform.

I realize now those definitions in zonemessages are actually just labels. I will close this ticket now.

For anyone else's reference: The tz= parameter must match a label that is defined in [zonemessages] with a proper timezone syntax that Asterisk expects. You cannot simply set tz to a true Unix tz name.