<p></p>
<p>With the current design, the event_route[tm:local-request] can happen while processing other requests, so restoring the previous environment attributes is relevant, otherwise the other requests can be routed using the same xavps. Moreover, there might be situations when these xavps keep accumulating, because nothing cleans them up.</p>
<p>Because the event_route[tm:local-request] is finished before actually the local request is sent out, it will require some redesing to get what you are looking for.</p>
<p>It can be as an enhancement for the future, right now an option would be to loop the keepalives back to kamailio via the outbound proxy param and then have the options routed via request_route.</p>
<p>If someone wants to work on such enhancement, announce yourself here.</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/2413#issuecomment-666236963">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZODRCGI2P5DRO4OPSTR6EX7NANCNFSM4PKXAVVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK4EWG3FDIOFVBIDC3R6EX7NA5CNFSM4PKXAVVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE627QIY.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/issues/2413#issuecomment-666236963",
"url": "https://github.com/kamailio/kamailio/issues/2413#issuecomment-666236963",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>