Skip to content

Instantly share code, notes, and snippets.

View dagelf's full-sized avatar

Coenraad Loubser dagelf

View GitHub Profile
@xenomuta
xenomuta / cdr_fijo_mongodb.js
Created March 15, 2012 04:48
Asterisk CDR with NodeJS and MongoDB
/*
cdr_fifo_mongodb: A quick and dirty hack that consists of configuring asterisk’s
cdr_custom.conf to write to a named pipe, which will be then read by node and
then written into mongodb.
good alternative to cdr_mongodb, 'cause I couldn't make it work stable for 1.8
*/
var config = {
"dburl": "asterisk", /* user:pass@host/db */
"collections": ["cdr"],
"fifo": "/var/log/asterisk/cdr-custom/cdr_fifo.csv",