From 2c0e0529297445f813873c411dd67a476ade7fc9 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Wed, 4 Dec 2024 15:22:51 +0100 Subject: [PATCH] menu,test: bevent_stop after ua_accept After accepting a call the bevent should not be handled by following event handlers --- modules/menu/menu.c | 1 + test/call.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/menu/menu.c b/modules/menu/menu.c index 63c3770f0..515f97df0 100644 --- a/modules/menu/menu.c +++ b/modules/menu/menu.c @@ -710,6 +710,7 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg) return; } + bevent_stop(event); break; case UA_EVENT_CALL_INCOMING: diff --git a/test/call.c b/test/call.c index 38fb98d50..f2e7e4907 100644 --- a/test/call.c +++ b/test/call.c @@ -659,6 +659,8 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg) err); return; } + + bevent_stop(event); } if (ua == f->a.ua)