[asterisk-users] recrding calls

Joseph syscon780 at gmail.com
Fri Jan 18 20:46:38 CST 2013


On 01/18/13 19:27, Carlos Alvarez wrote:
>   On Fri, Jan 18, 2013 at 6:25 PM, Joseph <[1]syscon780 at gmail.com> wrote:
>
>     I would like to outgoing/icoming calls and email the files.
>     This is what I have:
>     ...
>     exten => _7.,n,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP})
>     exten => _7.,n,Monitor(wav,${CALLFILENAME},m)
>     ...
>     How do I email these file?
>
>   This is how we do it:
>   exten =>
>   _1NXXNXXXXXX,1,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-
>   ${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV)
>   \exten => _1NXXNXXXXXX,n,MixMonitor(${recordfilename},b)
>   exten => _1NXXNXXXXXX,n,(dial here or whatever)

Thanks Carlos
I'm just concentrating right now on ${TIMESTAMP} variable but is is not working:

I have:
exten => 11,n,Set(recordfilename=/var/spool/asterisk/monitor/${EXTEN}-${TIMESTAMP:0:8}${TIMESTAMP:8}.WAV)
exten => 11,n,MixMonitor(${recordfilename},b)

and the file name I got was: 
-11.wav

Why I'm not getting any timestamp?

-- 
Joseph



More information about the asterisk-users mailing list