Pass bevent to "call update" event and use to stop bevent when call update is skipped

Prevent other conference calls from closing when one participant hangs up
This commit is contained in:
Juha Heinanen
2026-04-09 18:05:34 +03:00
parent 9d3caf7a5a
commit ffe1946ab9
3 changed files with 13 additions and 3 deletions

View File

@ -210,7 +210,7 @@ static void event_handler(enum bevent_ev ev, struct bevent *event, void *arg)
break;
case BEVENT_CALL_REMOTE_SDP:
ardir = sdp_media_rdir(stream_sdpmedia(audio_strm(call_audio(call))));
len = re_snprintf(event_buf, sizeof event_buf, "call update,%d", ardir);
len = re_snprintf(event_buf, sizeof event_buf, "call update,%d,%ld", ardir, (long)event);
break;
case BEVENT_CALL_MENC:
if (prm[0] == '0')