<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Bogdan,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Here is another update:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The problem exists when I register an Aastra 6731i phone, but does not when I register a Snom 360 phone.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As explained before, it does not happen at all on my Ubuntu test server. It only happens on my CentOS test server. Both are running the same opensips.cfg file, but they are running different versions of OpenSIPS. Both are using a locally hosted MySQL database to store user data (opensips.subscriber) and location data (opensips.location). I can see no errors in the log files.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Do you have any ideas or suggestions for additional tests? For example, should I reconfigure the CentOS OpenSIPS to use the Ubuntu MySQL server in case it is a database problem?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John Quick<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [mailto:bogdan@opensips.org] <br><b>Sent:</b> 08 July 2011 16:32<br><b>To:</b> john.quick@smartvox.co.uk<br><b>Cc:</b> users@lists.opensips.org<br><b>Subject:</b> Re: [OpenSIPS-Users] SNMPStats - openserSIPRegCurrentUsers is always incrementing<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Hi John,<br><br>I tried to reproduce this on live system and I do not see this difference:<br><br>tester001:~# opensipsctl fifo get_statistics usrloc:<br><b><span style='color:#CC0000'>usrloc:registered_users = 53</span></b><br>usrloc:location-users = 53<br>usrloc:location-contacts = 56<br>usrloc:location-expires = 84<br>tester001:~# opensipsctl ul show --brief&nbsp; | wc -l<br><b><span style='color:#CC0000'>54</span></b><br><br>Also running with DB mode 2.<br><br>The counter is decremented when a contact is removed from memory hash.<br><br>Regards,<br>Bogdan<br><br>On 06/27/2011 06:00 PM, John Quick wrote: <o:p></o:p></p><pre style='margin-left:36.0pt'>Yes.<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>John<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>-----Original Message-----<o:p></o:p></pre><pre style='margin-left:36.0pt'>From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <o:p></o:p></pre><pre style='margin-left:36.0pt'>Sent: 27 June 2011 14:49<o:p></o:p></pre><pre style='margin-left:36.0pt'>To: <a href="mailto:john.quick@smartvox.co.uk">john.quick@smartvox.co.uk</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>Subject: Re: [OpenSIPS-Users] SNMPStats - openserSIPRegCurrentUsers is<o:p></o:p></pre><pre style='margin-left:36.0pt'>always incrementing<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Hi John,<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>So you are saying that &quot;opensipsctl ul show&quot; shows only 2 records while the<o:p></o:p></pre><pre style='margin-left:36.0pt'>statistic shows more ??<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Regards,<o:p></o:p></pre><pre style='margin-left:36.0pt'>Bogdan<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>On 06/25/2011 10:37 PM, John Quick wrote:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre style='margin-left:36.0pt'>Bogdan,<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Here is a snippet showing the significant parts from the script that I <o:p></o:p></pre><pre style='margin-left:36.0pt'>use for handling REGISTER requests, but I think there is only one line <o:p></o:p></pre><pre style='margin-left:36.0pt'>that is unusual.<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp; <o:p></o:p></pre><pre style='margin-left:36.0pt'>modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, 6)<o:p></o:p></pre><pre style='margin-left:36.0pt'>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<o:p></o:p></pre><pre style='margin-left:36.0pt'>modparam(&quot;usrloc&quot;, &quot;use_domain&quot;, 1)<o:p></o:p></pre><pre style='margin-left:36.0pt'>modparam(&quot;registrar&quot;, &quot;default_q&quot;, 800) modparam(&quot;registrar&quot;, <o:p></o:p></pre><pre style='margin-left:36.0pt'>&quot;received_avp&quot;, &quot;$avp(s:rcv)&quot;)<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp; <o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; if (client_nat_test(&quot;2&quot;)) {<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp; setbflag(6);<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp; fix_nated_register();<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp; force_rport();<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; if (!aaa_www_authorize(&quot;&quot;)) {<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;&quot;,&quot;0&quot;);<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; };<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; if (!db_check_to()) {<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;401&quot;, &quot;Unauthorized&quot;);<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; };<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; consume_credentials();<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; if (!save(&quot;location&quot;)) {<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, &quot;***--REGISTER: location save failed!\n&quot;);<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>In case the consume_credentials() function was causing the fault, I <o:p></o:p></pre><pre style='margin-left:36.0pt'>repeated my tests with that line commented out. However, the counter <o:p></o:p></pre><pre style='margin-left:36.0pt'>is still going up.<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>There is no &quot;ul dump&quot; option in opensipsctl, but there is a &quot;ul show&quot;<o:p></o:p></pre><pre style='margin-left:36.0pt'>function. It shows the correct information:<o:p></o:p></pre><pre style='margin-left:36.0pt'>[root@centos6v log]# opensipsctl fifo get_statistics usrloc:<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:registered_users = 3<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-users = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-contacts = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-expires = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-users = 3<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-contacts = 2<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-expires = 1<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>[root@centos6v log]# opensipsctl ul show<o:p></o:p></pre><pre style='margin-left:36.0pt'>Domain:: location table=512 records=2<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: <a href="mailto:1002@suse-sip.com">1002@suse-sip.com</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: <a href="sip:1002@192.168.0.60:6050">sip:1002@192.168.0.60:6050</a> Q=1<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 3551<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid:: 3c2670ace4cd-m9fekwu548ay<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 6<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: snom360/7.3.30<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_SYNC<o:p></o:p></pre><pre style='margin-left:36.0pt'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flags:: 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:192.168.0.116:5060<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 7999<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: <a href="mailto:1003@suse-sip.com">1003@suse-sip.com</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Contact:: <a href="sip:1003@192.168.0.67:5060;transport=udp">sip:1003@192.168.0.67:5060;transport=udp</a> Q=0.8<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 3288<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid:: b939e48a7188d2cf<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 4400<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;User-agent:: Aastra 6731i/2.6.0.1008<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_SYNC<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:192.168.0.116:5060<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 7807<o:p></o:p></pre><pre style='margin-left:36.0pt'>Domain:: aliases table=512 records=0<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>John<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>-----Original Message-----<o:p></o:p></pre><pre style='margin-left:36.0pt'>From: Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]<o:p></o:p></pre><pre style='margin-left:36.0pt'>Sent: 25 June 2011 12:51<o:p></o:p></pre><pre style='margin-left:36.0pt'>To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>; John Quick<o:p></o:p></pre><pre style='margin-left:36.0pt'>Subject: Re: [OpenSIPS-Users] SNMPStats - openserSIPRegCurrentUsers is <o:p></o:p></pre><pre style='margin-left:36.0pt'>always incrementing<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Hi John,<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>As the statistic is know to work well, I suspect something strange <o:p></o:p></pre><pre style='margin-left:36.0pt'>with your setup (like re-registrations are actually new registers). <o:p></o:p></pre><pre style='margin-left:36.0pt'>So, in the same time, please check the content of user location via:<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; opensipsctl ul dump<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Just to see the actual records.<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Regards,<o:p></o:p></pre><pre style='margin-left:36.0pt'>Bogdan<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>On 06/24/2011 06:15 PM, John Quick wrote:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre style='margin-left:36.0pt'>Hi Bogdan<o:p></o:p></pre><pre style='margin-left:36.0pt'>Yes, I can confirm that registered_users shows the same value through <o:p></o:p></pre><pre style='margin-left:36.0pt'>the fifo get_statistics request and the SNMP MIB value. The statistic <o:p></o:p></pre><pre style='margin-left:36.0pt'>that appears to show the correct number of registered users is <o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-contacts<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Here is the complete list of usrloc statistics on my test server <o:p></o:p></pre><pre style='margin-left:36.0pt'>today<o:p></o:p></pre><pre style='margin-left:36.0pt'>- only one UA is registered at the moment:<o:p></o:p></pre><pre style='margin-left:36.0pt'># opensipsctl fifo get_statistics usrloc:<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:registered_users = 14<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-users = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-contacts = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:aliases-expires = 0<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-users = 14<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-contacts = 1<o:p></o:p></pre><pre style='margin-left:36.0pt'>usrloc:location-expires = 13<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Sorry I cannot maintain the thread on this reply - I am only <o:p></o:p></pre><pre style='margin-left:36.0pt'>receiving digests from this forum and have forgotten my login details <o:p></o:p></pre><pre style='margin-left:36.0pt'>so cannot change it.<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>John Quick<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Message: 2<o:p></o:p></pre><pre style='margin-left:36.0pt'>Date: Fri, 24 Jun 2011 16:47:12 +0300<o:p></o:p></pre><pre style='margin-left:36.0pt'>From: Bogdan-Andrei Iancu<a href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>Subject: Re: [OpenSIPS-Users] SNMPStats - openserSIPRegCurrentUsers is<o:p></o:p></pre><pre style='margin-left:36.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; always incrementing<o:p></o:p></pre><pre style='margin-left:36.0pt'>To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>Message-ID:<a href="mailto:4E049560.5020706@opensips.org">&lt;4E049560.5020706@opensips.org&gt;</a><o:p></o:p></pre><pre style='margin-left:36.0pt'>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Hi John,<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>That stat is related to the internal statistic &quot;registered_users&quot;<o:p></o:p></pre><pre style='margin-left:36.0pt'>provided by the usrloc module. Can you confirm that &quot;opensipsctl fifo <o:p></o:p></pre><pre style='margin-left:36.0pt'>get_statistics registered_users&quot; gives thesame value as via SNMP ?<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>Regards,<o:p></o:p></pre><pre style='margin-left:36.0pt'>Bogdan<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre><pre style='margin-left:36.0pt'>On 06/23/2011 12:49 PM, John Quick wrote:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre style='margin-left:36.0pt'>Using SNMPStats with version 1.6.2 of OpenSIPS, the value reported <o:p></o:p></pre><pre style='margin-left:36.0pt'>for openserSIPRegCurrentUsers does not indicate the number of UA's <o:p></o:p></pre><pre style='margin-left:36.0pt'>currently registered. It shows a value that is always increasing <o:p></o:p></pre><pre style='margin-left:36.0pt'>over<o:p></o:p></pre></blockquote><pre style='margin-left:36.0pt'>time.<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre style='margin-left:36.0pt'>I am testing with 3 registered devices. There are three records in <o:p></o:p></pre><pre style='margin-left:36.0pt'>the location table. However, openserSIPRegCurrentUsers now has a <o:p></o:p></pre><pre style='margin-left:36.0pt'>value of<o:p></o:p></pre><pre style='margin-left:36.0pt'>12 and it increments by 1 approximately every 20 minutes. I would <o:p></o:p></pre><pre style='margin-left:36.0pt'>guess it is showing the cumulative total number of registrations, <o:p></o:p></pre><pre style='margin-left:36.0pt'>not the current number of registered users.<o:p></o:p></pre><pre style='margin-left:36.0pt'><o:p>&nbsp;</o:p></pre></blockquote></blockquote></blockquote><p class=MsoNormal style='margin-left:36.0pt'><br><br><o:p></o:p></p><pre style='margin-left:36.0pt'>-- <o:p></o:p></pre><pre style='margin-left:36.0pt'>Bogdan-Andrei Iancu<o:p></o:p></pre><pre style='margin-left:36.0pt'>OpenSIPS solutions and &quot;know-how&quot;<o:p></o:p></pre></div></body></html>