<div dir="ltr">Hi All,<br><div><br></div><div>I just wanted to feedback on this after a run through of the usrloc source (ucontact.c:518). </div><div><br></div><div>It appears that unless we are running in sql-only cluster mode (we are using full-sharing) the contact_id generation is handled by the module rather than using the database autoincrement. This makes sense now that I think about it, especially given that we are using write-back so the contacts will share an identifier within the cluster before being persisted.</div><div><br></div><div>On that basis I guess we would be sensible to remove the auto_increment option from the table definition to reduce the ambiguity. </div><div><br></div><div>Callum</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 8 Nov 2019 at 17:13, Callum Guy <<a href="mailto:callum.guy@x-on.co.uk">callum.guy@x-on.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>New installation running on OpenSIPs 3.0.1.<br></div><div><br></div>Quick question, has anything changed with regards to the contact_id field of the location tables? The platform I am using implements the database on MySQL NDBCLUSTER however the autoincrement values are going wild - I'm trying to work out if its my database or if we've moved away from auto-inc? I only ask as the newest ID's are not necessarily the largest!<br><div><br></div><div>We've only got three subscribers and look:</div><div><br></div><div><div><img src="cid:ii_k2qedmp00" alt="image.png" style="margin-right: 0px;"><br></div></div><div><br></div><div>Bonkers! That table has been truncated and recreated just before these first registrations came in!</div><div><br></div><div>Here is our table definition in case that's useful:</div><div><font face="monospace"><br>CREATE TABLE `location_th` (<br> `contact_id` BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT,<br> `username` CHAR(64) NOT NULL DEFAULT '',<br> `domain` CHAR(64) DEFAULT NULL,<br> `contact` CHAR(255) NOT NULL DEFAULT '',<br> `received` CHAR(255) DEFAULT NULL,<br> `path` CHAR(255) DEFAULT NULL,<br> `expires` INT(10) UNSIGNED NOT NULL,<br> `q` FLOAT(10,2) NOT NULL DEFAULT '1.00',<br> `callid` CHAR(255) NOT NULL DEFAULT 'Default-Call-ID',<br> `cseq` INT(11) NOT NULL DEFAULT '13',<br> `last_modified` DATETIME NOT NULL DEFAULT '1900-01-01 00:00:01',<br> `flags` INT(11) NOT NULL DEFAULT '0',<br> `cflags` CHAR(255) DEFAULT NULL,<br> `user_agent` CHAR(255) NOT NULL DEFAULT '',<br> `socket` CHAR(64) DEFAULT NULL,<br> `methods` INT(11) DEFAULT NULL,<br> `sip_instance` CHAR(255) DEFAULT NULL,<br> `kv_store` VARCHAR(1000) DEFAULT NULL,<br> `attr` CHAR(255) DEFAULT NULL,<br> PRIMARY KEY (`contact_id`)<br>) ENGINE=NDBCLUSTER AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;</font><br></div></div></div></div>
</blockquote></div>
<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><div><img src="https://www.x-on.co.uk/email/footer/General-Practice-Awards-shortlisted.jpg"></div><div><br></div><div><div><div><font size="4"><b><sup><font face="Verdana">0333 332 0000 | <a href="http://www.x-on.co.uk" target="_blank">www.x-on.co.uk</a> | <sub> </sub></font></sup></b></font><font size="4"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a> <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a> <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><br><p><span style="font-size:6.0pt;font-family:Verdana;color:black">X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>
<p><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p></div></div></div>