From 549cb2115ae02c306c69bfc8f3d9c79251b06fcf Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Mon, 12 Aug 2024 11:36:14 +0200 Subject: [PATCH] rtcpsummary: use new bevent API --- modules/rtcpsummary/rtcpsummary.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/rtcpsummary/rtcpsummary.c b/modules/rtcpsummary/rtcpsummary.c index f253352387..b3506fe972 100644 --- a/modules/rtcpsummary/rtcpsummary.c +++ b/modules/rtcpsummary/rtcpsummary.c @@ -59,16 +59,11 @@ static void print_rtcp_summary_line(const struct call *call, } -static void ua_event_handler(struct ua *ua, - enum ua_event ev, - struct call *call, - const char *prm, - void *arg) +static void event_handler(enum ua_event ev, struct bevent *event, void *arg) { const struct stream *s; struct le *le; - (void)ua; - (void)prm; + struct call *call = bevent_get_call(event); (void)arg; switch (ev) { @@ -90,7 +85,7 @@ static void ua_event_handler(struct ua *ua, static int module_init(void) { - int err = uag_event_register(ua_event_handler, NULL); + int err = bevent_register(event_handler, NULL); if (err) { info("Error loading rtcpsummary module: %d", err); return err; @@ -102,7 +97,7 @@ static int module_init(void) static int module_close(void) { debug("rtcpsummary: module closing..\n"); - uag_event_unregister(ua_event_handler); + bevent_unregister(event_handler); return 0; }