[Asterisk-Dev] Performance bottleneck in voicemail2 on nfsed huge mailboxes
Levent Guendogdu
l.guendogdu at feature-it.com
Sat Sep 27 08:20:00 MST 2003
Hi all,
there is a performance bottleneck in the voicemail2 code where it
determines the next message number for the voicemail by checking for
filename existance. On my K6/400 * box, which serves only a few
mailboxes, this takes up to two seconds. So, logically, because this
occurs after the BEEP has already been played to the caller, the first
two seconds of the message are being dropped.
I've seen the addition of mysql support in voicemail2. How about storing
the currenct msg num in mysql, too?
Or adding some sort of index file for a mail box which contains the last
msg num.
I see that, if you delete message in between, the current code would
simply "fill the gap" by numbering the next incoming voicemail to the
"first free" one.
To bring both worlds together I'd suggest switching to a voicemail
message id instead of msg num.
What do you people think?
Levon.
More information about the asterisk-dev
mailing list