<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    you added an extra parameter to the function as well, so there
    should be other modifications. Better send the patch with your
    changes to see if there is something wrong. If you got it from git,
    run:<br>
    <br>
    git diff &gt;/path/to/patchfile<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/9/12 2:00 PM, Rene Bormann wrote:<br>
    </div>
    <blockquote cite="mid:507411FA.7060901@gmx.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <div style="font-family: Courier New,Courier,monospace;">
        <div class="moz-text-flowed" style="font-family: -moz-fixed">Hello&nbsp;@all,
          <br>
          <br>
          want&nbsp;to&nbsp;use&nbsp;the&nbsp;remote&nbsp;register&nbsp;function&nbsp;of&nbsp;the&nbsp;UAC&nbsp;module.
          <br>
          We&nbsp;need&nbsp;to&nbsp;register&nbsp;42&nbsp;accounts&nbsp;on&nbsp;one&nbsp;openSER&nbsp;server.
          <br>
          <br>
At&nbsp;kamailio&nbsp;startup&nbsp;those&nbsp;42&nbsp;remote&nbsp;register&nbsp;requests&nbsp;will&nbsp;be&nbsp;startet&nbsp;at&nbsp;the&nbsp;same&nbsp;time.
          <br>
          This leads to a kind of FlodAttact on the openSER server of
          our provider, which will block&nbsp;us&nbsp;:-(
          <br>
          <br>
We&nbsp;would&nbsp;like&nbsp;to&nbsp;delay&nbsp;each&nbsp;initial&nbsp;remote&nbsp;register&nbsp;by&nbsp;1&nbsp;second.
          <br>
          <br>
          We searched the UAC module and taught that at some place the
          uac.so module has to
load&nbsp;the&nbsp;uacreg&nbsp;table&nbsp;and&nbsp;do&nbsp;some&nbsp;for&nbsp;loop&nbsp;to&nbsp;start&nbsp;the&nbsp;remote&nbsp;register&nbsp;process.<br>
          <br>
          We found function child_init() in uac.c where the function
          uac_reg_load_db() is called&nbsp;followed&nbsp;uac_reg_timer().
          <br>
          <br>
          Our&nbsp;change&nbsp;to&nbsp;uac_reg_timer()&nbsp;is&nbsp;the&nbsp;sleep(1).
          <br>
          <br>
After&nbsp;compiling&nbsp;it&nbsp;seems&nbsp;to&nbsp;us&nbsp;-&nbsp;that&nbsp;this&nbsp;function&nbsp;is&nbsp;not&nbsp;called.
          <br>
          Is&nbsp;there&nbsp;anybody&nbsp;how&nbsp;has&nbsp;a&nbsp;tip&nbsp;for&nbsp;us?
          <br>
          <br>
          Thanks,
          <br>
          <br>
          Ren&eacute;
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          /**
          <br>
          &nbsp;*
          <br>
          &nbsp;*/
          <br>
void&nbsp;uac_reg_timer(unsigned&nbsp;int&nbsp;ticks,&nbsp;unsigned&nbsp;int&nbsp;initial_reg_call)
          <br>
          {
          <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LM_ERR("-----------------------&nbsp;uac_reg_timer()&nbsp;--&nbsp;enter&nbsp;\n");
          <br>
          &lt;------&gt;int&nbsp;i;
          <br>
          &lt;------&gt;reg_item_t&nbsp;*it&nbsp;=bsp;NULL;
          <br>
          &lt;------&gt;time_t&nbsp;tn;
          <br>
          <br>
          &lt;------&gt;tn&nbsp;=bsp;time(NULL);
          <br>
          &lt;------&gt;for(i=&nbsp;i&lt;_reg_htable-&gt;htsize;&nbsp;i++)
          <br>
          &lt;------&gt;{
          <br>
          &lt;------&gt;&lt;------&gt;/*&nbsp;free&nbsp;entries&nbsp;*/
          <br>
&lt;------&gt;&lt;------&gt;it&nbsp;=bsp;_reg_htable-&gt;entries[i].byuuid;
          <br>
          &lt;------&gt;&lt;------&gt;while(it)
          <br>
          &lt;------&gt;&lt;------&gt;{
          <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LM_ERR("-----------------------&nbsp;uac_reg_timer()&nbsp;--&nbsp;1&nbsp;\n");
          <br>
          <br>
&lt;------&gt;&lt;------&gt;&lt;------&gt;if&nbsp;(initial_reg_call&nbsp;=nbsp;1)
          <br>
          &lt;------&gt;&lt;------&gt;&lt;------&gt;{
          <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          LM_ERR("----------------------- uac_reg_timer() -- 2 \n");
          <br>
&lt;------&gt;&lt;------&gt;&lt;------&gt;&lt;------&gt;sleep(1);
          <br>
          &lt;------&gt;&lt;------&gt;&lt;------&gt;}
          <br>
&lt;------&gt;&lt;------&gt;&lt;------&gt;uac_reg_update(it-&gt;r,&nbsp;tn);
          <br>
          &lt;------&gt;&lt;------&gt;&lt;------&gt;it&nbsp;=bsp;it-&gt;next;
          <br>
          &lt;------&gt;&lt;------&gt;}
          <br>
          &lt;------&gt;}
          <br>
          }
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a></pre>
  </body>
</html>