Hi, Is there a way to enable the usage of UNIQUEID CDR field using a MySQL database backend for storing CDRs without having to recompile asterisk-addons as stated here http://www.voip-info.org/wiki-Asterisk+cdr+mysql ? After version 1.4 it is said in release that it can be done (not sure if it applies to mysql backend) How would it be the syntax in cdr.conf? I tried this without success in cdr.conf: [mysql] loguniqueid=yes ;log uniqueid loguserfield=yes ;log user field Regards Luis Palma -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070917/7768f033/attachment.htm
Tilghman Lesher
2007-Sep-18 05:39 UTC
[asterisk-users] Enabling MySQL UNIQUE from cdr.conf
On Monday 17 September 2007 17:19:52 Lu?s Palma wrote:> Is there a way to enable the usage of UNIQUEID CDR field using a MySQL > database backend for storing CDRs without having to recompile > asterisk-addons as stated here > http://www.voip-info.org/wiki-Asterisk+cdr+mysql ?Please see configs/cdr_mysql.conf.sample located in the source directory of asterisk-addons. -- Tilghman
There is need of Addons as you will need mysql module to connect to mysql and asterisk. so you have to install addons. Keshav. Lu?s Palma <lpalma at gmail.com> wrote: Hi, Is there a way to enable the usage of UNIQUEID CDR field using a MySQL database backend for storing CDRs without having to recompile asterisk-addons as stated here http://www.voip-info.org/wiki-Asterisk+cdr+mysql ? After version 1.4 it is said in release that it can be done (not sure if it applies to mysql backend) How would it be the syntax in cdr.conf? I tried this without success in cdr.conf: [mysql] loguniqueid=yes ;log uniqueid loguserfield=yes ;log user field Regards Luis Palma _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users --------------------------------- Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070917/9f3d86da/attachment.htm
James FitzGibbon
2007-Sep-18 14:11 UTC
[asterisk-users] Enabling MySQL UNIQUE from cdr.conf
On 9/17/07, Lu?s Palma <lpalma at gmail.com> wrote:> Is there a way to enable the usage of UNIQUEID CDR field using a MySQL > database backend for storing CDRs without having to recompile > asterisk-addons as stated here > http://www.voip-info.org/wiki-Asterisk+cdr+mysql ? > > After version 1.4 it is said in release that it can be done (not sure if > it applies to mysql backend)In addons v1.4.2, it's not possible without recompilation. You get one of two versions of code depending on the definition of a compile time constant. If that constant isn't defined, the text of the SQL INSERT statement in the shared module will be: INSERT INTO %s (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,userfield) instead of INSERT INTO %s (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield) In the -trunk version of cdr_addon_mysql.c, the behaviour of loguniqueid was changed from a compile-time to runtime option, just like userfield already was. The changes to make loguniqueid a runtime option are pretty small, and trivial to backport to the 1.4 branch on their own. You'd have to do more research to see if you can just build the trunk version against 1.4, given that trunk also has added MySQL SSL support. Of course, if your question stems from the fact that you are unable to recompile anything in your installation, none of this is much help. :( -- j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070918/8e7d4d5c/attachment.htm