[Asterisk-Dev] Performance bottleneck in voicemail2 on nfsed huge mailboxes

Levent Guendogdu l.guendogdu at feature-it.com
Sat Sep 27 08:51:59 MST 2003


On Sat, 2003-09-27 at 17:43, Tilghman Lesher wrote:
> On Saturday 27 September 2003 10:33, Levent Guendogdu wrote:
> > ... another "workaround" just popped into my mind, which would be
> > simpler to implement IMHO:
> >
> > after playing the beep, record the voicemail audio to a (some) tmp
> > file(s), like
> >
> > /tmp/<currentsystemtime>.gsm
> >
> > After hangup, look for the next msg num and save the meta file and
> > voicemail.
> >
> > Sounds good to me for a first step, if no one objects, I'll patch
> > this.
> 
> Actually, there's a problem.  Should two people start a message at
> exactly the same second, you'll have a filename conflict.  Try using
> mkstemp(3) instead.

Sure thing ;) 

Lev.





More information about the asterisk-dev mailing list