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 successive
event handlers
  • Loading branch information
cspiel1 committed Dec 4, 2024
1 parent 3f38e92 commit 7a80350
Show file tree
Hide file tree
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
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions test/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a80350

Please sign in to comment.