[asterisk-users] App VoiceMail msg_id is not unique

Steven Wheeler SWheeler at usinternet.com
Thu Sep 8 10:39:55 CDT 2016


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

For example:
[voicemail]
exten => s,1,VoiceMail(2520 at my-VOICEMAIL&252 at my-VOICEMAIL,s)

Will create these two records in the voicemessages table:
mysql> SELECT msg_id, msgnum, dir, context, macrocontext, callerid, origtime,duration, mailboxuser, mailboxcontext, flag FROM `voicemessages` WHERE msg_id='1473347378-00000005';
+---------------------+--------+-------------------------------------------------------+----------------------+--------------+------------------------+------------+----------+-------------+----------------+------+
| 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   |      |
+---------------------+--------+-------------------------------------------------------+----------------------+--------------+------------------------+------------+----------+-------------+----------------+------+
2 rows in set (0.00 sec)

This test was done with Asterisk 11.6-cert11 running on CentOS release 6.7 (Final) Linux 2.6.32-504.8.1.el6.x86_64

Is this expected behavior?
Steven Wheeler


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160908/d2926e34/attachment-0001.html>


More information about the asterisk-users mailing list