Author Topic: callListen.listeners.LocalFilesByDay does not work  (Read 3076 times)

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
callListen.listeners.LocalFilesByDay does not work
« on: July 17, 2009, 10:12:25 »
as in documentation, i've set
audio.server=it.loway.app.queuemetrics.callListen.listeners.LocalFilesByDay

i've tried to separate monitor files into:
/var/spool/asterisk/queue/
or
/var/spool/asterisk/year/queue/

set this up with:
default.monitored_calls=/var/spool/asterisk/%QU/
or
default.monitored_calls=/var/spool/asterisk/%YY/%QU/

retrieving call datails still cannot find record

$Id: LocalFilesByDay.java,v 1.2 2009/02/16 11:40:28 lenz-mobile Exp $ is searching.... found 0 files
[D965F3B96481F3C48E4F5597A4819650] Tempo totale esecuzione verbo 'qm_popup_call': 30 ms
[D965F3B96481F3C48E4F5597A4819650] Tempo totale esecuzione verbo 'qm_qa_popup': 40 ms

files could be found using command line utility:
astra:~ # find /var/spool/asterisk/monitor/ -name '*1247813990.28938*'
/var/spool/asterisk/monitor/2009/6/q6-1247813990.28938.wav

what's wrong here?

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: callListen.listeners.LocalFilesByDay does not work
« Reply #1 on: July 17, 2009, 11:05:08 »
Hi,

I look from your post that the file is located on:

astra:~ # find /var/spool/asterisk/monitor/ -name '*1247813990.28938*'
/var/spool/asterisk/monitor/2009/6/q6-1247813990.28938.wav

but your configuration key is:

default.monitored_calls=/var/spool/asterisk/%YY/%QU/

I think the correct value should be something like:
default.monitored_calls=/var/spool/asterisk/monitor/%YY/%QU/

Please, remember to restart your QueueMetrics instance for each modification you made on the configuration file.

Let me know if this solves the problem

Thank you and regards,
Marco Signorini

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
Re: callListen.listeners.LocalFilesByDay does not work
« Reply #2 on: July 17, 2009, 12:05:01 »
i've tried both configurations,
with monitor/%QU and monitor/%YY/%QU
find example is only from first.
each time i restarted whole tomcat.

no effect.

is it possible to turn on some verbose logging to get more details from LocalFilesByDay ?

qmax

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
  • Asterisk-11.7.0-ubuntu, Queuemetrics-15.10.1-tgz
    • View Profile
    • Email
Re: callListen.listeners.LocalFilesByDay does not work
« Reply #3 on: July 17, 2009, 12:52:37 »
I'd again request module LocalFilesByNamePattern

just like ByDay, with pattern matching filename as well, and extended to contain literal letters and some %ID
this could be MUCH faster, since no search needed at all.
« Last Edit: July 17, 2009, 13:18:05 by qmax »

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: callListen.listeners.LocalFilesByDay does not work
« Reply #4 on: July 20, 2009, 11:20:49 »
Hi,

you're right! I was gone through the code with the debugger and I've found that QueueMetrics, in the LocalFileByDay listener, wrongly replaces the %QU token with the agent's code instead of the queue name  :o
I've tracked this as bug #776 in our internal bug tracker and it will be fixed on next coming QueueMetrics 1.5.4 release.

Thank you for your feedbacks!
Marco Signorini.