Summary:ASTERISK-08188: When using IMAP storage, "voicemail show users" does not read message count from imap
Reporter:slimey (slimey)Labels:
Date Opened:2006-11-25 16:59:27.000-0600Date Closed:2006-11-27 12:12:24.000-0600
Versions:Frequency of
Environment:Attachments:( 0) voicemail_patch_20061125.txt
Description:handle_voicemail_show_users() always reads from the filesystem to look for the number of waiting messages, even when using IMAP storage (and it looks like it'll be broken for ODBC storage, too).

I'll see if I can come up with a patch...
Comments:By: slimey (slimey) 2006-11-25 17:20:14.000-0600

That was easier than I thought - there's already the inboxcount() function which does exactly what we want.

I did realise that this might not be a great idea if you've got a lot of voicemail users - it'll hammer your IMAP server or ODBC database server...

By: slimey (slimey) 2006-11-25 17:21:24.000-0600

BTW, I do have disclaimer on file, forgot to select that when submitting the bug.

By: Joshua C. Colp (jcolp) 2006-11-27 12:12:24.000-0600

Fixed in 1.2 as of revision 48053, 1.4 as of revision 48054, and trunk as of revision 48056. Thanks!