Adds Jicofo paricipant leaving event.

main
Yasen Pramatarov 2024-06-05 21:10:24 +03:00
parent 59c8a6f520
commit 75a5c2eb00
1 changed files with 11 additions and 0 deletions

11
jilo
View File

@ -266,6 +266,17 @@ jitsi_log_parse() {
db_query "$db_insert"
fi
# locate participant leaving event
elif [[ "$line" =~ ([0-9-]+\ [0-9:.]+)\ [A-Z]+:.*\[room=${conference_name}@.*\ meeting_id=${conference_id}\]\ .*\.removeParticipant#.*:\ Removing\ ([a-zA-Z0-9]+) ]]; then
event_time="${BASH_REMATCH[1]}"
event_type='participant leaving'
participant_endpoint_id="${BASH_REMATCH[2]}"
participant_stats_id="" # FIXME
if [[ -n "$conference_id" ]]; then
db_insert=$(printf "$db_insert_participant_template" "$jitsi_component" "$conference_id" "$event_time" "$event_type" "$participant_endpoint_id" "$participant_stats_id" "")
db_query "$db_insert"
fi
# locate the corresponding conference ending event
elif [[ "$line" =~ ([0-9-]+\ [0-9:.]+)\ [A-Z]+:.*\[room=([^ ]+)@.*\ meeting_id=([a-zA-Z0-9-]+)\]\ JitsiMeetConferenceImpl\.stop ]]; then
end_time="${BASH_REMATCH[1]}"