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


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to