[Home]

Summary:ASTERISK-26361: App VoiceMail msg_id is not unique
Reporter:Steven Wheeler (swheeler)Labels:
Date Opened:2016-09-12 14:14:06Date Closed:2020-01-14 11:14:10.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail/ODBC
Versions:11.6.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:CentOS release 6.7 (Final) Linux 2.6.32-504.8.1.el6.x86_64Attachments:
Description:I posted this to the mailing list last week, but didn't receive any feedback.

When multiple mailboxes are passed into the VoiceMail application the records created in the database share the same msg_id.

For example:
{code:none}
[voicemail]
exten => s,1,VoiceMail(2520@my-VOICEMAIL&252@my-VOICEMAIL,s)
{code}

Will create these two records in the voicemessages table:
{code:sql}
SELECT msg_id, msgnum, dir, context, macrocontext, callerid, origtime,duration, mailboxuser, mailboxcontext, flag FROM `voicemessages` WHERE msg_id='1473347378-00000005';
{code}
| msg_id | msgnum | dir | context | macrocontext | callerid | origtime | duration | mailboxuser | mailboxcontext | flag |
| 1473347378-00000005 | 4 | /var/spool/asterisk/voicemail/my-VOICEMAIL/2520/INBOX | voicemail_detect_fax |  | "Steven Wheeler" <252> | 1473347378 | 3 | 2520 | my-VOICEMAIL |  |  
| 1473347378-00000005 |      2 | /var/spool/asterisk/voicemail/my-VOICEMAIL/252/INBOX  | voicemail_detect_fax |              | "Steven Wheeler" <252> | 1473347378 | 3        | 252         | my-VOICEMAIL   |      |

Is this expected behavior?
Comments:By: Asterisk Team (asteriskteam) 2016-09-12 14:14:07.807-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.

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

By: Richard Mudgett (rmudgett) 2016-09-12 15:49:46.826-0500

It appears the bug you have submitted is against a rather old version of a supported branch of Asterisk. There have been many issues fixed between the version you are using and the current version of your branch. Please test with the latest version in your Asterisk branch and report whether the issue persists.

Please see the Asterisk Versions [1] wiki page for info on which versions of Asterisk are supported.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

Many fixes to voicemail have happened since your version.  Some of them were related to message ids.

By: Steven Wheeler (swheeler) 2016-09-12 16:19:24.542-0500

I just reproduced this on Asterisk certified/11.6-cert15.

By: Richard Mudgett (rmudgett) 2016-09-12 17:34:04.974-0500

It won't get fixed there unless you have a Digium SLA [1].  If you had one you should be going through Digium tech support.

[1] https://www.digium.com/products/asterisk/certified-asterisk

By: Asterisk Team (asteriskteam) 2016-09-27 12:00:00.895-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines