[jitsi-dev] isConferenceActive HTTP request


#1

Dear All,

I'm developing an external app to check if a conference is currently active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName" returns true or false.

I would like to know if there's any way to verify that with JiCofo. I've found this documentation https://github.com/jitsi/jicofo/blob/master/doc/reservation.md but I couldn't set it up. Could anyone please give me more details about it ?

Many thanks in advance.
Hamza KHAIT


#2

Hi,

There is a similar functionality implemented as prosody module, we are
still adding some modifications there like jwt authentication. And there is
no example nginx config for configuring it.
The source code of the module is here:
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
You can query for room size or room participants info.

Regards
damencho

···

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty
server;

https://github.com/jitsi/jicofo/blob/master/src/main/
java/org/jitsi/jicofo/FocusManager.java#L133

For each conference you can call conference.getIdleTimestamp() (see
expireLoop L643)

Regards,
Arthur
------------------------------
*De :* dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net>
*Envoyé :* jeudi 4 mai 2017 15:13
*À :* dev@jitsi.org
*Objet :* [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently
active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName"
returns true or false.

I would like to know if there's any way to verify that with JiCofo. I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md but I

couldn't set it up. Could anyone please give me more details about it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev
dev -- Jitsi Developers - Mailing Lists
<http://lists.jitsi.org/mailman/listinfo/dev>
lists.jitsi.org
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

For each conference you can call conference.getIdleTimestamp() (see expireLoop L643)

Regards,
Arthur

···

________________________________
De : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net>
Envoyé : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
Objet : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently
active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName"
returns true or false.

I would like to know if there's any way to verify that with JiCofo. I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md but I

couldn't set it up. Could anyone please give me more details about it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev
dev -- Jitsi Developers - Mailing Lists<http://lists.jitsi.org/mailman/listinfo/dev>
lists.jitsi.org
For discussion of technical implementation details, and is where developers meet and discuss issues, code changes, etc. To see the collection of prior postings to the ...


#4

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module to prosody then to my virtual host but when I send the request bellow to my server I get an error :

-Request : http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check your error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]: /usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method 'each_occupant' (a nil value)
stack traceback:
  /usr/lib/prosody/modules/mod_muc_size.lua:87: in function '?'
  /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
  /usr/lib/prosody/net/http/server.lua:221: in function </usr/lib/prosody/net/http/server.lua:164>
  (tail call): ?
  [C]: in function 'xpcall'
  /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
  /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
  /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
  /usr/lib/prosody/net/http/server.lua:150: in function </usr/lib/prosody/net/http/server.lua:149>
  (tail call): ?
  /usr/lib/prosody/net/server_select.lua:854: in function </usr/lib/prosody/net/server_select.lua:836>
  [C]: in function 'xpcall'
  /usr/bin/prosody:376: in function 'loop'
  /usr/bin/prosody:407: in main chunk
  [C]: ?

Something is wrong with the plugin, I'm trying to figure it out... Do you know how to fix that?

Best regards,
Hamza KHAIT

···

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we are
still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> > wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty
server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[1]

For each conference you can call conference.getIdleTimestamp() (see
expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with JiCofo.
I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#5

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request : http://myserver.local:5280/room?room=testRoom&domain=myserver.local

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

···

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module to
prosody then to my virtual host but when I send the request bellow to my
server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check your
error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function '?'
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
        /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out... Do you
know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt > dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we are
still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty
server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[1]

For each conference you can call conference.getIdleTimestamp() (see
expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with JiCofo.
I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#6

I get the same Error that Hamza. Maybe getRoomFromJid returns a not correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with my conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0 chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request : http://myserver.local:5280/room?room=testRoom&domain=myserver.local

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

···

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module to
prosody then to my virtual host but when I send the request bellow to my
server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check your
error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function '?'
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
        /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out... Do you
know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt > dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we are
still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty
server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[1]

For each conference you can call conference.getIdleTimestamp() (see
expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with JiCofo.
I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#7

I get the same Error that Hamza. Maybe getRoomFromJid returns a not correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with my conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0 chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request : http://myserver.local:5280/room?room=testRoom&domain=myserver.local

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

···

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module to
prosody then to my virtual host but when I send the request bellow to my
server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check your
error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function '?'
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
        /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out... Do you
know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt > dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we are
still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a Jetty
server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[1]

For each conference you can call conference.getIdleTimestamp() (see
expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with JiCofo.
I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#8

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with "muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it returns the 500 error.
The muc component in prosody conf is : Component "conference.myserver.local" "muc"

Regards,
Hamza

···

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org) a écrit :

I get the same Error that Hamza. Maybe getRoomFromJid returns a not
correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with my
conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0
chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request :

http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[1]

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - > SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE > <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module

to

prosody then to my virtual host but when I send the request bellow

to my

server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check

your

error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function

'?'

        /usr/lib/prosody/util/events.lua:67: in function

'fire_event'

        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function

'process_next'

        /usr/lib/prosody/net/http/server.lua:124: in function

'success_cb'

        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out...

Do you

know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt >> dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we

are

still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[2]

You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >>> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a

Jetty

server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[1]

For each conference you can call conference.getIdleTimestamp()

(see

expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is

currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with

JiCofo.

I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Links:
------
[1] http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[2]
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[3]
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#9

I think the problem is the version of mod_muc. We have not the functionalities like 'each_occupant'.

So i tried to rewrite a little. Now i got it working.

I dont know the version of muc you have. But here is the step i followed:

0) Install net-url (just put the file in 'net' folder )

1) Put this modified version of file mod_muc_size.lua (please find the attached file) within your plugin path our near mod_muc files

2) Add it in your prosody conf (like bosh etc..)

3) modify in mod_muc_size.lua (L49, l80) if your muc subdomain is different from 'conference' (for me it is 'muc').

