Author Topic: Monitor() application writes premature entries to queue_log  (Read 2908 times)

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Due to privacy concerns we have a menu for our callers to choose if they accept the calls being recorded or not. The easiest way for this was an IVR that called the Monitor() application before calling Queue(). However, if Monitor() is active, when the (dynamic) agent picks up the receiver and the call is bridged, the COMPLETEAGENT record is written immediately to queue_log with a call length of 0 seconds.

Now I've got two questions:

1) Is this an Asterisk bug (I'm using the latest 1.4 version) or a misconfiguration on my part? I'll post the relevant pieces of extensions.conf and queue.conf.

2) Are there any other options to record calls conditionally?

Here are the excerpts from my config files:
Code: [Select]
;extensions.conf
[sales]
exten => s,n,Answer
exten => s,n,NoOp(__MONITOR_ALLOWED is set to "${MONITOR_ALLOWED}")
exten => s,n,GotoIf($["1" = "${MONITOR_ALLOWED}"]?mbegin:qbegin)
exten => s,n(mbegin),Set(D_MONITOR=q-sales-${STRFTIME(,,%F-%T)}-${UNIQUEID}-${CALLERID(num)})
exten => s,n,Monitor(wav,${D_MONITOR},mb)

exten => s,n(qbegin),Queue(sales,,,,90)
exten => s,n,NoOp(QUEUESTATUS was "${QUEUESTATUS}")
exten => s,n,Hangup()

Code: [Select]
;queues.conf
[general]
;No Options here

[sales]
maxlen=0
reportholdtime=yes
periodic-announce-frequency=60
strategy=fewestcalls
joinempty=strict
announce-round-seconds=10
retry=30
announce-holdtime=yes
announce-frequency=60
timeout=10
music=default
autofill=yes
ringinuse=no



QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Monitor() application writes premature entries to queue_log
« Reply #1 on: April 17, 2009, 20:53:32 »
It looks like a bug - have you tried with MixMonitor() and with MONITOR_FILENAME as well? Monitoring calls wit hthe queue command is the most common operation, so it should work..... ;D

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
SOLVED: Monitor() application writes premature entries to queue_log
« Reply #2 on: April 21, 2009, 16:42:29 »
Thanks for the pointers. When I experimented with the different applications in my dial plan I had the situation where no monitoring occured but still the log got written prematurely. The culprit was not Monitor() but my menu which contained the Dial() command:

Code: [Select]
exten => recordsettings,n,Dial(Local/s@sales); User has chosen "Recording allowed"
After I replaced that line with

Code: [Select]
exten => recordsettings,n,Goto(sales,s,1); User has chosen "Recording allowed"
the logging was ok again.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Monitor() application writes premature entries to queue_log
« Reply #3 on: April 21, 2009, 20:43:56 »
This is strange. Nice to see you found it though.