Author Topic: Asterisk queue_log file into DB with Node JS.  (Read 3095 times)

chesstrian

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
    • Email
Asterisk queue_log file into DB with Node JS.
« on: May 14, 2013, 21:33:08 »
I have programed a little script in Node JS which gather every line from queue_log file and put it into MongoDB; it haven't been tested with log rotation and needs support for MySQL and others DBs, if you have any comment or improvement, it will be appreciated.

It would be great if this is useful for someone.

You can check for sources here: https://github.com/chesstrian/qlog2db
« Last Edit: May 14, 2013, 21:55:00 by chesstrian »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2993
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Asterisk queue_log file into DB with Node JS.
« Reply #1 on: May 16, 2013, 08:39:13 »
Can we link to it from our OpenQm Addons page?

PS: why did you create it?

chesstrian

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
    • Email
Re: Asterisk queue_log file into DB with Node JS.
« Reply #2 on: May 17, 2013, 17:41:13 »
Of course you can link, modify and do whatever you need :).

I did it as an exercise, because I like Asterisk and NodeJS for realtime applications, i'm doing a monitor based on queue_log file, so that was the beginning.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2993
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Asterisk queue_log file into DB with Node JS.
« Reply #3 on: May 21, 2013, 14:10:41 »
Thanks!

Wessel

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: Asterisk queue_log file into DB with Node JS.
« Reply #4 on: October 29, 2015, 23:59:36 »
Thank you! Just what i was looking for. Did you also manage to intreptert the calls with an aggregate? I'll have a go for that now if i cant find it on the net. I think its worth creating :-)