[asterisk-dev] Please reopen bug #13409

Russell Bryant russell at digium.com
Thu Sep 4 21:13:21 CDT 2008


On Sep 4, 2008, at 5:22 PM, Tilghman Lesher wrote:

> On Thursday 04 September 2008 16:36:39 Daniel Ferrer wrote:
>> I tested today 1.4.22-rc3, as I see it includes patch for issue  
>> #13409.
>>
>> This patch is causing me CDR problems, I use cdr_mysql (from addons
>> package) as backend, and in a normal call A->B, this patch causes to
>> post the CDR twice, giving me a constraint key violation (uniqueid is
>> primary key in cdr table).
>
> Well, that may be your first problem.  Uniqueid has never been  
> guaranteed
> to be unique across all CDRs.  It is only unique across a channel,  
> and a
> channel may have multiple CDRs.  You need to remove that primary key,
> as its existence is based upon a faulty assumption.


Sure, there may be multiple CDRs with the same uniqueid.  However,  
there certainly seems to be a problem here.  For the most basic call,  
there should only be one CDR.

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.







More information about the asterisk-dev mailing list