<p>In order to reproduce the issue, I added a firewall rule to drop the response from the UAS. I saw the 'got sip response 408 while registering' message in the log and the flags were reset, so there must be some other rare condition which is causing the flags to get stuck in UAC_REG_ONGOING. This seems to occur once every few days (with registration being done approximately every 60 to 90 seconds),  and even sometimes up to a week before I've seen the problem reoccur. I'll try to catch the next occurrence, and see what information is in the log when it occurs.</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/issues/149#issuecomment-99597089">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZStGnntIFHCkEWrbI-llExB5rVW2ks5oGnCagaJpZM4EQv4X.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/issues/149#issuecomment-99597089"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>