@Damian
I can't get the field email in the presence stanza and i get an empty email JSON field is it true in your case? Here what i get :

<presence to=‘05eec3db-8445-4534-8592-d9852c093268@muc.jitsi.arthur.test/e7e65ad5’ from=‘e7e65ad5-451e-46e1-8278-5f62bfd9db01@anon.arthur.test/6e5f962b-a87e-4ded-88a3-e42256440470’>
<user-agent xmlns=‘http://jitsi.org/jitmeet/user-agent’>Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36</user-agent>
<c ver=‘z1aBBLuF0kcC4cvtqaI3m4YQdkI=’ hash=‘sha-1’ node=‘Jitsi-meet’ xmlns=‘http://jabber.org/protocol/caps’/>

<devices>
<audio>true</audio>
<video>true</video>
</devices>
<avatar-id>a555e317262f430de9e75bcfced10c56</avatar-id>
<nick xmlns='http://jabber.org/protocol/nick'>Arthur Toumassian</nick>
<audiomuted xmlns='http://jitsi.org/jitmeet/audio'>false</audiomuted>
<videoType xmlns='http://jitsi.org/jitmeet/video'>camera</videoType>
<videomuted xmlns='http://jitsi.org/jitmeet/video'>false</videomuted>
</presence>

mod_muc_size.lua (3.66 KB)

···

________________________________
De : KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net>
Envoyé : vendredi 5 mai 2017 11:09
À : Jitsi Developers
Cc : > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org)
Objet : Re: [jitsi-dev] isConferenceActive HTTP request

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with
"muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it
returns the 500 error.
The muc component in prosody conf is : Component
"conference.myserver.local" "muc"

Regards,
Hamza

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org) a écrit :

I get the same Error that Hamza. Maybe getRoomFromJid returns a not
correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with my
conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0
chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request :

http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[1]

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - > SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE > <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module

to

prosody then to my virtual host but when I send the request bellow

to my

server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check

your

error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function

'?'

        /usr/lib/prosody/util/events.lua:67: in function

'fire_event'

        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function

'process_next'

        /usr/lib/prosody/net/http/server.lua:124: in function

'success_cb'

        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out...

Do you

know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt >> dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we

are

still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua

[https://avatars2.githubusercontent.com/u/3671647?v=3&s=400]<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>

jitsi/jitsi-meet<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>
github.com
jitsi-meet - Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[2]

You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >>> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a

Jetty

server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[https://avatars2.githubusercontent.com/u/3671647?v=3&s=400]<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>

jitsi/jicofo<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>
github.com
jicofo - JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences.

[3]

[1]

For each conference you can call conference.getIdleTimestamp()

(see

expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is

currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with

JiCofo.

I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Links:
------
[1]
http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[2]
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[3]
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#10

Hi,

We are using prosody-trunk. Email is received only if set in the client.

Regards
damencho

···

On Fri, May 5, 2017 at 6:52 AM, Arthur TOUMASSIAN <artogu@live.fr> wrote:

I think the problem is the version of mod_muc. We have not the
functionalities like 'each_occupant'.

So i tried to rewrite a little. Now i got it working.

I dont know the version of muc you have. But here is the step i followed:

0) Install net-url (just put the file in 'net' folder )

1) Put this modified version of file mod_muc_size.lua (please find the
attached file) within your plugin path our near mod_muc files

2) Add it in your prosody conf (like bosh etc..)

3) modify in mod_muc_size.lua (L49, l80) if your muc subdomain is
different from 'conference' (for me it is 'muc').

@Damian
I can't get the field email in the presence stanza and i get an empty
email JSON field is it true in your case? Here what i get :

