<font face="verdana,sans-serif"><br></font><br><div class="gmail_quote">On Fri, May 13, 2011 at 11:07 PM, Eric Wieling <span dir="ltr"><<a href="mailto:EWieling@nyigc.com">EWieling@nyigc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
> -----Original Message-----<br>
> From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of<br>
> RSCL Mumbai<br>
> Sent: Friday, May 13, 2011 1:32 PM<br>
> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
> Subject: [asterisk-users] Asterisk 1.6: Custom Name for<br>
> Recordings file<br>
<div><div></div><div class="h5">><br>
> Hi,<br>
><br>
> I have latest Elastix 64 bit setup and running fine (Asterisk<br>
> 1.6.2.13)<br>
><br>
> I would like to customize the file name of call recordings:<br>
> /var/spool/asterisk/monitor/20110511-110858-1305126538.912.wav<br>
><br>
> I would like to include the extension number in the file name.<br>
><br>
> Did a lot of googling but not much help.<br>
><br>
> Pls advice.<br>
<br>
</div></div>See the "fname_base" information below.<br>
<br>
================================<br>
<br>
pbx*CLI> core show application monitor<br>
<br>
-= Info about application 'Monitor' =-<br>
<br>
[Synopsis]<br>
Monitor a channel.<br>
<br>
[Description]<br>
Used to start monitoring a channel. The channel's input and output voice<br>
packets are logged to files until the channel hangs up or monitoring is stopped<br>
by the StopMonitor application.<br>
By default, files are stored to "/var/spool/asterisk/monitor/". Returns<br>
'-1' if monitor files can't be opened or if the channel is already monitored,<br>
otherwise '0'.<br>
<br>
[Syntax]<br>
Monitor([file_format[:urlbase]][,fname_base[,options]])<br>
<br>
[Arguments]<br>
file_format<br>
optional, if not set, defaults to 'wav'<br>
fname_base<br>
if set, changes the filename used to the one specified.<br>
options<br>
m: when the recording ends mix the two leg files into one and delete<br>
the two leg files. If the variable ${MONITOR_EXEC} is set, the application<br>
referenced in it will be executed instead of soxmix/sox and the raw leg<br>
files will NOT be deleted automatically. soxmix/sox or ${MONITOR_EXEC}<br>
is handed 3 arguments, the two leg files and a target mixed file name<br>
which is the same as the leg file names only without the in/out designator.<br>
If ${MONITOR_EXEC_ARGS} is set, the contents will be passed on as<br>
additional arguments to ${MONITOR_EXEC}. Both ${MONITOR_EXEC} and the<br>
Mix flag can be set from the administrator interface.<br>
<br>
b: Don't begin recording unless a call is bridged to another channel.<br>
<br>
i: Skip recording of input stream (disables 'm' option).<br>
<br>
o: Skip recording of output stream (disables 'm' option).<br>
<br>
<br>
[See Also]<br>
StopMonitor()<br>
<br>
<br></blockquote><div><br>Thx Eric.<br>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.<br>I guess some changes to the dialplan is required ?<br>
<br>Thx<br>S<br></div></div>