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

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat Sep 27 08:43:10 MST 2003


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.

-Tilghman




More information about the asterisk-dev mailing list