Recordings

Hello friends,
Recently I enabled the queues recordings for a call center. the problem I have is that Asterisk bigins the recording when the caller enters the queue. so when I listen the file I hear all the MOH, I’m just intrested in listening the conversation.
did I made myself clear?
excuse my poor english, it’s not my native languaje

here’s the queue part in extensions.conf

exten => 4001,1,Macro(user-callerid,)
exten => 4001,n,Answer
exten => 4001,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 4001,n,Set(__BLKVM_BASE=${EXTEN})
exten => 4001,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 4001,n,ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != “1”],Set,DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm))
exten => 4001,n,MixMonitor(/var/spool/asterisk/grabaciones/${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}
${CALLERID(number)}_${UNIQUEID}.WAV||)
exten => 4001,n,Set(__NODEST=${EXTEN})
exten => 4001,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => 4001,n,Queue(4000,t,900)
exten => 4001,n,dbDel(${BLKVM_OVERRIDE})
exten => 4001,n,Set(__NODEST=)
exten => 4001,n,Hangup()

thanks in advance

lucas

You need to configure recording in queues.conf, not extensions.conf, if you want it only on answered queues.

Also, are you sure that you need to answer early. You don’t seem to have a welcome message. If you can let the call ring out on the queue, you may save your callers call costs, although you may find the phone company cuts the call short, if the wait time is long.

We record the calls just how your requesting, without hold music. When you invoke the MixMonitor command pass the b flag. The recording will only take place when the caller and the agent are “bridged” together. None of the hold music will be recorded.

For more documentation on the command see here:
voip-info.org/wiki/view/MixMonitor

I added the b option, not sure if it is in the correct place.

before
exten => 4001,n,MixMonitor(/var/spool/asterisk/grabaciones/${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}${CALLERID(number)}${UNIQUEID}.WAV||)
after
exten => 4001,n,MixMonitor(/var/spool/asterisk/grabaciones/${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}${CALLERID(number)}${UNIQUEID}.WAV||,b)

please help.
thanks
lucas

Which version of Asterisk are you using? “|” is not an argument delimiter in current versions, nor is it in 1.6.x.

You need to run:

core show application MixMonitor

at the CLI prompt, to get the correct rules for your version.

i’m using Asterisk 1.4.42.
excuse me for being such a noob, but the core show application MixMonitor doesn’t give me the correct syntax of the comand, only gives me the options.
thanks.

[quote=“http://svn.digium.com/svn/asterisk/tags/1.4.42/apps/app_mixmonitor.c”]static const char *desc = “”
" MixMonitor(.[|[|]])\n\n"
“Records the audio on the current channel to the specified file.\n”[/quote]

Looks to me as though it does give the syntax and that it uses | as a delimiter. ([] are meta characters, meaning optional.)