<presence to=‘05eec3db-8445-4534-8592-d9852c093268@muc.jitsi.arthur.test/e7e65ad5’
from=‘e7e65ad5-451e-46e1-8278-5f62bfd9db01@anon.arthur.test/
6e5f962b-a87e-4ded-88a3-e42256440470’>
<user-agent xmlns=‘http://jitsi.org/jitmeet/user-agent’>Mozilla/5.0
(Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/58.0.3029.96 Safari/537.36</user-agent>
<c ver=‘z1aBBLuF0kcC4cvtqaI3m4YQdkI=’ hash=‘sha-1’ node=‘Jitsi-meet’
xmlns=‘http://jabber.org/protocol/caps’/>

<devices>
<audio>true</audio>
<video>true</video>
</devices>
<avatar-id>a555e317262f430de9e75bcfced10c56</avatar-id>
<nick xmlns='http://jabber.org/protocol/nick'>Arthur Toumassian</nick>
<audiomuted xmlns='http://jitsi.org/jitmeet/audio'>false</audiomuted>
<videoType xmlns='http://jitsi.org/jitmeet/video'>camera</videoType>
<videomuted xmlns='http://jitsi.org/jitmeet/video'>false</videomuted>
</presence>

------------------------------
*De :* KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <
hamza.khait@i-carre.net>
*Envoyé :* vendredi 5 mai 2017 11:09
*À :* Jitsi Developers
*Cc :* > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org)
*Objet :* Re: [jitsi-dev] isConferenceActive HTTP request

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with
"muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it
returns the 500 error.
The muc component in prosody conf is : Component
"conference.myserver.local" "muc"

Regards,
Hamza

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt > dev-bounces@jitsi.org) a écrit :
> I get the same Error that Hamza. Maybe getRoomFromJid returns a not
> correct room?
> (prosody v0.9X)
>
> i had to change the subdomain 'conference' to 'muc' to match with my
> conf.
>
> BTW: the number of sessions returned by "GET /sessions" is 1 with 0
> chatroom. Certainly counts jicofo too.
>
> ---- Damian Minkov a écrit ----
>
> Hi,
>
> Apparently, it is not finding the room.
>
> local room_name = params["room"];
> local domain_name = params["domain"];
> local room_address = room_name .. "@" .. "conference." .. domain_name;
>
>> -Request :
> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
> [1]
>
> Is this correct jid: testRoom@conference.myserver.local Is this the
> muc component registered in prosody?
>
> Regards
> damencho
>
> P.S. I will be working on that and will add a configuration for that
> 'conference' prefix.
>
> On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - > > SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE > > <hamza.khait@i-carre.net> wrote:
>> Hello Arthur and Damian,
>>
>> Thank you for the answer.
>> I started with the solution given by Damian, so I added the module
> to
>> prosody then to my virtual host but when I send the request bellow
> to my
>> server I get an error :
>>
>> -Request :
>> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
>>
>> -Result (web browser) : 500 Internal Server Error. It broke. Check
> your
>> error log for more info.
>>
>> -Result (prosody.err log file) :
>> May 04 17:49:27 http.server error Traceback[httpserver]:
>> /usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
>> 'each_occupant' (a nil value)
>> stack traceback:
>> /usr/lib/prosody/modules/mod_muc_size.lua:87: in function
> '?'
>> /usr/lib/prosody/util/events.lua:67: in function
> 'fire_event'
>> /usr/lib/prosody/net/http/server.lua:221: in function
>> </usr/lib/prosody/net/http/server.lua:164>
>> (tail call): ?
>> [C]: in function 'xpcall'
>> /usr/lib/prosody/net/http/server.lua:108: in function
> 'process_next'
>> /usr/lib/prosody/net/http/server.lua:124: in function
> 'success_cb'
>> /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
>> /usr/lib/prosody/net/http/server.lua:150: in function
>> </usr/lib/prosody/net/http/server.lua:149>
>> (tail call): ?
>> /usr/lib/prosody/net/server_select.lua:854: in function
>> </usr/lib/prosody/net/server_select.lua:836>
>> [C]: in function 'xpcall'
>> /usr/bin/prosody:376: in function 'loop'
>> /usr/bin/prosody:407: in main chunk
>> [C]: ?
>>
>>
>> Something is wrong with the plugin, I'm trying to figure it out...
> Do you
>> know how to fix that?
>>
>> Best regards,
>> Hamza KHAIT
>>
>>
>> Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt > >> dev-bounces@jitsi.org) a écrit :
>>>
>>> Hi,
>>>
>>> There is a similar functionality implemented as prosody module, we
> are
>>> still adding some modifications there like jwt authentication. And
>>> there is no example nginx config for configuring it.
>>> The source code of the module is here:
>>>
>>>
> https://github.com/jitsi/jitsi-meet/blob/master/
resources/prosody-plugins/mod_muc_size.lua

<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>
jitsi/jitsi-meet
<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>
github.com
jitsi-meet - Jitsi Meet - Secure, Simple and Scalable Video Conferences
that you use as a standalone app or embed in your web application.

> [2]
>>> You can query for room size or room participants info.
>>>
>>> Regards
>>> damencho
>>>
>>> On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> > >>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am interested in this kind of functionality.
>>>>
>>>> I think it can be achieved by exposing this variable through a
> Jetty
>>>> server;
>>>>
>>>>
>>>
>>>
> https://github.com/jitsi/jicofo/blob/master/src/main/
java/org/jitsi/jicofo/FocusManager.java#L133

<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>
jitsi/jicofo
<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>
github.com
jicofo - JItsi COnference FOcus is a server side focus component used in
Jitsi Meet conferences.

