<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>When dealing with CDR SQL tables, I always added an auto-incremented cdr_id key as a primary key, just in case provided uniqueid key went wrong.<br><br></div>Now I&#39;m facing a situation where I need to insert into a database&#39;s table and from the dialplan, a reference to the CDR record which is currently processed.<br>
<br></div>So my questions are:<br><br></div>1. Can uniqueid/sequence (or uniqueid/sequence/calldate) bundle be safely used as CDR&#39;s table primary key  (ie I cannot have any  uniqueid/sequence combination from one CDR record to match a past  uniqueid/sequence combination) ?<br>
<br></div>2. Suggestions ?<br><br></div>Regards<br></div>