Store the filename in a variable before the call enters the queue - say RECFILENAME - and then once you know which agent has taken the call, execute an mv operation (using the system command) something like
system(mv ${RECFILENAME} ${RECFILENAME}-${AGENTNAME})
i don't remember the exact syntax but something like this should work.
rajeev
Hi,
I'm sure some else has been facing this problem. I want to record all the call coming in my queue. I want this format: YYYYMMDD-HHMMSS-AgentID-CallerId - UniqueID. I'm using the monitor feature inside the queue.conf. I can't use the agents.conf monitor features because I'm using dynamic agent (addqueuemember)
The problem I'm facing is that I can change the filename before the call enters the queue but at this step, I don't know which agent will get the call.
Curent dialplan :
exten => s,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/${TIMESTAMP:0:4}/${TIMESTAMP:4:2}/${TIMESTAMP}-${CALLERIDNUM}-${UNIQUEID})
exten => s,n,Playback(recording)
exten => s,n,Queue(myJavaClub,t,,,300)
Anyone could help?
David
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
