Summary:ASTERISK-00477: [patch] cdr_pgsql is not careful enough with CDR data
Reporter:Ben Klang (bklang)Labels:
Date Opened:2003-11-04 15:49:02.000-0600Date Closed:2008-01-15 14:36:57.000-0600
Versions:Frequency of
Environment:Attachments:( 0) cdr_pgsql.patch
Description:There were multiple places where the cdr_pgsql module could fail and either no output would be given back to the user regarding the nature of the failure, or it would fail for no good reason.  This patch fixes one particular race condition where if the db server is restarted in between the time a call comes in and the time it is logged, the cdr record is dropped with an error about being disconnected from the server.

Mostly, I added statements to return useful information about the nature of a pgsql failure.
Comments:By: Mark Spencer (markster) 2003-11-04 23:30:27.000-0600

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:36:57.000-0600

Repository: asterisk
Revision: 1694

U   trunk/cdr/cdr_pgsql.c

r1694 | markster | 2008-01-15 14:36:56 -0600 (Tue, 15 Jan 2008) | 2 lines

Harden PGSQL against dead connections (bug ASTERISK-477)