> [3]
>>>>
>>>> [1]
>>>>
>>>> For each conference you can call conference.getIdleTimestamp()
> (see
>>>> expireLoop L643)
>>>> Regards,
>>>> Arthur
>>>>
>>>> -------------------------
>>>>
>>>> DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
>>>> SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
>>>> <hamza.khait@i-carre.net>
>>>> ENVOYÉ : jeudi 4 mai 2017 15:13
>>>> À : dev@jitsi.org
>>>> OBJET : [jitsi-dev] isConferenceActive HTTP request
>>>>
>>>> Dear All,
>>>>
>>>> I'm developing an external app to check if a conference is
> currently
>>>>
>>>> active or not by sending an HTTP request to Jitsi Meet server.
>>>> for instance "https://myJitsiServer.com/isConfActive?name=ConfName
>>>> [2]"
>>>> returns true or false.
>>>>
>>>> I would like to know if there's any way to verify that with
> JiCofo.
>>>> I've
>>>> found this documentation
>>>> https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
>>>> but I
>>>>
>>>> couldn't set it up. Could anyone please give me more details about
>>>> it ?
>>>>
>>>> Many thanks in advance.
>>>> Hamza KHAIT
>>>>
>>>> _______________________________________________
>>>> dev mailing list
>>>> dev@jitsi.org
>>>> Unsubscribe instructions and other list options:
>>>> http://lists.jitsi.org/mailman/listinfo/dev [4]
>>>>
>>>> dev -- Jitsi Developers - Mailing Lists [4]
>>>> lists.jitsi.org [5]
>>>> For discussion of technical implementation details, and is where
>>>> developers meet and discuss issues, code changes, etc. To see the
>>>> collection of prior postings to the ...
>>>>
>>>> _______________________________________________
>>>> dev mailing list
>>>> dev@jitsi.org
>>>> Unsubscribe instructions and other list options:
>>>> http://lists.jitsi.org/mailman/listinfo/dev [4]
>>>
>>>
>>>
>>>
>>> Links:
>>> ------
>>> [1]
>>>
>>>
> https://github.com/jitsi/jicofo/blob/master/src/main/
java/org/jitsi/jicofo/FocusManager.java#L133
> [3]
>>> [2] https://myJitsiServer.com/isConfActive?name=ConfName
>>> [3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
>>> [4] http://lists.jitsi.org/mailman/listinfo/dev
>>> [5] http://lists.jitsi.org
>>> _______________________________________________
>>> dev mailing list
>>> dev@jitsi.org
>>> Unsubscribe instructions and other list options:
>>> http://lists.jitsi.org/mailman/listinfo/dev
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev
>
> Links:
> ------
> [1]
> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
> [2]
> https://github.com/jitsi/jitsi-meet/blob/master/
resources/prosody-plugins/mod_muc_size.lua
> [3]
> https://github.com/jitsi/jicofo/blob/master/src/main/
java/org/jitsi/jicofo/FocusManager.java#L133
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#11

Thank you very much Arthur.
The module is working now as it should.

Best Regards,
Hamza

···

Le 05/05/2017 13:52, > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org) a écrit :

I think the problem is the version of mod_muc. We have not the
functionalities like 'each_occupant'.

So i tried to rewrite a little. Now i got it working.

I dont know the version of muc you have. But here is the step i
followed:

0) Install net-url (just put the file in 'net' folder )

1) Put this modified version of file mod_muc_size.lua (please find
the attached file) within your plugin path our near mod_muc files

2) Add it in your prosody conf (like bosh etc..)

3) modify in mod_muc_size.lua (L49, l80) if your muc subdomain is
different from 'conference' (for me it is 'muc').

@Damian

I can't get the field email in the presence stanza and i get an empty
email JSON field is it true in your case? Here what i get :

<presence
to='05eec3db-8445-4534-8592-d9852c093268@muc.jitsi.arthur.test/e7e65ad5'
from='e7e65ad5-451e-46e1-8278-5f62bfd9db01@anon.arthur.test/6e5f962b-a87e-4ded-88a3-e42256440470'>

<user-agent xmlns=‘http://jitsi.org/jitmeet/user-agent’>Mozilla/5.0
(Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/58.0.3029.96 Safari/537.36</user-agent>
<c ver=‘z1aBBLuF0kcC4cvtqaI3m4YQdkI=’ hash=‘sha-1’ node=‘Jitsi-meet’
xmlns=‘http://jabber.org/protocol/caps’/>

<devices>
<audio>true</audio>
<video>true</video>
</devices>
<avatar-id>a555e317262f430de9e75bcfced10c56</avatar-id>
<nick xmlns='http://jabber.org/protocol/nick'>Arthur Toumassian</nick>

<audiomuted xmlns='http://jitsi.org/jitmeet/audio'>false</audiomuted>
<videoType xmlns='http://jitsi.org/jitmeet/video'>camera</videoType>
<videomuted xmlns='http://jitsi.org/jitmeet/video'>false</videomuted>
</presence>

-------------------------

DE : KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : vendredi 5 mai 2017 11:09
À : Jitsi Developers
CC : > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org)
OBJET : Re: [jitsi-dev] isConferenceActive HTTP request

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with
"muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it
returns the 500 error.
The muc component in prosody conf is : Component
"conference.myserver.local" "muc"

Regards,
Hamza

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt > dev-bounces@jitsi.org) a écrit :

