On Tue, 2011-09-27 at 03:47 -0700, bilal ghayyad wrote:
> Dears;
> 
> 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. 
> 
> 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. 
> 
> 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?
> 
> exten => 
> s,1,Set(MONITOR_FILENAME=${CHANNEL}${CALLERID(num)}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)})
> exten => s,2,Queue(OrangeCMG,t,,,180)
> exten => s,3,Macro(voicemail,SIP/reception)
> 
> Regards
> Bilal
> 
> 
; If set to yes, just prior to the caller being bridged with a queue
member
; the following variables will be set
; MEMBERINTERFACE is the interface name (eg. Agent/1234)
; MEMBERNAME is the member name (eg. Joe Soap)
; MEMBERCALLS is the number of calls that interface has taken,
; MEMBERLASTCALL is the last time the member took a call.
; MEMBERPENALTY is the penalty of the member
; MEMBERDYNAMIC indicates if a member is dynamic or not
; MEMBERREALTIME indicates if a member is realtime or not
;
;setinterfacevar=no

Basically the variable ${MEMBERINTERFACE} will have the extension (if
using dynamic members) or the agent number.

-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001

Attachment: signature.asc
Description: This is a digitally signed message part

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to