[Asterisk-Dev] dev conf topic: better CDRs

Michael Giagnocavo mgg-digium at atrevido.net
Wed Feb 23 22:40:29 MST 2005


-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Tilghman Lesher
>> >Currently, we have a 2 integer method, which is guaranteed to be
>> >machine-unique:  unixtime and instance increment, which, as long
>> > as the daemon isn't constantly restarting, is fine.  To add
>> > network uniqueness, the addition of a third integer should be
>> > sufficient:  the 32-bit integer representation of the IP address.
>> >  Oddly, that's 96 bits, 32 less than MD5, yet it's guaranteed to
>> > be unique for at least the next 30 years.
>>
>> What's wrong with using a GUID?
>
>Formulated how?  I just explained how you could formulate one, which
>should be sufficient for an enterprising soul to code (even if that
>enterprising soul is me).

Why not use uuid_generate?

-Michael





More information about the asterisk-dev mailing list