<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I do not know when the recording actually starts but if it start when the agent answers the call then it might be possible to have the name set in an AGI that gets run when the agent answers call. If nothing else you can set a variable to the name you want to have the file have and rename it at end of call.<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Sep 27, 2011, at 10:30 PM, Sam Govind wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">:P I'd this very similar situation/ project Carl - and guess what. The filename is created before the call actually hits QUEUE application so these Queue variables are not populated by then so filename won't contain the Agent Number.<div>
UNLESS you move the file after queue to a new filename containing the Agent Number.</div><div><br></div><div>like ;</div><div><br></div><div>exten => whatever,n,SET(<span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">MONITOR_FILENAME=blah-blah</span>)</div>
<div>exten => whatever,n,Queue(${params}); Queue should contain option "c" to continue in dialplan when callee hangup. Caller hangup case needs special attention too</div><div>exten => whatever,n,System(mv ${old-Filename} ${old-Filename}-<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">${MEMBERINTERFACE}</span>)</div>
<div><br></div><div>I guess this should do the job.</div><div><br><div class="gmail_quote">On Tue, Sep 27, 2011 at 8:30 PM, Carlos Chavez <span dir="ltr"><<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, 2011-09-27 at 03:47 -0700, bilal ghayyad wrote:<br>
> Dears;<br>
><br>
> I am facing now a problem in the recording the calls that coming via the queue, the problem that I am not able to make the filename contains the agent (for example its extension) who received the call.<br>
><br>
> Actually by looking to the below settings, it is clear that the agent name (it the phone extension or it is sip username .. etc) will not be included in the filename.<br>
><br>
> How can I include the agent name in the filename? Because in outboud it is easy as the ${CHANNEL} will contain the sip username of the IP Phone but in the outbound it will contain the DAHDI channel that the call came via it .. so How to inlude the sip username for the IP Phone of the agent that is going to get the call from the queue?<br>
><br>
> exten => s,1,Set(MONITOR_FILENAME=${CHANNEL}${CALLERID(num)}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)})<br>
> exten => s,2,Queue(OrangeCMG,t,,,180)<br>
> exten => s,3,Macro(voicemail,SIP/reception)<br>
><br>
> Regards<br>
> Bilal<br>
><br>
><br>
</div>; If set to yes, just prior to the caller being bridged with a queue<br>
member<br>
; the following variables will be set<br>
; MEMBERINTERFACE is the interface name (eg. Agent/1234)<br>
; MEMBERNAME is the member name (eg. Joe Soap)<br>
; MEMBERCALLS is the number of calls that interface has taken,<br>
; MEMBERLASTCALL is the last time the member took a call.<br>
; MEMBERPENALTY is the penalty of the member<br>
; MEMBERDYNAMIC indicates if a member is dynamic or not<br>
; MEMBERREALTIME indicates if a member is realtime or not<br>
;<br>
;setinterfacevar=no<br>
<br>
Basically the variable ${MEMBERINTERFACE} will have the extension (if<br>
using dynamic members) or the agent number.<br>
<font color="#888888"><br>
--<br>
Telecomunicaciones Abiertas de México S.A. de C.V.<br>
Carlos Chávez Prats<br>
Director de Tecnología<br>
<a href="tel:%2B52-55-91169161%20ext%202001" value="+525591169161">+52-55-91169161 ext 2001</a><br>
</font><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>
--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>