Skip to main content

Labels for Call Recording

Posted by IVSCOMM on Fri, 02/03/2012

Recently I started recording calls for a small call center up north.
I went in to the queue and enabled call recording. While I was on site it labeled every call the following way:
queue-InboundCalls-TenantName-2012-01-09-10-35-19-55555555555-TenantName.wav

I tested and observed the call recording and saw the correct labeling on each file.

Shortly after I left that location and started driving home it started labeling them this way:

1234567890.123456.wav
Looks like this is the unique call Id for each phone call.

So my main question is this,

Where is the labeling scheme located?


Submitted by IVSCOMM on Fri, 02/03/2012 Permalink

I found this in the scripts.include file and it looks right. where is the next step I should look or am I missing something here?

[macro-tl-queue]

exten => s,1,Answer
exten => s,n,Set(__RINGGROUP_TIMEOUT=60)
exten => s,n,Set(__MONITOR_FILENAME=queue-${ARG1}-${STRFTIME(,,%F-%H-%M-%S)}-${CALLERID(num)}${TL_DASH}${tenant})
exten => s,n,Set(CALLERID(name)=${ARG3}${CALLERID(name)})
exten => s,n,Set(QUEUE_MOH=${DB(TL/${ARG1}/MOH)})
; default music associated with the queue
exten => s,n,GotoIf($["${QUEUE_MOH}" = ""]?noqueuemoh)
;;exten => s,n,SetMusicOnHold(${QUEUE_MOH}) ;;=Asterisk-1.4
exten => s,n,Set(CHANNEL(musicclass)=${QUEUE_MOH}) ;;=Asterisk-1.6
; override
exten => s,n(noqueuemoh),GotoIf($["${ARG4}" = ""]?nomoh)
;;exten => s,n,SetMusicOnHold(${ARG4}) ;;=Asterisk-1.4
exten => s,n,Set(CHANNEL(musicclass)=${ARG4}) ;;=Asterisk-1.6
exten => s,n(nomoh),GotoIf($["${ARG2}" = ""]?NoOptions)
exten => s,n,Queue(${ARG1},${ARG2})
exten => s,n(NoOptions),Queue(${ARG1},itT)

Submitted by IVSCOMM on Mon, 02/06/2012 Permalink

In my continuing search the Queue.conf file says this

[general]
;
; Global settings for call queues
;
persistentmembers=yes
;
; Note that a timeout to fail out of a queue may be passed as part of application call
; from extensions.conf:
; Queue(queuename|[options]|[optionalurl]|[announceoverride]|[timeout])
; example: Queue(dave|t|||45)

monitor-type=MixMonitor
From here it goes on to describe the individual Queues in my system
Is this where I define Monitor_Filename? I read that If I do not Define it by default it becomes ${UNIQUEID} which is my whole problem. So would I define here like so:

MONITOR_FILENAME=${CHANNEL}${CALLERID(num)}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}${UNIQUEID}

Submitted by chris on Tue, 02/07/2012 Permalink

Are you going to the queue from a hunt list? If so, this doesn't use the queue macro. You can just add an Asterisk command to the hunt list and use the SET function with your MONITOR_FILENAME line. Also, you will need to replace ARG1 with the actual queue name.

Submitted by IVSCOMM on Tue, 02/07/2012 Permalink

I never thought to look in the hunt list.

Thanks that was exactly what I was looking for!
I went into the huntlist in question and clicked the add asterisk command and added

Set(__MONITOR_FILENAME=queue-NameofQueue-${STRFTIME(,,55.000000-%H-%M-%S)}-${CALLERID(num)}${TL_DASH}${tenant})

And it worked.

Thanks Again!

Submitted by xxot on Thu, 08/09/2012 Permalink

What does "55.000000" means in the STRFTIME?
STRFTIME(,,55.000000-%H-%M-%S)

I noticed next strange thing:
In hunt group Insert into Command*:
MixMonitor(in-${DIALED_NUMBER}-${STRFTIME(,,%F-%H-%M-%S)}-${CALLERID(num)}${TL_DASH}${tenant}.${RECORDING_FORMAT},b)
and save.

When I reopen the hunt-list again it displays
MixMonitor(in-${DIALED_NUMBER}-${STRFTIME(,,55.000000-%H-%M-%S)}-${CALLERID(num)}${TL_DASH}${tenant}.${RECORDING_FORMAT},b)
If I press save without replacing "55.000000" on %F (which actually means full date) I have recording with the name
in-2222225050-55.000000-17-32-11-212525652-tenny.wav
instead of
in-2222225050-2012-08-09-17-38-28-212525652-tenny.wav
Looks like the feature in the edit_huntlist.cgi