[sr-dev] [kamailio/kamailio] nats: add KEMI publish function and event_callback param (PR #3154)

Emmanuel Schmidbauer notifications at github.com
Tue Jun 21 13:29:00 CEST 2022


@eschmidbauer commented on this pull request.



>  	}
 
 	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 or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3154#pullrequestreview-1013437556
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3154/review/1013437556 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220621/0612b301/attachment.htm>


More information about the sr-dev mailing list