<p></p>
<p dir="auto">For selectively tracing sip messages <em>sent</em> by kamailio, we successfully use onsend_route: but this works for forwarded requests/responses only.</p>
<p dir="auto">For locally generated messages, there does not seem to be a reliable method:<br>
– tm:local-request: message is usually not final, not executed for locally generated ACK and CANCEL<br>
– tm:local-response: works for responses only (triggered <em>after</em> sending)<br>
– sl:local-response: works for responses only (triggered <em>after</em> sending)</p>
<p dir="auto">We also tried event_route[network:msg], but sip_trace() does not work there (msg not parsed/available?).</p>
<p dir="auto">Might it be possible to add a core option "onsend_route_localsrc", that can be enabled to make kamailio trigger onsend_route also for locally generated requests (and also locally generated responses, if "onsend_route_reply" is enabled)?</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/2933">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLW4EXAM7LUFB45OLLUL7TWHANCNFSM5IABVP7A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZKPLQL6QQXV6C77IKLUL7TWHA5CNFSM5IABVP7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PWDK3PQ.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/2933",
"url": "https://github.com/kamailio/kamailio/issues/2933",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>