Re: roomConnect

2013-01-30 Thread Vieri
Thanks Sebastian.

So maybe I could add my custom logic in setRoomValues. Now I just need to find 
the correct way to auto-disconnect the user from the room when my custom 
logic decides to do so (basically depends on my network and cpu resources at a 
given time).

Any suggestions?

Vieri

--- On Wed, 1/30/13, seba.wag...@gmail.com seba.wag...@gmail.com wrote:

 From: seba.wag...@gmail.com seba.wag...@gmail.com
 Subject: Re: roomConnect
 To: dev dev@openmeetings.apache.org
 Date: Wednesday, January 30, 2013, 2:36 AM
 Hallo Vieri
 
 roomConnect is an event handler that gets automatically
 called in the
 server interface. The client never actively calls this
 method. You can
 see that by the @Override annotation in the
 ScopeApplicationAdapter. Every
 Override is an event, not a actively called method.
 
 The client simply disconnects and uses the url:
 rtmp://host:port/openmeetings/1 (for room_id 1)
 
 And later on calls setRoomValues as soon as he has
 successfully connected.
 
 Sebastian
 
 
 2013/1/30 Vieri rentor...@yahoo.com
 
  Hi,
 
  I'd like to know which part of the OM source code is
 executed when a user
  clicks on the Enter button when trying to access a
 room. I believe it
  could be:
 
 
 org.apache.openmeetings.remote.red5.ScopeApplicationAdapter#roomConnect
 
  I also suppose that this method is called even when
 users enter a room via
  invitation hash.
 
  I'm trying to find the right place in the source code
 to customize room
  access (allow/deny) according to custom requirements.
  Is roomConnect always called before entering ANY
 conference room?
 
  Are there any other classes/methods I should look for?
 
  Thanks,
 
  Vieri
 
 
 
 
 -- 
 Sebastian Wagner
 https://twitter.com/#!/dead_lock
 http://www.webbase-design.de
 http://www.wagner-sebastian.com
 seba.wag...@gmail.com
 


Re: [PRIVATE] can you please provide me with backups of old OM versions?

2013-01-30 Thread seba.wag...@gmail.com
sorry I have none that are suited for testing.
We have to create a small installation of every release of OpenMeetings
starting by v1.4 and do an export, otherwise you can't really compare what
data is existing and what you should expected after the import.
It is important that we do
- at least create 2 users,
- upload a profile image for at least one of the users,
- create and assign one user to at least one other to be created
organization,
- create 1 regular recording with audio/video turned on,
- create 1 interview recording,
- upload a PPT in a conference room,
- create a folder in the file explorer,
- upload at least one file to the private section of a users file explorer,
- create 1 more conference room in the admin UI,
- create 1 calendar event with an attached conference room and at least 1
internal invitee and at least 1 external invitee,
- send one private message from on user to the other,
- add one contact to the list of contacts in the user list (eventually with
right to share calendar),
- add or modify one configuration

And after the import we have to control if all this data is just the way it
was in the old exported system.
Only then we can really judge if the import is ok.
My idea was to create a JUnit test that does the import and afterwards
JUnit does a couple of checks on the tables and on the file-system where
the imported data and files should be. That way we do not need to control
all the data or import success manually after each import test.

Sebastian


2013/1/30 Maxim Solodovnik solomax...@gmail.com

 Hello Sebastian,

 Can you provide me with backup files from old versions of OM?
 I promise to clean up all sensitive information before using it in the
 automated backup test :))


 --
 WBR
 Maxim aka solomax




-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wag...@gmail.com


Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
There is no such functionality right now
On Jan 31, 2013 2:05 AM, Baskar Rajendran baskar.rajend...@gmail.com
wrote:

 yes.. that is one option but i want to isolate files for different
 organizations , so that it can be configurable in an admin tab for the
 usergroup ,

 thanks
 baskar

 On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  you can link/mount any folder/FS inside OM (with appropriate permissions)
 
 
  On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran 
  baskar.rajend...@gmail.com wrote:
 
   Hi
  
   I am facing out of disk space problems so i  want the recording path to
  be
   configurable from admin end. Is this a right thought to go ahead 
   implement?
   I also doubt if red5 can stream the files or not from a different
  location
   ?
  
   Thanks
   Baskar
  
 
 
 
  --
  WBR
  Maxim aka solomax
 



Re: Store recording files out of Red5 path

2013-01-30 Thread Maxim Solodovnik
There is a check in the code denying downloading of files outside OM. see
no problems with storing :)
On Jan 31, 2013 9:30 AM, Baskar Rajendran baskar.rajend...@gmail.com
wrote:

 Thanks for the reply maxim , but my question was if we are trying to store
 out of red5 path , will it work fine??  I can implement if it works fine..

 -Baskar

 On Thu, Jan 31, 2013 at 7:28 AM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  There is no such functionality right now
  On Jan 31, 2013 2:05 AM, Baskar Rajendran baskar.rajend...@gmail.com
  wrote:
 
   yes.. that is one option but i want to isolate files for different
   organizations , so that it can be configurable in an admin tab for the
   usergroup ,
  
   thanks
   baskar
  
   On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik 
 solomax...@gmail.com
   wrote:
  
