[Asterisk-Users] recording queue calls

Faris Raouf asterisk at raouf.net
Sat Dec 24 11:17:42 MST 2005


Dov Bigio wrote:
> Hi,
>  
> When I set "monitor-format=wav49" on file queues.conf for a queue, 
> Asterisk records calls at /var/spool/asterisk/monitor. But the file 
> names it users are the call-ids of the calls.
>  
> Is there a way to change that, and use information such as date, time, 
> agent and queue to "build" the filename?
> It would make the localization of such files much more easy.
>  
> Other useful that I miss is the capability to to allow the files to be 
> stored in different directories, such as 
> /var/spool/asterisk/monitor/queue1, /var/spool/asterisk/monitor/queue2, 
> and so on, based on the queuename. Is this possible by any means?
>  


Hi,


Yes. All you need to do is use the following in your extension.conf at 
the point before you call the queue

SetVar(MONITOR_FILENAME=foo)

or, if you are using 1.2.x

Set(MONITOR_FILENAME=foo)


For example, I have:

Set(MONITOR_FILENAME=${TIMESTAMP}-${CALLERIDNUM}-to-SALES-${UNIQUEID})

and then a little later on:

Queue(salesqueue|t|||60)

in my extensions.conf

Which sets the monitor filename to start with a timestamp, then the CID 
of the caller, then the "to-SALES" is what I use to differentiate 
between queues (I'd have a different Set command for a different queue). 
I then add the UNIQUEID as a "just in case" to make absolutely sure 
there's no way I'd ever have two files of the same name.

I hope this helps,

Faris.




More information about the asterisk-users mailing list