Hey everybody, Not only has mod_cdr been included in trunk now for a couple days, but I have made some additional enhancements to it. 1. From BaseCDR I have cleaned up and removed some of the earlier used debugging output statements. 2. BaseCDR properly initializes the errorstate upon construction. 3. MysqlCDR now checks the status of the connection to the database, and in the event that the connection is lost, it will try up to 5 times to reconnect per instance of a MysqlCDR object. There is no failover handling yet, so you might want to use at least 1 other logging routine if you have less than reliable connection to your Mysql server. Please remember, you must use MySQL 4.1.x or greater, as this uses prepared statements. Future planned enhancements: 1. Adding in exception handling (try/throw/catch) to detect when a failure to write out a record has occured. 2. Adding in failover handling (queuing to disk) of records so that data is not lost if a record fails to write out the data. (Note: not all loggers will implement this.) 3. Additional logging classes, such as Postgres and possibly ASN1 format. Enjoy! -- Yossi Neiman Cartis Solutions, Inc. - http://www.cartissolutions.com
participants (1)
-
Yossi Neiman