[asterisk-users] Voicemail post-processing

Philipp Kempgen philipp.kempgen at amooma.de
Thu Feb 5 16:58:59 CST 2009


Alex Balashov schrieb:
> I would replace the call to Voicemail() with your own recording and 
> generate a unique filename with a call to a script.  Use Record(). 
> Then, when the message is done, call another script to rename the file 
> to something that has a word like "COMPLETE" in the filename.
> 
> So, for example, assign recordings a name like VM-132456-timestamp.ulaw. 
>   Then, when the recording is done, rename VM-123456-timestamp.ulaw to 
> VM-123456-timestamp-COMPLETE.ulaw.  Have your script only catch that.
> 
> Be sure to catch a premature hangup event (while Record() is happening) 
> with the 'h' extension.
> 
> Then call another script to attach and email the file to the right place.
> 
> It's sort of a kludgy hack, but it gets you what you want.

Good idea.
Just make sure you don't leave incomplete recordings.
E.g. use the find command to find incomplete files older than an
hour and rm them.


   Philipp Kempgen

-- 
AMOOCON 2009, May 4-5, Rostock / Germany   ->  http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 



More information about the asterisk-users mailing list