Hello Juha,

I just had a look at the code which takes the prompts for voicemail application from DB, and it seems to me that on every call the local file in /tmp is overwritten. Is that how it was meant to be? If the file is played from at that very moment, I am not sure how filesystem behaves in that case; the prompt might change right in the middle of it playing if the prompt is changed in DB.

If it is read from DB each time anyway, I would suggest using a tmpfile(3), write the audio from DB there, and pass it to the AnswerMachineDialog as the greeting_fp. It will then get freed on close(2) which AmAudioFile does when it finished playing.

Stefan

--
Stefan Sayer
VoIP Services

[email protected]
www.iptego.com

IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to