[asterisk-users] queue agent Monitor
lists at infoway.net
lists at infoway.net
Thu Dec 7 16:32:02 MST 2006
We had to deal with something similar to that a long time a go. I don't
know if things have changed since, but here is what we did. We had to set
the filename before sending the call to the queue. Obviously, this won't
tell you the DSTCHANNEL because the queue hasn't distributed the call.
exten =>
s,n,Set(MONITOR_FILENAME=${TIMESTAMP}_QUEUE_${CALLERIDNUM}_${UNIQUEID})
exten => s,n,Queue(queue_name)
As you can see, we store the UNIQUEID as part of the file name. Then we
had a process that monitored the call recordings and once the call had
ended, it would actually lookup the UNIQUEID in the CDR table and then
rename the file accordingly.
We did this for a client of ours a long time ago and I don't have the
source of that perl script to share, but it should be fairly trivial.
Hope this helps,
Daniel
-----Original Message-----
From: Ed Nuñez <enunez at netoneint.com>
Sent: Thu, December 7, 2006 5:34 pm
To: joe at dennick.net, "Asterisk Users Mailing List - Non-Commercial
Discussion" <asterisk-users at lists.digium.com>
Subject: RE: [asterisk-users] queue agent Monitor
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 at lists.digium.com
[mailto:asterisk-users-bounces at 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
_______________________________________________
--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
More information about the asterisk-users
mailing list