lua plugin querySession

18 views
Skip to first unread message

Mirko Brankovic

unread,
Jul 21, 2022, 10:25:38 AM7/21/22
to meetecho-janus
Hi,
What would be the way to query lua plugin sessions via admin API?
This one, querySession(id) :

I did try like:
{
   "janus":"message_plugin", 
   "plugin":"janus.plugin.lua",
   "request":
    {
           "request":"info",
           "session":38961
     }
}
and similar forms in request: {} but all the time i get success response with empty response payload.

Thanks,
Mirko

Lorenzo Miniero

unread,
Jul 22, 2022, 9:18:39 AM7/22/22
to meetecho-janus
query_session() is for what's added to the plugin specific information when you send a "handle_info" request to the Admin API, and so has nothing to do with custom plugin APIs. If you want to add a new "info" request to the videoroom.lua plugin logic, it's in handleMessage you have to add new code: this is where we handle a "list" synchronously for instance, https://github.com/meetecho/janus-gateway/blob/master/src/plugins/lua/videoroom.lua#L233

L.

Mirko Brankovic

unread,
Jul 22, 2022, 9:49:28 AM7/22/22
to meetecho-janus
great thanks, got to the similar conclusion just minutes ago, still wasn't 100% what query_session() was for, but now it is all clear.

Thanks a lot :)

--
You received this message because you are subscribed to a topic in the Google Groups "meetecho-janus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meetecho-janus/x_4Uij4WYQk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/2d50eb6b-9bc8-4fb5-b1d6-d33aa995c3fcn%40googlegroups.com.


--
Regards,
Mirko
Reply all
Reply to author
Forward
0 new messages