Merged revisions 312211 via svnmerge from
authorAlec L Davis <sivad.a@paradise.net.nz>
Fri, 1 Apr 2011 09:08:39 +0000 (09:08 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Fri, 1 Apr 2011 09:08:39 +0000 (09:08 +0000)
commite59a051c3e94820f6b31f3781707f9e49506db8a
tree1a9f7a6bb75f8779155a2b3901b9a1671846d5e8
parentd07fb85bb8c88d5b58d80e1906099912a40b7686
Merged revisions 312211 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r312211 | alecdavis | 2011-04-01 22:03:11 +1300 (Fri, 01 Apr 2011) | 36 lines

  Merged revisions 312210 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ................
    r312210 | alecdavis | 2011-04-01 21:47:29 +1300 (Fri, 01 Apr 2011) | 29 lines

    Merged revisions 312174 via svnmerge from
    https://origsvn.digium.com/svn/asterisk/branches/1.4

    ........
      r312174 | alecdavis | 2011-04-01 21:29:49 +1300 (Fri, 01 Apr 2011) | 23 lines

      voicemail: get real last_message_index and count_messages, ODBC resequence

      change last_message_index to read the max msgnum stored in the database
      change count_messages to actually count the number of messages.

      last_message_index change:
        This fixed overwriting of the last message if msgnum=0 was missing.
        Previously every incoming message would overwrite msgnum=1.
      count_messages change:
        allows us to detect when requencing is required in opneA_mailbox.
      resequence enabled for ODBC storage:
        Assists with fixing up corrupt databases with gaps, but only when
        a user actively opens there mailboxes.

      (closes issue #18692,#18582,#19032)
      Reported by: elguero
      Patches:
            based on odbc_resequence_mailbox2.1.diff uploaded by elguero (license 37)
      Tested by: elguero, nivek, alecdavis

      Review: https://reviewboard.asterisk.org/r/1153/
    ........
  ................
................

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