I get the same Error that Hamza. Maybe getRoomFromJid returns a not
correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with

my

conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0
chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." ..

domain_name;

-Request :

http://myserver.local:5280/room?room=testRoom&domain=myserver.local

[1]

[1]

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - >> SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE >> <hamza.khait@i-carre.net> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module

to

prosody then to my virtual host but when I send the request bellow

to my

server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

[1]

-Result (web browser) : 500 Internal Server Error. It broke. Check

your

error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call

method

'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function

'?'

        /usr/lib/prosody/util/events.lua:67: in function

'fire_event'

        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function

'process_next'

        /usr/lib/prosody/net/http/server.lua:124: in function

'success_cb'

        /usr/lib/prosody/net/http/parser.lua:154: in function

'feed'

        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out...

Do you

know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt >>> dev-bounces@jitsi.org) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we

are

still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[2]

[2]

jitsi/jitsi-meet [2]
github.com
jitsi-meet - Jitsi Meet - Secure, Simple and Scalable Video
Conferences that you use as a standalone app or embed in your web
application.

[2]

You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >>>> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a

Jetty

server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[3]

jitsi/jicofo [3]
github.com
jicofo - JItsi COnference FOcus is a server side focus component used
in Jitsi Meet conferences.

[3]

[1]

For each conference you can call conference.getIdleTimestamp()

(see

expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is

currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance

"https://myJitsiServer.com/isConfActive?name=ConfName

[2]"
returns true or false.

I would like to know if there's any way to verify that with

JiCofo.

I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md

[3]

but I

couldn't set it up. Could anyone please give me more details

about

it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[3]

[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md

[4]

[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Links:
------
[1]

http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[5]

[2]

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[2]

[3]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Links:
------
[1] http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[2]
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[3]
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[4] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[5] http://myserver.local:5280/room?room=testRoom&amp;domain=myserver.local
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#12

Damian,

Where should I have set the email? Actually i see my email (concatenation of login and auth domain) in profile section.

You're not talking about this one?

···

________________________________
De : dev <dev-bounces@jitsi.org> de la part de Damian Minkov <damencho@jitsi.org>
Envoyé : vendredi 5 mai 2017 17:03
À : Jitsi Developers
Objet : Re: [jitsi-dev] TR: isConferenceActive HTTP request

Hi,

We are using prosody-trunk. Email is received only if set in the client.

Regards
damencho

On Fri, May 5, 2017 at 6:52 AM, Arthur TOUMASSIAN <artogu@live.fr<mailto:artogu@live.fr>> wrote:

I think the problem is the version of mod_muc. We have not the functionalities like 'each_occupant'.

So i tried to rewrite a little. Now i got it working.

I dont know the version of muc you have. But here is the step i followed:

0) Install net-url (just put the file in 'net' folder )

1) Put this modified version of file mod_muc_size.lua (please find the attached file) within your plugin path our near mod_muc files

2) Add it in your prosody conf (like bosh etc..)

3) modify in mod_muc_size.lua (L49, l80) if your muc subdomain is different from 'conference' (for me it is 'muc').

@Damian
I can't get the field email in the presence stanza and i get an empty email JSON field is it true in your case? Here what i get :

<presence to=‘05eec3db-8445-4534-8592-d9852c093268@muc.jitsi.arthur.test/e7e65ad5’ from=‘e7e65ad5-451e-46e1-8278-5f62bfd9db01@anon.arthur.test/6e5f962b-a87e-4ded-88a3-e42256440470’>
<user-agent xmlns=‘http://jitsi.org/jitmeet/user-agent’>Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36</user-agent>
<c ver=‘z1aBBLuF0kcC4cvtqaI3m4YQdkI=’ hash=‘sha-1’ node=‘Jitsi-meet’ xmlns=‘http://jabber.org/protocol/caps’/>

<devices>
<audio>true</audio>
<video>true</video>
</devices>
<avatar-id>a555e317262f430de9e75bcfced10c56</avatar-id>
<nick xmlns='http://jabber.org/protocol/nick'>Arthur Toumassian</nick>
<audiomuted xmlns='http://jitsi.org/jitmeet/audio'>false</audiomuted>
<videoType xmlns='http://jitsi.org/jitmeet/video'>camera</videoType>
<videomuted xmlns='http://jitsi.org/jitmeet/video'>false</videomuted>
</presence>

________________________________
De : KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE <hamza.khait@i-carre.net<mailto:hamza.khait@i-carre.net>>
Envoyé : vendredi 5 mai 2017 11:09
À : Jitsi Developers
Cc : > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org<mailto:dev-bounces@jitsi.org>)
Objet : Re: [jitsi-dev] isConferenceActive HTTP request

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with
"muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it
returns the 500 error.
The muc component in prosody conf is : Component
"conference.myserver.local" "muc"

Regards,
Hamza

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org<mailto:dev-bounces@jitsi.org>) a écrit :

I get the same Error that Hamza. Maybe getRoomFromJid returns a not
correct room?
(prosody v0.9X)

i had to change the subdomain 'conference' to 'muc' to match with my
conf.

