Dear All,<br><br>When User use sip client login in to openSIPS server.<br>The &quot;location&quot; table will create a record to save the user login information.<br>But the frequency of updated table is very slow (about once / one minute).<br>
(Q1)How to make the &quot;location&quot; table updated information of &quot;login in&quot; <span class="dct-tt">immediately ?<br><br></span>(Q2)I am trying to use command &quot;<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CKENNET%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CKENNET%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CKENNET%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:新細明體;
        panose-1:2 2 3 0 0 0 0 0 0 0;
        mso-font-alt:PMingLiU;
        mso-font-charset:136;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 22 0 1048577 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
        {font-family:"\@新細明體";
        panose-1:2 2 3 0 0 0 0 0 0 0;
        mso-font-charset:136;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 22 0 1048577 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:新細明體;
        mso-bidi-font-family:新細明體;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:10.0pt;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        mso-ascii-font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";
        mso-hansi-font-family:"Times New Roman";
        mso-font-kerning:0pt;}
 /* Page Definitions */
 @page
        {mso-page-border-surround-header:no;
        mso-page-border-surround-footer:no;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.WordSection1
        {page:WordSection1;}
-->
</style><span lang="EN-US">opensipsctl online</span>&quot; to query &quot;user login information&quot; immediately.<br>&nbsp; &nbsp; &nbsp;&nbsp; but when over 50000 user login at the same time, the command seems to be crash.<br>&nbsp; &nbsp; &nbsp;&nbsp; Does the command &quot;opensipsctr online&quot; have any restrictions on use? <br>
<br>(Q3) could the command &quot;opensipsctl online&quot; limit the range of query &quot;online users&quot; ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; example : opensipsctl online 1 to 1000&nbsp;&nbsp; ==&gt;&nbsp; that to query only 1000 online user.<br><br><br><br>
※table schema :<br><br>CREATE TABLE `location` (<br>&nbsp; `id` int(10) unsigned NOT NULL auto_increment,<br>&nbsp; `username` char(64) NOT NULL default &#39;&#39;,<br>&nbsp; `domain` char(64) default NULL,<br>&nbsp; `contact` char(255) NOT NULL default &#39;&#39;,<br>
&nbsp; `received` char(128) default NULL,<br>&nbsp; `path` char(128) default NULL,<br>&nbsp; `expires` datetime NOT NULL default &#39;2020-05-28 21:32:15&#39;,<br>&nbsp; `q` float(10,2) NOT NULL default &#39;1.00&#39;,<br>&nbsp; `callid` char(255) NOT NULL default &#39;Default-Call-ID&#39;,<br>
&nbsp; `cseq` int(11) NOT NULL default &#39;13&#39;,<br>&nbsp; `last_modified` datetime NOT NULL default &#39;1900-01-01 00:00:01&#39;,<br>&nbsp; `flags` int(11) NOT NULL default &#39;0&#39;,<br>&nbsp; `cflags` int(11) NOT NULL default &#39;0&#39;,<br>
&nbsp; `user_agent` char(255) NOT NULL default &#39;&#39;,<br>&nbsp; `socket` char(64) default NULL,<br>&nbsp; `methods` int(11) default NULL,<br>&nbsp; PRIMARY KEY&nbsp; (`id`),<br>&nbsp; KEY `account_contact_idx` (`username`,`domain`,`contact`)<br>) ENGINE=MyISAM AUTO_INCREMENT=76612 DEFAULT CHARSET=latin1<br>
<br><br>Thanks!!<br>Best regards,<br><br>YITA.<br><br><br>