<p>You have to refactor not to use msg apply changes after t suspend/continue, or extend it to be safe to use in tm context.</p>

<p>I think we can add this moment a safety check to detect if it is used in tm context and return an error, rather than going this way further and crash.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/676#issuecomment-226769106">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36Zd0VzpKRiqpMVKL1vKwIobznIuYLks5qMqGFgaJpZM4I4VEp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSOD3gEgVGx5-LhZi6EchnsIBYdNks5qMqGFgaJpZM4I4VEp.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/676#issuecomment-226769106"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>