Skip to content

Commit

Permalink
menu,test: bevent_stop after ua_accept
Browse files Browse the repository at this point in the history
After accepting a call the bevent should not be handled by following
event handlers
  • Loading branch information
cspiel1 committed Dec 4, 2024
1 parent ea6efb5 commit 2c0e052
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/menu/menu.c
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 2 additions & 0 deletions test/call.c
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 2c0e052

Please sign in to comment.