@eschmidbauer commented on this pull request.


In src/modules/nats/nats_mod.c:

>  	}
 
 	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);
+	}
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;


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3154/review/1013437556@github.com>