I just tried that and it doesn't work. This may be perhaps because the file
name needs to be defined before the call is sent to the queue.
When I saw you answer I thought it would work because it sounded very logical.
:-)
This is the macro I use to send the call to the extension
Just in case I put the line before and after the extension.
[macro-extensions]
exten => s,1,set(MONITOR_FILENAME=${EXTEN}-${CALLERID}-${TIMESTAMP})
exten => s,2,Dial(${ARG1}|30|t,,wW)
exten => s,3,set(MONITOR_FILENAME=${EXTEN}-${CALLERID}-${TIMESTAMP})
exten => s,4,Voicemail(u${ARG2})
exten => s,104,Voicemail(b${ARG2})
Ed Nu?ez
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Joe Dennick
Sent: Thursday, December 07, 2006 3:48 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] queue agent Monitor
The queue application sends the call to an agent. Use the agent
extension's dialplan to set up the monitor, that way you will have the
actual agent extension.
On Thu, 2006-12-07 at 14:18 -0600, Ed Nu?ez wrote:
> Hello list.
>
>
>
> Does anyone know if and how I can use in my context the following
> variable found in the CDR field?
>
>
>
> DSTCHANNEL
>
>
>
> I am trying to make the answering agent part of the monitor file name,
> but it is not working.
>
>
>
> exten=> 0072,1,Answer
>
> exten=> 0072,2,Ringing
>
> exten=> 0072,3,Wait(2)
>
> exten=> 0072,4,set(MONITORFILENAME
> ${DST_CHANNEL}${CALLERID}-${TIMESTAMP})
>
> exten=> 0072,5,Queue(NOC)
>
> exten=> 0072,6,Hangup
>
> include => parkedcalls
>
> #include <users.conf>
>
>
>
> This is what I am getting for a file name.
>
>
>
> 4072493400-20061207-160632.wav
>
>
>
> Caller - timestamp.wav
>
> But I want to see
>
> Agent(1656)-caller-timestamp.wav
>
>
>
>
>
> Thank you
>
>
>
>
>
>
>
> Ed Nu?ez
>
> IT/Telecom Engineer
>
>
>
> 4037 Metric Drive
>
> Winter Park, FL
>
>
>
> (o) 407-384-4200 x 1656
>
> (f) 407-384-4222
>
> (c) 732-925-0730
>
>
> _______________________________________________
> --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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20061207/9cfa1b84/attachment.htm