[asterisk-users] hammering imap vmail storage
I've configured asterisk 1.4 to use imap storage for voice-mail and while I'm happy with it generally speaking it really seem to hammer the IMAP server. It appear, from the IMAP server logs that it's polling the imap server every *second* for mailbox updates for the users' voice-mail folders. Is it really necessary to do this once a second? Is this tunable anywhere? Thanx, b. signature.asc Description: This is a digitally signed message part ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hammering imap vmail storage
I found this in the sample voicemail.conf: ;pollmailboxes=no; If mailboxes are changed anywhere outside of app_voicemail, ;; then this option must be enabled for MWI to work. This ;; enables polling mailboxes for changes. Normally, it will ;; expect that changes are only made when someone called in ;; to one of the voicemail applications. ;; Examples of situations that would require this option are ;; web interfaces to voicemail or an email client in the case ;; of using IMAP storage. ; ;pollfreq=30 ; If the "pollmailboxes" option is enabled, this option ;; sets the polling frequency. The default is once every ;; 30 seconds. Maybe that will help? Brendan Martens On Oct 26, 2008, at 12:24 AM, Brian J. Murrell wrote: > I've configured asterisk 1.4 to use imap storage for voice-mail and > while I'm happy with it generally speaking it really seem to hammer > the > IMAP server. It appear, from the IMAP server logs that it's polling > the imap server every *second* for mailbox updates for the users' > voice-mail folders. > > Is it really necessary to do this once a second? Is this tunable > anywhere? > > Thanx, > b. > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hammering imap vmail storage
On Mon, 2008-10-27 at 10:11 -0400, Brendan Martens wrote: > I found this in the sample voicemail.conf: > > ;pollmailboxes=no; If mailboxes are changed anywhere outside of > app_voicemail, > ;; then this option must be enabled for MWI to > work. This > ;; enables polling mailboxes for changes. > Normally, it will > ;; expect that changes are only made when someone > called in > ;; to one of the voicemail applications. > ;; Examples of situations that would require > this option are > ;; web interfaces to voicemail or an email client > in the case > ;; of using IMAP storage. > ; > ;pollfreq=30 ; If the "pollmailboxes" option is enabled, > this option > ;; sets the polling frequency. The default is > once every > ;; 30 seconds. > > > Maybe that will help? I did see that in my research but looking at the app_voicemail.c in my source pool, 1.4.17 doesn't seem to have such options. :-( I have not done a bisection yet to find which release it was added. Maybe it was added in the 1.6 tree given that it was in the 1.6.1 source I found it. Thanx for taking the time to find that and respond though. I appreciate the effort. b. signature.asc Description: This is a digitally signed message part ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hammering imap vmail storage
Brian J. Murrell wrote: > I've configured asterisk 1.4 to use imap storage for voice-mail and > while I'm happy with it generally speaking it really seem to hammer the > IMAP server. It appear, from the IMAP server logs that it's polling > the imap server every *second* for mailbox updates for the users' > voice-mail folders. > > Is it really necessary to do this once a second? Is this tunable > anywhere? > > Thanx, > b. The behavior you are seeing is most likely due to SIP's MWI behavior in Asterisk 1.4. The way it works is to poll the mailboxes every so often to see if new messages are available. This can be controlled a few ways. 1. If you don't want MWI for your SIP phones at all, you can disable it by not specifying a mailbox= argument for your peers in sip.conf 2. If you want to make MWI checks more infrequent, you can change the checkmwi option in sip.conf to be something other than the default. checkmwi defaults to checking the server for new messages every 10 seconds. If you set this to be something like 60, this should ease the load somewhat. Mark Michelson > > > > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hammering imap vmail storage
On Mon, 2008-10-27 at 11:13 -0500, Mark Michelson wrote: > > The behavior you are seeing is most likely due to SIP's MWI behavior in > Asterisk > 1.4. The way it works is to poll the mailboxes every so often to see if new > messages are available. Yeah, that sounds like it. > 2. If you want to make MWI checks more infrequent, you can change the > checkmwi > option in sip.conf to be something other than the default. checkmwi defaults > to > checking the server for new messages every 10 seconds. If you set this to be > something like 60, this should ease the load somewhat. Sweet. This seems to have done the trick! I guess ultimately some caching between the IMAP server and the SIP MWI would be nice. Probably that's what the poll* features of newer app_voicemail's do. Thanx for the suggestion! b. signature.asc Description: This is a digitally signed message part ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users