[jitsi-dev] Jitsi OpenMeetings plugin


#1

Hi,

I'm attaching several patches for the Jitsi OpenMeetings plugin (against SVN r1370136).

New features:
- enables provisioning properties
- allows the user to force/set conference room ID instead of getting an available room
- allows the user to set a "display name" instead of the SOAP login user name (in conjunction with provisioning it can be easy to set useful "display names" based on one or more parameters such as client IP/MAC address, "username" provided to Jitsi, corporate database lookup or even LDAP, etc.)
- SOAP password is stored and loaded via net.java.sip.communicator.service.credentialsstorage

Fixes:
- adapts to libjitsi/jitsi
- createInvitationUrl should not hardcode "openmeetings" in the invitation URL
- property names changed from plugin.openmeetings.* to net.java.sip.communicator.plugin.openmeetings.* (for coherency)
- displays Jabber chat window only when invitation URL has correctly been generated
- handles a null exception when no rooms are available in openmeetings

New properties for resources.properties (not included in attached patches):

plugin.openmeetings.DISPLAYED_NAME=Displayed name
plugin.openmeetings.ROOM_ID=Room ID

Sample PHP provisioning script:

echo "net.java.sip.communicator.plugin.openmeetings=\${null}\n";
echo "net.java.sip.communicator.plugin.openmeetings.DISABLED=false\n";
echo "net.java.sip.communicator.plugin.openmeetings.DISPLAYED_NAME=My full name\n";
echo "net.java.sip.communicator.plugin.openmeetings.SERVER=openmeetings.mydomain.org\\:5080\n";
echo "net.java.sip.communicator.plugin.openmeetings.PROTOCOL_PREFIX=http\\://\n";
echo "net.java.sip.communicator.plugin.openmeetings.OM_URI_CONTEXT=/webmeetings/\n";
echo "net.java.sip.communicator.plugin.openmeetings.LOGIN=SOAPusername\n";
echo "net.java.sip.communicator.plugin.openmeetings.PASSWORD=thisIsAsecret\n";
echo "net.java.sip.communicator.plugin.openmeetings.ROOM_ID=3\n";

Hopefully the code can be improved, merged into the official tree and be useful to others.

Vieri

OpenmeetingsConfigManager.java.diff (7.07 KB)

OpenmeetingsConfigPanel.java.diff (5.22 KB)

openmeetingsplugin.manifest.mf.diff (868 Bytes)

OpenmeetingsPluginActivator.java.diff (5.4 KB)

OpenmeetingsPluginMenuItem.java.diff (4.17 KB)

OpenmeetingsPluginSoapClient.java.diff (2.6 KB)


#2

Hi Vieri,

there was no patch file attached to your email.
I think it is not possible to attached files to emails via mailing list.
Best would be to create a new issue at:
https://issues.apache.org/jira/browse/OPENMEETINGS
and attach a file. We will assign it to a dev and commit it to our SVN then.

Thanks!
Sebastian

ยทยทยท

2012/8/7 Vieri <rentorbuy@yahoo.com>:

Hi,

I'm attaching several patches for the Jitsi OpenMeetings plugin (against SVN r1370136).

New features:
- enables provisioning properties
- allows the user to force/set conference room ID instead of getting an available room
- allows the user to set a "display name" instead of the SOAP login user name (in conjunction with provisioning it can be easy to set useful "display names" based on one or more parameters such as client IP/MAC address, "username" provided to Jitsi, corporate database lookup or even LDAP, etc.)
- SOAP password is stored and loaded via net.java.sip.communicator.service.credentialsstorage

Fixes:
- adapts to libjitsi/jitsi
- createInvitationUrl should not hardcode "openmeetings" in the invitation URL
- property names changed from plugin.openmeetings.* to net.java.sip.communicator.plugin.openmeetings.* (for coherency)
- displays Jabber chat window only when invitation URL has correctly been generated
- handles a null exception when no rooms are available in openmeetings

New properties for resources.properties (not included in attached patches):

plugin.openmeetings.DISPLAYED_NAME=Displayed name
plugin.openmeetings.ROOM_ID=Room ID

Sample PHP provisioning script:

echo "net.java.sip.communicator.plugin.openmeetings=\${null}\n";
echo "net.java.sip.communicator.plugin.openmeetings.DISABLED=false\n";
echo "net.java.sip.communicator.plugin.openmeetings.DISPLAYED_NAME=My full name\n";
echo "net.java.sip.communicator.plugin.openmeetings.SERVER=openmeetings.mydomain.org\\:5080\n";
echo "net.java.sip.communicator.plugin.openmeetings.PROTOCOL_PREFIX=http\\://\n";
echo "net.java.sip.communicator.plugin.openmeetings.OM_URI_CONTEXT=/webmeetings/\n";
echo "net.java.sip.communicator.plugin.openmeetings.LOGIN=SOAPusername\n";
echo "net.java.sip.communicator.plugin.openmeetings.PASSWORD=thisIsAsecret\n";
echo "net.java.sip.communicator.plugin.openmeetings.ROOM_ID=3\n";

Hopefully the code can be improved, merged into the official tree and be useful to others.

Vieri

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