[asterisk-dev] No unique identifier for CDR

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Aug 27 10:53:41 CDT 2009


On Thursday 27 August 2009 09:37:29 Atis Lezdins wrote:
> On Thu, Aug 27, 2009 at 5:08 PM, Alexander Harrowell wrote:
> > On Thursday 27 August 2009 14:21:17 Nick Lewis wrote:
> >> We seem to be in forceful agreement that uniqueid is not unique per CDR.
> >> I like your linkedid+cdrinstance suggestion. Do you think this
> >> combination should also be used as the key in sql rather than an
> >> auto_increment id?
>
> > If you're using SQLite there's the rowid column - a 64 bit unique
> > identifier for each row.
>
> But the problem mentioned above still exists - you can't get that id
> before CDR is posted.

Is that really a problem, though?  There was no suggestion that the OP needed
the ID prior to the record being posted, just that he needed a unique ID per
record.

-- 
Tilghman & Teryl
with Peter, Cottontail, Midnight, Thumper, & Johnny (bunnies)
and Harry, BB, & George (dogs)



More information about the asterisk-dev mailing list