<p></p>
<p>The reset of faked env was something I wanted to ask about, but I didn't comment before because I didn't get the chance to look more at the code.</p>
<p>I think the t_suspend()/t_continue() were somehow limited to be used only once for a request or a reply, not to suspend again from a t_continue(). It does not mean that it has to stay like this, but your commit seems to affect re-suspending a reply. Have you looked also at re-suspending requests? It may just works, because request processing does not imply any forwarding of the message after config route execution, like happens for replies.</p>
<p>If the commit makes it coherent (i.e., re-suspending for requests and replies has similar behaviour), then the PR can be merged if no other comments.</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/pull/2721#issuecomment-831264376">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKCS7BQOLJRX4YKQ3DTL2RJJANCNFSM4345BDPA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZN53LTGEWLEHBJ5Q7DTL2RJJA5CNFSM4345BDPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGGGBM6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2721#issuecomment-831264376",
"url": "https://github.com/kamailio/kamailio/pull/2721#issuecomment-831264376",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>