BTW: the number of sessions returned by "GET /sessions" is 1 with 0
chatroom. Certainly counts jicofo too.

---- Damian Minkov a écrit ----

Hi,

Apparently, it is not finding the room.

local room_name = params["room"];
local domain_name = params["domain"];
local room_address = room_name .. "@" .. "conference." .. domain_name;

-Request :

http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[1]

Is this correct jid: testRoom@conference.myserver.local Is this the
muc component registered in prosody?

Regards
damencho

P.S. I will be working on that and will add a configuration for that
'conference' prefix.

On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - > SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE > <hamza.khait@i-carre.net<mailto:hamza.khait@i-carre.net>> wrote:

Hello Arthur and Damian,

Thank you for the answer.
I started with the solution given by Damian, so I added the module

to

prosody then to my virtual host but when I send the request bellow

to my

server I get an error :

-Request :
http://myserver.local:5280/room?room=testRoom&domain=myserver.local

-Result (web browser) : 500 Internal Server Error. It broke. Check

your

error log for more info.

-Result (prosody.err log file) :
May 04 17:49:27 http.server error Traceback[httpserver]:
/usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
'each_occupant' (a nil value)
stack traceback:
        /usr/lib/prosody/modules/mod_muc_size.lua:87: in function

'?'

        /usr/lib/prosody/util/events.lua:67: in function

'fire_event'

        /usr/lib/prosody/net/http/server.lua:221: in function
</usr/lib/prosody/net/http/server.lua:164>
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function

'process_next'

        /usr/lib/prosody/net/http/server.lua:124: in function

'success_cb'

        /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:150: in function
</usr/lib/prosody/net/http/server.lua:149>
        (tail call): ?
        /usr/lib/prosody/net/server_select.lua:854: in function
</usr/lib/prosody/net/server_select.lua:836>
        [C]: in function 'xpcall'
        /usr/bin/prosody:376: in function 'loop'
        /usr/bin/prosody:407: in main chunk
        [C]: ?

Something is wrong with the plugin, I'm trying to figure it out...

Do you

know how to fix that?

Best regards,
Hamza KHAIT

Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt >> dev-bounces@jitsi.org<mailto:dev-bounces@jitsi.org>) a écrit :

Hi,

There is a similar functionality implemented as prosody module, we

are

still adding some modifications there like jwt authentication. And
there is no example nginx config for configuring it.
The source code of the module is here:

https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua

[https://avatars2.githubusercontent.com/u/3671647?v=3&s=400]<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>

jitsi/jitsi-meet<https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua>
github.com<http://github.com>
jitsi-meet - Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[2]

You can query for room size or room participants info.

Regards
damencho

On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr<mailto:artogu@live.fr>> >>> wrote:

Hi,

I am interested in this kind of functionality.

I think it can be achieved by exposing this variable through a

Jetty

server;

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133

[https://avatars2.githubusercontent.com/u/3671647?v=3&s=400]<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>

jitsi/jicofo<https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133>
github.com<http://github.com>
jicofo - JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences.

[3]

[1]

For each conference you can call conference.getIdleTimestamp()

(see

expireLoop L643)
Regards,
Arthur

-------------------------

DE : dev <dev-bounces@jitsi.org<mailto:dev-bounces@jitsi.org>> de la part de KHAIT Hamza -
SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net<mailto:hamza.khait@i-carre.net>>
ENVOYÉ : jeudi 4 mai 2017 15:13
À : dev@jitsi.org<mailto:dev@jitsi.org>
OBJET : [jitsi-dev] isConferenceActive HTTP request

Dear All,

I'm developing an external app to check if a conference is

currently

active or not by sending an HTTP request to Jitsi Meet server.
for instance "https://myJitsiServer.com/isConfActive?name=ConfName
[2]"
returns true or false.

I would like to know if there's any way to verify that with

JiCofo.

I've
found this documentation
https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
but I

couldn't set it up. Could anyone please give me more details about
it ?

Many thanks in advance.
Hamza KHAIT

_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

dev -- Jitsi Developers - Mailing Lists [4]
lists.jitsi.org<http://lists.jitsi.org> [5]
For discussion of technical implementation details, and is where
developers meet and discuss issues, code changes, etc. To see the
collection of prior postings to the ...

_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev [4]

Links:
------
[1]

https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
[3]

[2] https://myJitsiServer.com/isConfActive?name=ConfName
[3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
[4] http://lists.jitsi.org/mailman/listinfo/dev
[5] http://lists.jitsi.org
_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Links:
------
[1]
http://myserver.local:5280/room?room=testRoom&domain=myserver.local
[2]
https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
[3]
https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org<mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#13

In the profile section in jitsi-meet.

···

On Fri, May 5, 2017 at 3:12 PM, Arthur TOUMASSIAN <artogu@live.fr> wrote:

Damian,

Where should I have set the email? Actually i see my email (concatenation of
login and auth domain) in profile section.

You're not talking about this one?

________________________________
De : dev <dev-bounces@jitsi.org> de la part de Damian Minkov
<damencho@jitsi.org>
Envoyé : vendredi 5 mai 2017 17:03
À : Jitsi Developers
Objet : Re: [jitsi-dev] TR: isConferenceActive HTTP request

Hi,

We are using prosody-trunk. Email is received only if set in the client.

Regards
damencho

On Fri, May 5, 2017 at 6:52 AM, Arthur TOUMASSIAN <artogu@live.fr> wrote:

I think the problem is the version of mod_muc. We have not the
functionalities like 'each_occupant'.

So i tried to rewrite a little. Now i got it working.

I dont know the version of muc you have. But here is the step i followed:

0) Install net-url (just put the file in 'net' folder )

1) Put this modified version of file mod_muc_size.lua (please find the
attached file) within your plugin path our near mod_muc files

2) Add it in your prosody conf (like bosh etc..)

