<p></p>
<p><b>@eschmidbauer</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/kamailio/kamailio/pull/3154#discussion_r902501177">src/modules/nats/nats_mod.c</a>:</p>
<pre style='color:#555'>> }
fmsg = faked_msg_next();
memcpy(&tmsg, fmsg, sizeof(sip_msg_t));
fmsg = &tmsg;
set_route_type(EVENT_ROUTE);
init_run_actions_ctx(&ctx);
- run_top_route(event_rt.rlist[rt], fmsg, 0);
+ if (rt < 0 && keng) {
+ if (sr_kemi_route(keng, fmsg, EVENT_ROUTE,
+ &nats_event_callback, evname) < 0) {
+ LM_ERR("error running event route kemi callback\n");
+ }
+ } else {
+ run_top_route(event_rt.rlist[rt], fmsg, 0);
+ }
</pre>
<pre class="notranslate"><code class="notranslate">if (rt < 0 && keng) {
if (sr_kemi_route(keng, fmsg, EVENT_ROUTE, &nats_event_callback, evname) < 0) {
LM_ERR("error running event route kemi callback\n");
}
return 0;
}
run_top_route(event_rt.rlist[rt], fmsg, 0);
return 0;
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3154#pullrequestreview-1013437556">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJZUTA7YYHGVMTCMWDVQGRPZANCNFSM5ZGPA7IA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOD3NILIDMAMD6BJV3VQGRPZA5CNFSM5ZGPA7IKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOHRT5I5A.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3154/review/1013437556</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3154#pullrequestreview-1013437556",
"url": "https://github.com/kamailio/kamailio/pull/3154#pullrequestreview-1013437556",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>