<p>Indeed the logs don't show that the callback is executed. I checked quickly and the callback is set for execution.</p>

<p>For now I will push a patch based on your changes to reset the flags if the retry interval is reached.</p>

<p>In long term, I may add a second callback for the event when transaction is destroyed to catch the situation when transaction completed is skipped.</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/255#issuecomment-125196266">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdqN98hZBh71WRgeVqAkXJBKDXP-ks5ohiHbgaJpZM4FbjG_.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/255#issuecomment-125196266"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>