you can link/mount any folder/FS inside OM (with appropriate
  permissions)
   
   
On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran 
baskar.rajend...@gmail.com wrote:
   
 Hi

 I am facing out of disk space problems so i  want the recording
 path
  to
be
 configurable from admin end. Is this a right thought to go ahead 
 implement?
 I also doubt if red5 can stream the files or not from a different
location
 ?

 Thanks
 Baskar

   
   
   
--
WBR
Maxim aka solomax
   
  
 



Re: Store recording files out of Red5 path

2013-01-30 Thread Baskar Rajendran
oh you mean i can remove that code so that we could store out of OM ? , wil
be able to play the recording if its in out of path...

Thanks
Baskar

On Thu, Jan 31, 2013 at 8:09 AM, Maxim Solodovnik solomax...@gmail.comwrote:

 There is a check in the code denying downloading of files outside OM. see
 no problems with storing :)
 On Jan 31, 2013 9:30 AM, Baskar Rajendran baskar.rajend...@gmail.com
 wrote:

  Thanks for the reply maxim , but my question was if we are trying to
 store
  out of red5 path , will it work fine??  I can implement if it works
 fine..
 
  -Baskar
 
  On Thu, Jan 31, 2013 at 7:28 AM, Maxim Solodovnik solomax...@gmail.com
  wrote:
 
   There is no such functionality right now
   On Jan 31, 2013 2:05 AM, Baskar Rajendran 
 baskar.rajend...@gmail.com
   wrote:
  
yes.. that is one option but i want to isolate files for different
organizations , so that it can be configurable in an admin tab for
 the
usergroup ,
   
thanks
baskar
   
On Wed, Jan 30, 2013 at 11:55 PM, Maxim Solodovnik 
  solomax...@gmail.com
wrote:
   
 you can link/mount any folder/FS inside OM (with appropriate
   permissions)


 On Thu, Jan 31, 2013 at 1:05 AM, Baskar Rajendran 
 baskar.rajend...@gmail.com wrote:

  Hi
 
  I am facing out of disk space problems so i  want the recording
  path
   to
 be
  configurable from admin end. Is this a right thought to go ahead
 
  implement?
  I also doubt if red5 can stream the files or not from a different
 location
  ?
 
  Thanks
  Baskar
 



 --
 WBR
 Maxim aka solomax

   
  
 



Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
Currently OM is broken (on our side)

Here is the part of stacktrace from OM log:
ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
[http-nio-0.0.0.0-8088-exec-6] - roomJoin
java.lang.NumberFormatException: For input string: null
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[na:1.7.0_04]
at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
at
org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
~[na:na]
at
org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
~[na:na]
at
org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
~[na:na]
at
org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
[red5.jar:na]


And part of stacktrace from red5.log:

2013-01-31 12:09:39,669 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
2013-01-31 12:09:39,794 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
2013-01-31 12:09:39,845 [NioProcessor-2] INFO
 o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
o.r.server.service.ServiceInvoker - Error executing call: Service: null
Method: getPublicSID Num Params: 0
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0_04]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0_04]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_04]
at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
at
org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
[red5.jar:na]
at
org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
[red5.jar:na]
at
org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
[red5.jar:na]





I'm going to investigate, then will retest publicSID issue


On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com 
seba.wag...@gmail.com wrote:

 Hi Maxim,

 could you describe the use case that you had issue with the session not
 being correctly cleaned up?

 Thanks!
 Sebastian

 --
 Sebastian Wagner
 https://twitter.com/#!/dead_lock
 http://www.webbase-design.de
 http://www.wagner-sebastian.com
 seba.wag...@gmail.com




-- 
WBR
Maxim aka solomax


Re: BaseStreamWriter thread didn't stop

2013-01-30 Thread Maxim Solodovnik
The reason is endless loop because of exception while recording of
something like that.
We should investigate it and get rid of endless loop


On Thu, Jan 31, 2013 at 12:31 PM, Artyom Horuzhenko akhor...@gmail.comwrote:

 Hello people!
 I had a situation when BaseStreamWriter thread wasn't stopped on time
 and did nothing, but a user already had stopped recording. Also I got
 many messages to the log: ### Stream not yet written Thread Sleep -
  Does anybody know the possible reason of this issue?




-- 
WBR
Maxim aka solomax


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread seba.wag...@gmail.com
Are you sure you are using the default config files and a fresh build?
Cause I don't have those errors. It seems like your
openmeetings-applicationContext.xml is outdated or you did not svn update.

Sebastian


