Re: [asterisk-users] Voicemail post-processing

2009-02-06 Thread Adam Robins
Thanks. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: Thursday, February 05, 2009 6:12 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Voicemail post-processing On Thu

[asterisk-users] Voicemail post-processing

2009-02-05 Thread Adam Robins
I have an application where a caller leaves a voicemail message and then I need to gpg encrypt the file before emailing it. I wrote a perl script to do this, which is executed after a message is left, using the externnotify feature in voicemail.conf. My script has no knowledge of the name of the

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Philipp Kempgen
Adam Robins schrieb: I have an application where a caller leaves a voicemail message and then I need to gpg encrypt the file before emailing it. I wrote a perl script to do this, which is executed after a message is left, using the externnotify feature in voicemail.conf. My script has no

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Alex Balashov
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

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Alex Balashov
Another option is to have your post-processing script that watches the new voicemail files check the output of 'lsof' to see if the asterisk process is currently writing to any given file, and only e-mail those that do not have open file descriptors on them. -- Alex Balashov Evariste Systems

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Paul Chambers
Adam Robins wrote: I have an application where a caller leaves a voicemail message and then I need to gpg encrypt the file before emailing it. I wrote a perl script to do this, which is executed after a message is left, using the externnotify feature in voicemail.conf. My script has no

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Philipp Kempgen
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.

Re: [asterisk-users] Voicemail post-processing

2009-02-05 Thread Tzafrir Cohen
On Thu, Feb 05, 2009 at 05:04:11PM -0500, Adam Robins wrote: I have an application where a caller leaves a voicemail message and then I need to gpg encrypt the file before emailing it. I wrote a perl script to do this, which is executed after a message is left, using the externnotify feature