Re: [SR-Users] CDRs and MongoDB

2015-01-25 Thread Mickael Marrache
Hi Daniel,

 

Thank you, it works!

 

However, I see both transactions and CDRs accounting. Is there a way to only
enable CDR accounting?

 

Mickael

 

From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of
Daniel-Constantin Mierla
Sent: Friday, January 23, 2015 10:55 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] CDRs and MongoDB

 

Hello,

it should work to write the cdrs to a database. I removed the note from the
readme, it was there from an older version and overlooked when the feature
was implemented.

Cheers,
Daniel

On 23/01/15 08:15, Mickael Marrache wrote:

Hi,

 

Is it possible to write CDRs directly to MongoDB using the new db_mongodb
module?

 

modparam(acc, db_url, DB_MONGO_URL)

modparam(acc, cdr_enable, 1)

modparam(acc, cdr_extra,  . )

modparam(acc, cdr_log_enable, 0)

modparam(acc, cdrs_table, cdrs)

 

 

In the acc module documentation, I found the following statement:

 

Note that CDR generation does not involve any kind of database storage
(yet). In order to persist the CDRs into a database you will have to set up
an exterior process (i.e., a script living outside of Kamailio) and
implement the storage task yourself.

 

Thanks,

Mickael






___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users





-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] CDRs and MongoDB

2015-01-23 Thread Daniel-Constantin Mierla
Hello,

it should work to write the cdrs to a database. I removed the note from
the readme, it was there from an older version and overlooked when the
feature was implemented.

Cheers,
Daniel

On 23/01/15 08:15, Mickael Marrache wrote:

 Hi,

  

 Is it possible to write CDRs directly to MongoDB using the new
 db_mongodb module?

  

 modparam(acc, db_url, DB_MONGO_URL)

 modparam(acc, cdr_enable, 1)

 modparam(acc, cdr_extra,  … )

 modparam(acc, cdr_log_enable, 0)

 modparam(acc, cdrs_table, cdrs)

  

  

 In the acc module documentation, I found the following statement:

  

 Note that CDR generation does not involve any kind of database storage
 (yet). In order to persist the CDRs into a database you will have to
 set up an exterior process (i.e., a script living outside of Kamailio)
 and implement the storage task yourself.

  

 Thanks,

 Mickael



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] CDRs and MongoDB

2015-01-22 Thread Mickael Marrache
Hi,

 

Is it possible to write CDRs directly to MongoDB using the new db_mongodb
module?

 

modparam(acc, db_url, DB_MONGO_URL)

modparam(acc, cdr_enable, 1)

modparam(acc, cdr_extra,  . )

modparam(acc, cdr_log_enable, 0)

modparam(acc, cdrs_table, cdrs)

 

 

In the acc module documentation, I found the following statement:

 

Note that CDR generation does not involve any kind of database storage
(yet). In order to persist the CDRs into a database you will have to set up
an exterior process (i.e., a script living outside of Kamailio) and
implement the storage task yourself.

 

Thanks,

Mickael

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users