[asterisk-users] Grab voicemail WAV file when done

Leif Madsen leif.madsen at asteriskdocs.org
Wed Jul 28 06:38:08 CDT 2010


On 10-07-27 10:02 PM, Michelle Dupuis wrote:
>>> From: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] On Behalf Of Leif Madsen [leif.madsen at asteriskdocs.org]
>>> Sent: Tuesday, July 27, 2010 9:22 PM
>>> To: Asterisk Users List
>>> Subject: Re: [asterisk-users] Grab voicemail WAV file when done
>>>
>>> On 10-07-27 08:38 PM, Michelle Dupuis wrote:
>>> I need to grab the voicemail WAV file once the voicemail command is done.  Is there a hook to be notified that voicemail is done, and get the name of the recorded file?
>>
>> Look at the 'externnotify' option to voicemail.conf.
 >
 > The problem is that I need to catch the filename in the dialplan, since I
 > will be recording several other files and concatenating them with SOX.

Per doc/tex/channelvariables.tex (in 1.8.0-beta1 at least)

\subsection{The VoiceMail() application}
\begin{verbatim}
${VM_CATEGORY}      Sets voicemail category
${VM_NAME}        * Full name in voicemail
${VM_DUR}         * Voicemail duration
${VM_MSGNUM}      * Number of voicemail message in mailbox
${VM_CALLERID}    * Voicemail Caller ID (Person leaving vm)
${VM_CIDNAME}     * Voicemail Caller ID Name
${VM_CIDNUM}      * Voicemail Caller ID Number
${VM_DATE}        * Voicemail Date
${VM_MESSAGEFILE} * Path to message left by caller
\end{verbatim}



(Thanks Russell!)

Leif Madsen.



More information about the asterisk-users mailing list