2013/1/31 Maxim Solodovnik solomax...@gmail.com

 Currently OM is broken (on our side)

 Here is the part of stacktrace from OM log:
 ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
 org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
 [http-nio-0.0.0.0-8088-exec-6] - roomJoin
 java.lang.NumberFormatException: For input string: null
 at
 java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
 ~[na:1.7.0_04]
 at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
 at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
 at
 org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
 ~[na:na]
 at
 org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
 ~[na:na]
 at
 org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
 ~[na:na]
 at
 org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
 [red5.jar:na]


 And part of stacktrace from red5.log:

 2013-01-31 12:09:39,669 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
 2013-01-31 12:09:39,794 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
 2013-01-31 12:09:39,845 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
 2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
 o.r.server.service.ServiceInvoker - Error executing call: Service: null
 Method: getPublicSID Num Params: 0
 java.lang.reflect.InvocationTargetException: null
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 ~[na:1.7.0_04]
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 ~[na:1.7.0_04]
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.7.0_04]
 at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
 at
 org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
 [red5.jar:na]
 at
 org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
 [red5.jar:na]
 at
 org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
 [red5.jar:na]





 I'm going to investigate, then will retest publicSID issue


 On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com 
 seba.wag...@gmail.com wrote:

 Hi Maxim,

 could you describe the use case that you had issue with the session not
 being correctly cleaned up?

 Thanks!
 Sebastian

 --
 Sebastian Wagner
 https://twitter.com/#!/dead_lock
 http://www.webbase-design.de
 http://www.wagner-sebastian.com
 seba.wag...@gmail.com




 --
 WBR
 Maxim aka solomax




-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wag...@gmail.com


Re: Issue with publicSID in memory based session cache

2013-01-30 Thread Maxim Solodovnik
The first issue was with
openmeetings-applicationContext.xml

null in serverId was interpreted as String with value null (4
characters)

The second issue was with ManageCryptStyle, it was not autowired in
anonymous class

Was tested on 2 machines (Linux+Windows)

continue investigating


On Thu, Jan 31, 2013 at 12:36 PM, seba.wag...@gmail.com 
seba.wag...@gmail.com wrote:

 Are you sure you are using the default config files and a fresh build?
 Cause I don't have those errors. It seems like your
 openmeetings-applicationContext.xml is outdated or you did not svn update.

 Sebastian


 2013/1/31 Maxim Solodovnik solomax...@gmail.com

 Currently OM is broken (on our side)

 Here is the part of stacktrace from OM log:
 ERROR 01-31 12:09:40.339 ScopeApplicationAdapter.java 56269 199
 org.apache.openmeetings.remote.red5.ScopeApplicationAdapter
 [http-nio-0.0.0.0-8088-exec-6] - roomJoin
 java.lang.NumberFormatException: For input string: null
 at
 java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
 ~[na:1.7.0_04]
 at java.lang.Long.parseLong(Long.java:441) ~[na:1.7.0_04]
 at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_04]
 at
 org.apache.openmeetings.session.ServerUtil.getCurrentServer(ServerUtil.java:76)
 ~[na:na]
 at
 org.apache.openmeetings.session.SessionManager.addClientListItem(SessionManager.java:387)
 ~[na:na]
 at
 org.apache.openmeetings.remote.red5.ScopeApplicationAdapter.roomConnect(ScopeApplicationAdapter.java:186)
 ~[na:na]
 at
 org.red5.server.adapter.MultiThreadedApplicationAdapter.connect(MultiThreadedApplicationAdapter.java:326)
 [red5.jar:na]


 And part of stacktrace from red5.log:

 2013-01-31 12:09:39,669 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action xmlcrm.getsessiondata
 2013-01-31 12:09:39,794 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action _error
 2013-01-31 12:09:39,845 [NioProcessor-2] INFO
  o.r.s.n.r.codec.RTMPProtocolDecoder - Action getPublicSID
 2013-01-31 12:09:39,857 [NioProcessor-2] ERROR
 o.r.server.service.ServiceInvoker - Error executing call: Service: null
 Method: getPublicSID Num Params: 0
 java.lang.reflect.InvocationTargetException: null
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 ~[na:1.7.0_04]
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 ~[na:1.7.0_04]
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.7.0_04]
 at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
 at
 org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:196)
 [red5.jar:na]
 at
 org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
 [red5.jar:na]
 at
 org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:157)
 [red5.jar:na]





 I'm going to investigate, then will retest publicSID issue


 On Thu, Jan 31, 2013 at 10:16 AM, seba.wag...@gmail.com 
 seba.wag...@gmail.com wrote:

 Hi Maxim,

 could you describe the use case that you had issue with the session not
 being correctly cleaned up?

 Thanks!
 Sebastian

 --
 Sebastian Wagner
 https://twitter.com/#!/dead_lock
 http://www.webbase-design.de
 http://www.wagner-sebastian.com
 seba.wag...@gmail.com




 --
 WBR
 Maxim aka solomax




 --
 Sebastian Wagner
 https://twitter.com/#!/dead_lock
 http://www.webbase-design.de
 http://www.wagner-sebastian.com
 seba.wag...@gmail.com




-- 
WBR
Maxim aka solomax