Hi there, Does asterisk keeps the master.csv open between writes? Right now I have 2 asterisk nodes sharing every configuration file (by using a distributed filesystem) except the master.csv files. If asterisk does not keep master.csv file open between writes, then I can share the master.csv file between both nodes right?If not, then any suggestions to merge both master.csv files? Thanks in advanced, Ricardo Coelho
On Tue, 13 Apr 2010, Ricardo Coelho wrote:> Does asterisk keeps the master.csv open between writes? Right now I have > 2 asterisk nodes sharing every configuration file (by using a > distributed filesystem) except the master.csv files. If asterisk does > not keep master.csv file open between writes, then I can share the > master.csv file between both nodes right?If not, then any suggestions to > merge both master.csv files?It is not worth the effort to find out if Asterisk closes the file -- it's a major league bad idea. At some point, you will discover a race condition at the application, network daemon, file system, or OS level. Dumping the CDRs into a database is a much better idea. The benefits go way beyond concurrency. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
On Tue, Apr 13, 2010 at 05:46:03PM +0100, Ricardo Coelho wrote:> Hi there, > > Does asterisk keeps the master.csv open between writes? Right now I have 2 asterisk nodes sharing every configuration file (by using a distributed filesystem) except the master.csv files. If asterisk does not keep master.csv file open between writes, then I can share the master.csv file between both nodes right?If not, then any suggestions to merge both master.csv files?Sort the lines by some time-stamp? ("merge-sort": sort -m . Though hopefully not sort -R) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir