David Gagnon
2006-Oct-18 22:20 UTC
[asterisk-users] How to get the agent id in the recording filename
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}/${TIME STAMP:4:2}/${TIMESTAMP}-${CALLERIDNUM}-${UNIQUEID}) exten => s,n,Playback(recording) exten => s,n,Queue(myJavaClub,t,,,300) Anyone could help? David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061018/3cdf9217/attachment.htm
Rajeev Natarajan
2006-Oct-20 10:05 UTC
[asterisk-users] How to get the agent id in the recording filename
Just a wild idea: 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 On 10/19/06, David Gagnon <dgagnon@bgm.qc.ca> wrote:> > 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 > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061020/def92d51/attachment.htm