<blockquote>
<p>It continues processing, but it never calls next_turn_phtable before exiting. </p>
</blockquote>

<p>It technically <em>does</em> call next_turn_phtable, but on a <em>new</em> presentity in the phtable.  It does not increment the current_turn on the same presentity that it updated last_turn on.  This causes a mismatch on that presentity going forward.</p>

<blockquote>
<p>This will cause the process to lockup forever, waiting for its turn, on the next publish received.</p>
</blockquote>

<p>Specifically, both of the processes in this scenario will continue on their way.  The <em>next</em> publish to the original presentity will lock, because current_turn is less than last_turn, and nothing exists to increment it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/754#issuecomment-171401097">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciSuPhTSkN6TzCqEZ8yIHr6gNyjApks5pZpjDgaJpZM4HEPZn.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/OpenSIPS/opensips/issues/754#issuecomment-171401097"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>