[jitsi-dev] Create a call from command line param


#1

I'm trying to process command line param to run a Video Call for
existing Jabber contact.

I found out the processing is located in UriHandlerJabberImpl.java

For the first try I replaced the line
https://github.com/jitsi/jitsi/blob/ef1af9c72cc4f2001971cfd7c29b948f8137e0ea/src/net/java/sip/communicator/impl/protocol/jabber/UriHandlerJabberImpl.java#L362

  JabberActivator.getUIService().getChat(contact).setChatVisible(true);

with

  CallManager.createVideoCall(provider, contact.getAddress());

But it won't work during debug I catch an Exception:
java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/call/CallManager

How can I init CallManager correctly?

···

--
Dmitriy S. Sinyavskiy


#2

Hi Dmitriy,

Jitsi uses OSGi(and apache felix implementation of it) for loading bundles.
You may need to read more about it, and how does it work.

You are modifying protocol-jabber bundle which has a manifest file(
https://github.com/jitsi/jitsi/blob/master/src/net/java/sip/communicator/impl/protocol/jabber/jabber.provider.manifest.mf)
describing all the packages you can use inside it.

A package that is mentioned in the Import-Package: part of the bundle
manifest must be exported somewhere, so I don't think
net/java/sip/communicator/impl/gui/main/call/CallManager is exported
anywhere, that means that you can use CallManager only inside its own
bundle which is the swing-ui bundle, you can check build.xml to understand
how packages are split into bundles.

Regards
damencho

  I'm trying to process command line param to run a Video Call for
existing Jabber contact.

I found out the processing is located in UriHandlerJabberImpl.java

For the first try I replaced the line

https://github.com/jitsi/jitsi/blob/ef1af9c72cc4f2001971cfd7c29b948f8137e0ea/src/net/java/sip/communicator/impl/protocol/jabber/UriHandlerJabberImpl.java#L362

···

On Tue, May 15, 2018 at 4:45 AM Дмитрий Синявский <dsin@ezan.ac.ru> wrote:

   JabberActivator.getUIService().getChat(contact).setChatVisible(true);

with

   CallManager.createVideoCall(provider, contact.getAddress());

But it won't work during debug I catch an Exception:
java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/call/CallManager

How can I init CallManager correctly?

--
Dmitriy S. Sinyavskiy

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