[asterisk-users] Asterisk 1.6: Custom Name for Recordings file

Edwin Lam edwin.lam at officegeneral.com
Fri May 13 13:19:25 CDT 2011


On 5/13/11 10:57 AM, RSCL Mumbai wrote:
>
>      >
>      > I have latest Elastix 64 bit setup and running fine (Asterisk
>      > 1.6.2.13)
>      >
>      > I would like to customize the file name of call recordings:
>      > /var/spool/asterisk/monitor/20110511-110858-1305126538.912.wav
>      >
>      > I would like to include the extension number in the file name.
>      >
>      > Did a lot of googling but not much help.
>      >
>      > Pls advice.
[snip..]
> Thx Eric.
> I read the link "e1*CLI> core show application monitor" but I could not follow
> what I should do to customize the file name of the recording.
> I guess some changes to the dialplan is required ?

try something like:

Monitor(wav,${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${EXTEN})

-- 
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20




More information about the asterisk-users mailing list