Hello,
I am running a janus 0.3.1 version and I have some strange behavior when trying to leave a dynamically created room on the audiobridge plugin.
Here is my scenario:
Alice start a session and a master handle into the audiobrdige and then she creates a room but she does not enter into the room.
//session
{"janus":"create","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_0"}
{"janus":"success","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_0","data":{"id":3823944542487956}}
//attaches the audiobrdige plugin
{"janus":"attach","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_1","session_id":3823944542487956,"plugin":"janus.plugin.audiobridge"}
{"janus":"success","session_id":3823944542487956,"transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_1","data":{"id":4722054007529550}}
//creates a room
{"janus":"message","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_2","session_id":3823944542487956,"handle_id":4722054007529550,"body":{"request":"create","room":114,"permanent":false,"description":"114","is_private":false,"sampling":16000,"audiolevel_ext":true,"audiolevel_event":true,"audio_active_packets":100,"audio_level_average":50}}
{"janus":"success","session_id":3823944542487956,"transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_2","sender":4722054007529550,"plugindata":{"plugin":"janus.plugin.audiobridge","data":{"audiobridge":"created","room":114,"permanent":false}}}
Then Bob creates his session and handle and enters the room:
//session
{"janus":"create","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_51"}
{"janus":"success","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_51","data":{"id":8780925604367168}}
// attaching to the plugin
{"janus":"attach","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_52","session_id":8780925604367168,"plugin":"janus.plugin.audiobridge"}
{"janus":"success","session_id":8780925604367168,"transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_52","data":{"id":983121895993400}}
//joins the room
{"janus":"message","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_55","session_id":8780925604367168,"handle_id":983121895993400,"body":{"request":"join","room":114,"id":3,"display":"","muted":false}}
{"janus":"event","session_id":8780925604367168,"transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_55","sender":983121895993400,"plugindata":{"plugin":"janus.plugin.audiobridge","data":{"audiobridge":"joined","room":114,"id":3,"participants":[]}}}
Then Bob leaves the room but unfortunately he gets an error:
{"janus":"message","transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_66","session_id":8780925604367168,"handle_id":983121895993400,"body":{"request":"leave"}}
{"janus":"event","session_id":8780925604367168,"transaction":"f4ace76c-5bd9-4c60-909c-b55a00f63532_66","sender":983121895993400,"plugindata":{"plugin":"janus.plugin.audiobridge","data":{"audiobridge":"event","error_code":487,"error":"Can't leave (not in a room)"}}}
Does anyone can try to reproduce the case ? Is it normal behavior ?
I noticed that when Alice and Bob are in the room, I do not have the error for Bob when he leaves it.
Thanks in advance for the replies :)
Best regard,
Anton