[Asterisk-Users] SetCDRUserField actually works?

James Golovich james at wwnet.net
Mon Apr 5 18:56:57 MST 2004


On Tue, 6 Apr 2004, Leo Ann Boon wrote:

> I've looked into cdr_csv.c, cdr_pgsql.c, cdr_addon_mysql.c from 0.7.2. 
> So far, only cdr_csv has it as a #define.  The others all support 
> userfield by default.
> 
> One other observation, cdr->uniqueid is the only field that's controlled 
> via #define in all the 3 cdr modules. By default uniqueid is not logged, 
> which I find is counter-intuitive.
> 
> Any cdr guru out there care to enlighten everyone?

uniqueid was added long after the original cdr code was released, so it
was added as a define to explicitly enable it.  At some point it might end
up enabled by default, but being backwards compatible by default is a good
thing.

James




More information about the asterisk-users mailing list