<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Rodrigo,<br>
      <br>
      How many processes you have configured with opensips (the
      "children" parameter) -I assume you do run in "fork=no" mode.<br>
      <br>
      Also, how many records do you have in location table ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 18.03.2016 23:27, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BLUPR02MB1652BAA0243FD8049F78EFC2B58C0@BLUPR02MB1652.namprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper" style="font-size:12pt;
        color:#000000; background-color:#FFFFFF;
        font-family:Calibri,Arial,Helvetica,sans-serif">
        <span id="ms-rterangepaste-start"></span>
        <p>Hi.</p>
        <p><br>
        </p>
        <p>Finally, after 2 weeks analyzing the case, I found the
          solution. So, I would like to share it here:</p>
        <p><br>
        </p>
        <p>modparam("usrloc", "timer_interval", 300)</p>
        <p><br>
        </p>
        <p>After configuring this timer interval equals to 300, the
          issue disappeared.</p>
        <p><br>
        </p>
        <p>Does it make sense?</p>
        <p><br>
        </p>
        <p>In my case, my system will never has more than 2 simultaneous
          calls. It is a project requirement. So, i guess this new timer
          interval will not affect the system.</p>
        <p><br>
        </p>
        <p>Any comment will be very helpful!</p>
        <p><br>
        </p>
        <p>Thanks a lot.</p>
        <span id="ms-rterangepaste-end"></span><br>
        <div id="Signature">
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <div class="BodyFragment"><font size="2">
                <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                  Inatel Competence Center<br>
                  Software<br>
                  Ph: +55 35 3471 9200 RAMAL 979<br>
                </div>
              </font></div>
          </div>
        </div>
        <br>
        <br>
        <div style="color:rgb(0,0,0)">
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
              face="Calibri, sans-serif" color="#000000"><b>De:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org">&lt;users-bounces@lists.opensips.org&gt;</a> em nome de
              Rodrigo Pimenta Carvalho <a class="moz-txt-link-rfc2396E" href="mailto:pimenta@inatel.br">&lt;pimenta@inatel.br&gt;</a><br>
              <b>Enviado:</b> quinta-feira, 17 de março de 2016 14:25<br>
              <b>Para:</b> OpenSIPS users mailling list<br>
              <b>Assunto:</b> Re: [OpenSIPS-Users]
              "WARNING:core:timer_ticker: timer task &lt;ul-timer&gt;
              already schedualed issue." Some hint ?</font>
            <div> </div>
          </div>
          <div>
            <div id="divtagdefaultwrapper" style="font-size:12pt;
              color:#000000; background-color:#FFFFFF;
              font-family:Calibri,Arial,Helvetica,sans-serif">
              <p><br>
              </p>
              <p>Hi.</p>
              <p><br>
              </p>
              <p>I was analyzing more details about this issue.</p>
              <p>I guess the problem rises when OpenSIPS receives a SIP
                REGISTER message in some moment. When OpenSIPS receives
                a SIP REGISTER message, it has to update the location
                table, according to my opensips.cfg file.</p>
              <p>See:</p>
              <p><br>
              </p>
              <p>                if (!save("location")){<br>
                                        sl_reply_error();<br>
                                }                  <br>
                                avp_db_query("UPDATE location SET
                callerName='$fn' WHERE id = last_insert_rowid()");</p>
              <p><br>
              </p>
              <p>So, immediately after saving data in location table,
                there is a db query to update the same table. Maybe it
                is occurring some kind of concurrence here. So I asK:</p>
              <p><br>
              </p>
              <p>1 - Does "<font style="font-size:11pt" face="Calibri,
                  sans-serif" color="#000000">&lt;ul-timer&gt;</font> "
                means something related to user location?</p>
              <p><br>
              </p>
              <p>2 - Is the save function a kind of asynchronous
                routine?</p>
              <p><br>
              </p>
              <p>3 - If it is asynchronous, could it be a good idea to
                put a 'sleep' between such function and the db query?</p>
              <p><br>
              </p>
              <p>Any hint will be very helpful!</p>
              <p><br>
              </p>
              <p>Thanks a a lot.</p>
              <p><br>
              </p>
              <p><br>
              </p>
              <div id="Signature">
                <div name="divtagdefaultwrapper"
                  style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:; margin:0">
                  <div class="BodyFragment"><font size="2">
                      <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                        Inatel Competence Center<br>
                        Software<br>
                        Ph: +55 35 3471 9200 RAMAL 979<br>
                      </div>
                    </font></div>
                </div>
              </div>
              <br>
              <br>
              <div style="color:rgb(0,0,0)">
                <hr tabindex="-1" style="display:inline-block;
                  width:98%">
                <div id="divRplyFwdMsg" dir="ltr"><font
                    style="font-size:11pt" face="Calibri, sans-serif"
                    color="#000000"><b>De:</b>
                    <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
                    <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org">&lt;users-bounces@lists.opensips.org&gt;</a> em nome de
                    Rodrigo Pimenta Carvalho <a class="moz-txt-link-rfc2396E" href="mailto:pimenta@inatel.br">&lt;pimenta@inatel.br&gt;</a><br>
                    <b>Enviado:</b> quinta-feira, 17 de março de 2016
                    09:01<br>
                    <b>Para:</b> OpenSIPS users mailling list<br>
                    <b>Assunto:</b> Re: [OpenSIPS-Users]
                    "WARNING:core:timer_ticker: timer task
                    &lt;ul-timer&gt; already schedualed issue." Some
                    hint ?</font>
                  <div> </div>
                </div>
                <div>
                  <div id="divtagdefaultwrapper" style="font-size:12pt;
                    color:#000000; background-color:#FFFFFF;
                    font-family:Calibri,Arial,Helvetica,sans-serif">
                    <p>Hi.</p>
                    <p><br>
                    </p>
                    <p>What is the module that has Asyn radius? Do you
                      mean module AAA-Radius?</p>
                    <p>In my script opensips.cfg I don't have any module
                      for RADIUS. That is why I think my case might be
                      little different from those seen on old
                      discussions.</p>
                    <p><br>
                    </p>
                    <p>Have you seen any another function from OpenSIPS
                      2.2 that could cause such issue? I'm using
                      OpenSIPS 2.2 too.</p>
                    <p><br>
                    </p>
                    <p>Best regards.<br>
                    </p>
                    <p><br>
                    </p>
                    <div id="Signature">
                      <div name="divtagdefaultwrapper"
                        style="font-family:Calibri,Arial,Helvetica,sans-serif;
                        font-size:; margin:0">
                        <div class="BodyFragment"><font size="2">
                            <div class="PlainText">RODRIGO PIMENTA
                              CARVALHO<br>
                              Inatel Competence Center<br>
                              Software<br>
                              Ph: +55 35 3471 9200 RAMAL 979<br>
                            </div>
                          </font></div>
                      </div>
                    </div>
                    <br>
                    <br>
                    <div style="color:rgb(0,0,0)">
                      <hr tabindex="-1" style="display:inline-block;
                        width:98%">
                      <div id="divRplyFwdMsg" dir="ltr"><font
                          style="font-size:11pt" face="Calibri,
                          sans-serif" color="#000000"><b>De:</b>
                          <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
                          <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org">&lt;users-bounces@lists.opensips.org&gt;</a> em
                          nome de Dragomir Haralambiev
                          <a class="moz-txt-link-rfc2396E" href="mailto:goup2010@gmail.com">&lt;goup2010@gmail.com&gt;</a><br>
                          <b>Enviado:</b> quinta-feira, 17 de março de
                          2016 03:35<br>
                          <b>Para:</b> OpenSIPS users mailling list<br>
                          <b>Assunto:</b> Re: [OpenSIPS-Users]
                          "WARNING:core:timer_ticker: timer task
                          &lt;ul-timer&gt; already schedualed issue."
                          Some hint ?</font>
                        <div> </div>
                      </div>
                      <div>
                        <div dir="ltr">Hi,
                          <div><br>
                            <div>I check my log. I have same messages
                              too.<br>
                              <br>
                              This is appear when use Asyn radius at
                              Opensips 2.2.</div>
                            <div><br>
                            </div>
                            <div>Regards,</div>
                            <div>Dragomir<br>
                              <strong style="color:rgb(24,86,98);
                                font-family:'Trebuchet
                                MS',sans-serif,Verdana,Arial;
                                font-size:15.6096px;
                                line-height:21.5933px;
                                text-align:-webkit-center"><br>
                                 </strong> </div>
                          </div>
                          <div><br>
                          </div>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">2016-03-16 20:03
                            GMT+02:00 Rodrigo Pimenta Carvalho <span
                              dir="ltr">
                              &lt;<a moz-do-not-send="true"
                                href="mailto:pimenta@inatel.br"
                                target="_blank">pimenta@inatel.br</a>&gt;</span>:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex; border-left:1px
                              #ccc solid; padding-left:1ex">
                              <div dir="ltr">
                                <div style="font-size:12pt;
                                  color:#000000;
                                  background-color:#ffffff;
                                  font-family:Calibri,Arial,Helvetica,sans-serif">
                                  <p>Hi.</p>
                                  <p>Since some days ago I'm analyzing
                                    an issue related to
                                    "WARNING:core:timer_ticker: timer
                                    task &lt;ul-timer&gt; already
                                    scheduled".</p>
                                  <p><br>
                                  </p>
                                  <p>Some times my OpenSIPS starts
                                    printing 'like in a loop' too many
                                    messages about
                                    "WARNING:core:timer_ticker: timer
                                    task &lt;ul-timer&gt; already
                                    schedualed". See below a part of my
                                    log. I have read some discussions
                                    about it, but the information didn't
                                    help me, because my case might be
                                    little different from those seen on
                                    old discussions.</p>
                                  <p><br>
                                  </p>
                                  <p>So, I have some basic questions:</p>
                                  <p><br>
                                  </p>
                                  <p>1 - What does mean
                                    "WARNING:core:timer_ticker: timer
                                    task &lt;ul-timer&gt; already
                                    schedualed" in terms of OpenSIPS
                                    task scheduler?</p>
                                  <p><br>
                                  </p>
                                  <p>2 - What should I try to avoid this
                                    issue? Some special configuration on
                                    opensips.cfg? Or maybe give up
                                    accessing the database sqlite?</p>
                                  <p><br>
                                  </p>
                                  <p>3 - If I do nothing about it, after
                                    some time receiving such warning,
                                    what will be the logic consequence?</p>
                                  <p><br>
                                  </p>
                                  <p>Any hint will be very helpful!</p>
                                  <p><br>
                                  </p>
                                  <p>Thanks alot.</p>
                                  <p><br>
                                  </p>
                                  <p>-------------------------------------------------------------------------------------------------------------------------------------------------</p>
                                  <p><br>
                                  </p>
                                  <p>Mar 16 17:36:27 colibri-imx6
                                    opensips[12369]: new branch at
                                    <a class="moz-txt-link-abbreviated" href="mailto:sip:6001@192.168.100.156:64917;transport=TCP;ob">sip:6001@192.168.100.156:64917;transport=TCP;ob</a><br>
                                    Mar 16 17:36:27 colibri-imx6
                                    opensips[12369]: new branch at
                                    <a class="moz-txt-link-abbreviated" href="mailto:sip:6001@177.79.5.103:1880;transport=TCP;rinstance=444fe9d0040e73ce">sip:6001@177.79.5.103:1880;transport=TCP;rinstance=444fe9d0040e73ce</a><br>
                                    Mar 16 17:36:27 colibri-imx6
                                    opensips[12369]: new branch at
                                    <a class="moz-txt-link-abbreviated" href="mailto:sip:6001@177.79.5.103:1880;transport=TCP;rinstance=444fe9d0040e73ce">sip:6001@177.79.5.103:1880;transport=TCP;rinstance=444fe9d0040e73ce</a><br>
                                    Mar 16 17:36:31 colibri-imx6
                                    opensips[12369]: Mar 16 17:36:31
                                    [12381] WARNING:rr:after_strict: no
                                    socket found to match RR [1][<a
                                      moz-do-not-send="true"
                                      href="http://192.168.100.166:5060"
                                      target="_blank">192.168.100.166:5060</a>]<br>
                                    Mar 16 17:36:46 colibri-imx6
                                    opensips[12369]: new branch at
                                    <a class="moz-txt-link-abbreviated" href="mailto:sip:6002@192.168.100.108:34113;transport=TCP;rinstance=b79e897f4f560fa5">sip:6002@192.168.100.108:34113;transport=TCP;rinstance=b79e897f4f560fa5</a><br>
                                    Mar 16 17:36:47 colibri-imx6
                                    opensips[12369]: Mar 16 17:36:47
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2980740 ms), it may overlap..<br>
                                    Mar 16 17:36:48 colibri-imx6
                                    opensips[12369]: incoming reply<br>
                                    Mar 16 17:36:48 colibri-imx6
                                    opensips[12369]: Mar 16 17:36:48
                                    [12381] WARNING:rr:after_strict: no
                                    socket found to match RR [1][<a
                                      moz-do-not-send="true"
                                      href="http://192.168.100.166:5060"
                                      target="_blank">192.168.100.166:5060</a>]<br>
                                    Mar 16 17:37:00 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:00
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2993620 ms), it may overlap..<br>
                                    Mar 16 17:37:01 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:01
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2994610 ms), it may overlap..<br>
                                    Mar 16 17:37:02 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:02
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2995600 ms), it may overlap..<br>
                                    Mar 16 17:37:03 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:03
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2996590 ms), it may overlap..<br>
                                    Mar 16 17:37:04 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:04
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2997580 ms), it may overlap..<br>
                                    Mar 16 17:37:05 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:05
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2998570 ms), it may overlap..<br>
                                    Mar 16 17:37:06 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:06
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    2999560 ms), it may overlap..<br>
                                    Mar 16 17:37:07 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:07
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3000550 ms), it may overlap..<br>
                                    Mar 16 17:37:08 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:08
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3001540 ms), it may overlap..<br>
                                    Mar 16 17:37:09 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:09
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3002530 ms), it may overlap..<br>
                                    Mar 16 17:37:10 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:10
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3003520 ms), it may overlap..<br>
                                    Mar 16 17:37:11 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:11
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3004510 ms), it may overlap..<br>
                                    Mar 16 17:37:12 colibri-imx6
                                    opensips[12369]: Mar 16 17:37:12
                                    [12378] WARNING:core:timer_ticker:
                                    timer task &lt;ul-timer&gt; already
                                    schedualed for 2970850 ms (now
                                    3005500 ms), it may overlap..</p>
                                  <p><br>
                                  </p>
                                  <p>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
                                  </p>
                                  <p><br>
                                  </p>
                                  <p><br>
                                  </p>
                                  <div>
                                    <div name="divtagdefaultwrapper">
                                      <div><font size="2">
                                          <div>RODRIGO PIMENTA CARVALHO<br>
                                            Inatel Competence Center<br>
                                            Software<br>
                                            Ph: <a
                                              moz-do-not-send="true"
                                              href="tel:%2B55%2035%203471%209200"
                                              value="+553534719200"
                                              target="_blank">
                                              +55 35 3471 9200</a> RAMAL
                                            979<br>
                                          </div>
                                        </font></div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <br>
_______________________________________________<br>
                              Users mailing list<br>
                              <a moz-do-not-send="true"
                                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                              <a moz-do-not-send="true"
                                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                              <br>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>