SWheeler at usinternet... Guest
|
Posted: Thu Sep 08, 2016 10:40 am Post subject: [asterisk-users] App VoiceMail msg_id is not unique |
|
|
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@my-VOICEMAIL&252@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 |
|