Bryan Boatright
2005-Mar-15 06:03 UTC
[Asterisk-Users] How to determine the voicemail file name for an AGI script
I've read several of the Wiki sections on Voicemail and "Asterisk variables" but could not find an obvious answer to this question. I would like to run a script that post-processes the voicemail after the Voicemail application returns (with AGI or DeadAGI), but I cannot figure out how to easily determine the name of the file written by the Voicemail application. Does anyone know of an efficient way to access that information from within the dialplan so that it may be passed to the AGI script? Thanks for your help, Bryan
Steven Critchfield
2005-Mar-15 08:54 UTC
[Asterisk-Users] How to determine the voicemail file name for an AGI script
On Tue, 2005-03-15 at 07:03 -0600, Bryan Boatright wrote:> I've read several of the Wiki sections on Voicemail and "Asterisk > variables" but could not find an obvious answer to this question. > > I would like to run a script that post-processes the voicemail after the > Voicemail application returns (with AGI or DeadAGI), but I cannot figure > out how to easily determine the name of the file written by the > Voicemail application. Does anyone know of an efficient way to access > that information from within the dialplan so that it may be passed to > the AGI script?Well, you could store the extension/context of the voicemail box that you sent the call to. From there it is just a matter of looking in the appropriate directory and dealing with the way voicemail write the information out. -- Steven Critchfield <critch@basesys.com>
Trevor Peirce
2005-Mar-15 11:20 UTC
[Asterisk-Users] How to determine the voicemail file name for an AGI script
Bryan Boatright wrote:> I would like to run a script that post-processes the voicemail after > the Voicemail application returns (with AGI or DeadAGI), but I cannot > figure out how to easily determine the name of the file written by the > Voicemail application. Does anyone know of an efficient way to access > that information from within the dialplan so that it may be passed to > the AGI script? >I was briefly playing with externnotify in voicemail.conf trying to do some processing on new VMs. It seems only the number of new & old messages are sent, not the filename or message number of the newly deposited mail. Perhaps a patch to the VM app could provide the information we both are seeking.