3) modify in mod_muc_size.lua (L49, l80) if your muc subdomain is
different from 'conference' (for me it is 'muc').

@Damian
I can't get the field email in the presence stanza and i get an empty
email JSON field is it true in your case? Here what i get :

<presence
to=‘05eec3db-8445-4534-8592-d9852c093268@muc.jitsi.arthur.test/e7e65ad5’
from=‘e7e65ad5-451e-46e1-8278-5f62bfd9db01@anon.arthur.test/6e5f962b-a87e-4ded-88a3-e42256440470’>
<user-agent xmlns=‘http://jitsi.org/jitmeet/user-agent’>Mozilla/5.0
(Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/58.0.3029.96 Safari/537.36</user-agent>
<c ver=‘z1aBBLuF0kcC4cvtqaI3m4YQdkI=’ hash=‘sha-1’ node=‘Jitsi-meet’
xmlns=‘http://jabber.org/protocol/caps’/>

<devices>
<audio>true</audio>
<video>true</video>
</devices>
<avatar-id>a555e317262f430de9e75bcfced10c56</avatar-id>
<nick xmlns='http://jabber.org/protocol/nick'>Arthur Toumassian</nick>
<audiomuted xmlns='http://jitsi.org/jitmeet/audio'>false</audiomuted>
<videoType xmlns='http://jitsi.org/jitmeet/video'>camera</videoType>
<videomuted xmlns='http://jitsi.org/jitmeet/video'>false</videomuted>
</presence>

________________________________
De : KHAIT Hamza - SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
<hamza.khait@i-carre.net>
Envoyé : vendredi 5 mai 2017 11:09
À : Jitsi Developers
Cc : > Arthur TOUMASSIAN (par Internet, dépôt dev-bounces@jitsi.org)
Objet : Re: [jitsi-dev] isConferenceActive HTTP request

Hello,

@Arthur
Did you solve the problem ? where did you replace "conference" with
"muc" ?
And yeah I also get 1 for "GET /sessions" with 0 chatroom.

@Damian
When the room isn't active it returns "[]" but when it is active it
returns the 500 error.
The muc component in prosody conf is : Component
"conference.myserver.local" "muc"

Regards,
Hamza

Le 05/05/2017 01:00, > Arthur TOUMASSIAN (par Internet, dépôt >> dev-bounces@jitsi.org) a écrit :
> I get the same Error that Hamza. Maybe getRoomFromJid returns a not
> correct room?
> (prosody v0.9X)
>
> i had to change the subdomain 'conference' to 'muc' to match with my
> conf.
>
> BTW: the number of sessions returned by "GET /sessions" is 1 with 0
> chatroom. Certainly counts jicofo too.
>
> ---- Damian Minkov a écrit ----
>
> Hi,
>
> Apparently, it is not finding the room.
>
> local room_name = params["room"];
> local domain_name = params["domain"];
> local room_address = room_name .. "@" .. "conference." .. domain_name;
>
>> -Request :
> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
> [1]
>
> Is this correct jid: testRoom@conference.myserver.local Is this the
> muc component registered in prosody?
>
> Regards
> damencho
>
> P.S. I will be working on that and will add a configuration for that
> 'conference' prefix.
>
> On Thu, May 4, 2017 at 11:07 AM, KHAIT Hamza - >> > SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE >> > <hamza.khait@i-carre.net> wrote:
>> Hello Arthur and Damian,
>>
>> Thank you for the answer.
>> I started with the solution given by Damian, so I added the module
> to
>> prosody then to my virtual host but when I send the request bellow
> to my
>> server I get an error :
>>
>> -Request :
>> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
>>
>> -Result (web browser) : 500 Internal Server Error. It broke. Check
> your
>> error log for more info.
>>
>> -Result (prosody.err log file) :
>> May 04 17:49:27 http.server error Traceback[httpserver]:
>> /usr/lib/prosody/modules/mod_muc_size.lua:87: attempt to call method
>> 'each_occupant' (a nil value)
>> stack traceback:
>> /usr/lib/prosody/modules/mod_muc_size.lua:87: in function
> '?'
>> /usr/lib/prosody/util/events.lua:67: in function
> 'fire_event'
>> /usr/lib/prosody/net/http/server.lua:221: in function
>> </usr/lib/prosody/net/http/server.lua:164>
>> (tail call): ?
>> [C]: in function 'xpcall'
>> /usr/lib/prosody/net/http/server.lua:108: in function
> 'process_next'
>> /usr/lib/prosody/net/http/server.lua:124: in function
> 'success_cb'
>> /usr/lib/prosody/net/http/parser.lua:154: in function 'feed'
>> /usr/lib/prosody/net/http/server.lua:150: in function
>> </usr/lib/prosody/net/http/server.lua:149>
>> (tail call): ?
>> /usr/lib/prosody/net/server_select.lua:854: in function
>> </usr/lib/prosody/net/server_select.lua:836>
>> [C]: in function 'xpcall'
>> /usr/bin/prosody:376: in function 'loop'
>> /usr/bin/prosody:407: in main chunk
>> [C]: ?
>>
>>
>> Something is wrong with the plugin, I'm trying to figure it out...
> Do you
>> know how to fix that?
>>
>> Best regards,
>> Hamza KHAIT
>>
>>
>> Le 04/05/2017 15:32, > Damian Minkov (par Internet, dépôt >> >> dev-bounces@jitsi.org) a écrit :
>>>
>>> Hi,
>>>
>>> There is a similar functionality implemented as prosody module, we
> are
>>> still adding some modifications there like jwt authentication. And
>>> there is no example nginx config for configuring it.
>>> The source code of the module is here:
>>>
>>>
>
> https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
jitsi/jitsi-meet
github.com
jitsi-meet - Jitsi Meet - Secure, Simple and Scalable Video Conferences
that you use as a standalone app or embed in your web application.

> [2]
>>> You can query for room size or room participants info.
>>>
>>> Regards
>>> damencho
>>>
>>> On Thu, May 4, 2017 at 8:26 AM, Arthur TOUMASSIAN <artogu@live.fr> >> >>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am interested in this kind of functionality.
>>>>
>>>> I think it can be achieved by exposing this variable through a
> Jetty
>>>> server;
>>>>
>>>>
>>>
>>>
>
> https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
jitsi/jicofo
github.com
jicofo - JItsi COnference FOcus is a server side focus component used in
Jitsi Meet conferences.

> [3]
>>>>
>>>> [1]
>>>>
>>>> For each conference you can call conference.getIdleTimestamp()
> (see
>>>> expireLoop L643)
>>>> Regards,
>>>> Arthur
>>>>
>>>> -------------------------
>>>>
>>>> DE : dev <dev-bounces@jitsi.org> de la part de KHAIT Hamza -
>>>> SG/SPSSI/CPII/DOSE/ET/PNE ANNUAIRE ET MESSAGERIE
>>>> <hamza.khait@i-carre.net>
>>>> ENVOYÉ : jeudi 4 mai 2017 15:13
>>>> À : dev@jitsi.org
>>>> OBJET : [jitsi-dev] isConferenceActive HTTP request
>>>>
>>>> Dear All,
>>>>
>>>> I'm developing an external app to check if a conference is
> currently
>>>>
>>>> active or not by sending an HTTP request to Jitsi Meet server.
>>>> for instance "https://myJitsiServer.com/isConfActive?name=ConfName
>>>> [2]"
>>>> returns true or false.
>>>>
>>>> I would like to know if there's any way to verify that with
> JiCofo.
>>>> I've
>>>> found this documentation
>>>> https://github.com/jitsi/jicofo/blob/master/doc/reservation.md [3]
>>>> but I
>>>>
>>>> couldn't set it up. Could anyone please give me more details about
>>>> it ?
>>>>
>>>> Many thanks in advance.
>>>> Hamza KHAIT
>>>>
>>>> _______________________________________________
>>>> dev mailing list
>>>> dev@jitsi.org
>>>> Unsubscribe instructions and other list options:
>>>> http://lists.jitsi.org/mailman/listinfo/dev [4]
>>>>
>>>> dev -- Jitsi Developers - Mailing Lists [4]
>>>> lists.jitsi.org [5]
>>>> For discussion of technical implementation details, and is where
>>>> developers meet and discuss issues, code changes, etc. To see the
>>>> collection of prior postings to the ...
>>>>
>>>> _______________________________________________
>>>> dev mailing list
>>>> dev@jitsi.org
>>>> Unsubscribe instructions and other list options:
>>>> http://lists.jitsi.org/mailman/listinfo/dev [4]
>>>
>>>
>>>
>>>
>>> Links:
>>> ------
>>> [1]
>>>
>>>
>
> https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
> [3]
>>> [2] https://myJitsiServer.com/isConfActive?name=ConfName
>>> [3] https://github.com/jitsi/jicofo/blob/master/doc/reservation.md
>>> [4] http://lists.jitsi.org/mailman/listinfo/dev
>>> [5] http://lists.jitsi.org
>>> _______________________________________________
>>> dev mailing list
>>> dev@jitsi.org
>>> Unsubscribe instructions and other list options:
>>> http://lists.jitsi.org/mailman/listinfo/dev
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev
>
> Links:
> ------
> [1]
> http://myserver.local:5280/room?room=testRoom&domain=myserver.local
> [2]
>
> https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
> [3]
>
> https://github.com/jitsi/jicofo/blob/master/src/main/java/org/jitsi/jicofo/FocusManager.java#L133
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev