|Summary:||ASTERISK-08579: [patch] imap storage does not work in conjunction with realtime voicemail|
|Reporter:||Ben Smithurst (bsmithurst)||Labels:|
|Date Opened:||2007-01-15 06:53:45.000-0600||Date Closed:||2007-01-16 16:55:11.000-0600|
|Environment:||Attachments:||( 0) app_voicemail.c.patch|
( 1) vmdb.sql.patch
|Description:||If you store your users in the RealTime module, the IMAP mm_login function cannot find the IMAP password, and so the login always fails. This is because mm_login just traverses the 'users' list.|
The attached patch modifies mm_login to call a new find_user_realtime_imapuser function which finds the user based on the imapuser, and there is also a patch to add imapuser and imappassword fields to the SQL to create the users table.
This patch is against 1.4.0, not the trunk, apologies for that, if needed I can probably modify it to work with trunk though I cannot guarantee I'll be able to do that soon.
****** ADDITIONAL INFORMATION ******
Thanks to Ray Jackson for some ideas for this code.
|Comments:||By: Jason Parker (jparker) 2007-01-16 16:55:10.000-0600|
Fixed in svn branch 1.4 and trunk in revisions 51167 and 51168.
Please note that I did not add the index on imapuser. I'm not entirely sure whether that is database specific syntax or not. If you can tell me otherwise, I'll be glad to put it in (you can reopen this bug, or contact a bug marshal in #asterisk-bugs on FreeNode IRC)