<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Mike,<br><br>Just enter a unique "systemname" into asterisk.conf for each box. This system identifier is appended to the front of the unique id field in cdr.<br><br>/etc/asterisk/asterisk.conf<br><br>[options]<br>systemname=asterisk1<br><br><br><br><br><br><br><br><div><hr id="stopSpelling">From: danny@debsinc.com<br>To: asterisk-users@lists.digium.com<br>Date: Mon, 21 Nov 2011 13:50:26 -0600<br>Subject: Re: [asterisk-users] CDR uniqueid - across multiple servers?<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri","sans-serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:"Calibri","sans-serif";color:windowtext;}
.ExternalClass span.ecxEmailStyle18
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="color:#1F497D">Since the MYSQL CDR is not the standard /var/log/asterisk/cdr-csv/Master.csv file, but an add_on where uniqueid is just a table field varchar(32), you could create an AGI to touch the field during the hangup extension and append the servername or a number to the front, so instead of 123456.111 you could have server1.123456.111 or you could make a daemon running outside of Asterisk to do the same thing.</span></p><p class="ecxMsoNormal"><span style="color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Mike<br><b>Sent:</b> Monday, November 21, 2011 11:44 AM<br><b>To:</b> 'Asterisk Users Mailing List - Non-Commercial Discussion'<br><b>Subject:</b> [asterisk-users] CDR uniqueid - across multiple servers?</span></p></div></div><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Hi,</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Is there a way to add a uniqueid prefix to each server to make sure that the CDRs uniqueids are indeed unique across multiple servers? I am using MYSQL tables to keep these records.</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Regards,</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Mike</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"> </p></div><br>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users</div>                                            </div></body>
</html>