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. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20081026/800b0c4d/attachment.pgp
Hello is my idea or this is a bug? The thing is that I have in my
asterisk.conf this:
[directories]
astetcdir => /usr/local/etc/asterisk
astmoddir => /usr/local/lib/asterisk/modules
astvarlibdir => /usr/local/share/asterisk
astdatadir => /usr/local/share/asterisk
astagidir => /usr/local/share/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
where the dir of agi-bin is in /usr/local/share/asterisk/agi-bin and inside
agi-bin directory I have a file called a2billing.php and in my
extesions.conf i have:
[a2billing]
exten => 11111,1,answer
exten => 11111,2,Wait,2
exten => 11111,3,DeadAgi,a2billing.php
exten => 11111,4,Wait,2
exten => 11111,5,Hangup
and then in my softphone I call to 11111 the asterisk log say this:
-- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php
== a2billing.php: Failed to execute
'/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or
directory
-- Executing [11111 at default:4] Wait("SIP/abel-28c18000",
"2") in new
stack
== Spawn extension (default, 11111, 4) exited non-zero on
'SIP/abel-28c18000'
So, i change the file a2billing.php to another place and I change this new
place in asterisk.conf:
[directories]
astetcdir => /usr/local/etc/asterisk
astmoddir => /usr/local/lib/asterisk/modules
astvarlibdir => /usr/local/share/asterisk
astdatadir => /usr/local/share/asterisk
astagidir => /new/place/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
I reload the asterisk server and the asterisk log still say me the same
place before:
-- Launched AGI Script /usr/local/share/asterisk/agi-bin/a2billing.php
== a2billing.php: Failed to execute
'/usr/local/share/asterisk/agi-bin/a2billing.php': No such file or
directory
-- Executing [11111 at default:4] Wait("SIP/abel-28c18000",
"2") in new
stack
== Spawn extension (default, 11111, 4) exited non-zero on
'SIP/abel-28c18000'
Why is that? Any suggest?
Thanks for all,
Abel
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
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