Freddi Hansen
2004-Oct-08 00:25 UTC
[Asterisk-Users] re:uniqueid - how unique it is (Sathya Weerasooriya)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> <blockquote type="cite"> <div><font face="Arial" size="2"><span class="487584123-07102004">Hello,</span></font></div> <div> </div> <div><font><span class="487584123-07102004"> <li><font face="Arial"><font size="2"><b>uniqueid</b>: Unique Channel Identifier (32 characters) </font></font></li> </span></font></div> <div><font> </font></div> <div><span class="487584123-07102004"><font><font face="Arial" size="2">I would like to know how is the unequeId constructed. ?</font></font></span></div> <div><font> </font></div> <div><span class="487584123-07102004"><font><font face="Arial" size="2">I need a primary key in cdr database and would like to know whether I can make <strong>uniqueid</strong> the primary key.<strong> </strong>If asterisk channel does not have any idea of previousely crated ID's and if this id is randomly crated number then there is a chance that unequeid get a duplicate entry.</font></font></span></div> <div><font> </font></div> </blockquote> <br> The uniqueid is the based on unixtime and a sequence number since * was started so yes you can thrust uniqueid as long as you have one * server.<br> I do use 'SetCDRUserField' to add 'uname' into the billing stream. Uname.uniqueid is a safe key for the CDR's.<br> Freddi<br> </body> </html>