<p>Ah, I looked through the code for usrloc and found where it registers the timer.  It looks like if you have timer_interval set to 0 but timer_procs set to something > 0 (which I did due to cruft) it will spawn a new process and use timer_interval multiplied by 1000 (resulting in 0) for the amount of time to sleep, resulting in the churn.  I should probably have looked at that first!</p>

<p>The relevant functions I looked at are:<br>
<a href="https://github.com/kamailio/kamailio/blob/master/modules/usrloc/ul_mod.c#L329">https://github.com/kamailio/kamailio/blob/master/modules/usrloc/ul_mod.c#L329</a><br>
<a href="https://github.com/kamailio/kamailio/blob/master/modules/usrloc/ul_mod.c#L393">https://github.com/kamailio/kamailio/blob/master/modules/usrloc/ul_mod.c#L393</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/165#issuecomment-104037968">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUP368xxTp_S7QlC7ouCERW6FDWtks5oLO3rgaJpZM4EiXWc.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/165#issuecomment-104037968"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>