app_voicemail: Improve msg_id handling
authorJonathan Rose <jrose@digium.com>
Fri, 18 Jan 2013 18:25:56 +0000 (18:25 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 18 Jan 2013 18:25:56 +0000 (18:25 +0000)
commit0fd34b8c0a01827880555239354cca8746782c83
tree2dea68b9e8a50a7b07bd7de6155c7405439c5b09
parenta0a1fab4a1c9a5225a72d0118fea854d94c9d7ff
app_voicemail: Improve msg_id handling

app_voicemail will no longer issue error messages when it retrieves an msg_id
with a NULL value from realtime and will instead simply populate the msg_id
field with a newly generated msg_id. In addition, this patch changes the way
msg_ids are generated to eliminate certain causes of duplicate IDs appearing
within a single system. In addition, when messages are copied, they will now
receive a new msg_id.

(closes issue ASTERISK-20717)
Reported by: Alec Davis
Review: https://reviewboard.asterisk.org/r/2220/
........

Merged revisions 379460 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@379461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c