[sip-comm-dev] how to use this sip-communicator on OSGi framwork for video calling


#1

Hi, Dear Michael

Many thanks to you:)

But I am still puzzled about this and almost can’t understand your suggestion with my current knowledge.

In fact, I just hope to use sip bundle based on OSGi framework to run video chatting and video conference with our own GUI.

But I don’t know how to use this sip-communicator for my this target even sip-communicator is also based on osgi framework.

(Question 1)

I download “sip-communicator-1.0-alphal.i386” and install this in my FedoraCore6 system, but how to run this on OSGi framework?

(Question 2)

Whether there is a single osgi-based sip protoclo bundle which implement sip protocol and can be used for video chatting based on OSGi?

(Question 3)

How to embed this sip function with my own GUI and realize the sip function with using our own UI?

(Question 4)

You suggest: “Build the SIP-Communicator bundle JAR files and put them wherever knoplerfish can find them”, did you mean I need to compile and get the sip-com bundle JAR file, is this true? and I can not find any exist bundle Jar files in fact!

Best Regards!

···

Jerry Xi

--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello Jerry!

(see inline comments)

In fact, I just hope to use sip bundle based on OSGi
framework to run video chatting and video conference
with our own GUI. But I don't know how to use this
sip-communicator for my this target even sip-communicator
is also based on osgi framework.
   
(Question 1)
I download "sip-communicator-1.0-alphal.i386" and install
this in my FedoraCore6 system, but how to run this on
OSGi framework?

(Question 4)
You suggest: "Build the SIP-Communicator bundle JAR files
and put them wherever knoplerfish can find them", did you
mean I need to compile and get the sip-com bundle JAR file,
is this true? and I can not find any exist bundle Jar files
in fact!

I must confess that I don't really understand what you mean by OSGi
framework. The OSGi framework itself is just a specification, and there are
several implementations like Apache Felix and Knoplerfish. Each has its own
installation and configuration mechanism. SIP-Communicator includes and is
configured for Apache Felix, so with the SIP-Communicator installer you get
the Felix OSGi implementation as well als the application bundles.

I don't know where the linux installer puts the bundle Jar files. If you
download the sources and build it according to the build instructions on the
homepage, the bundle Jar files are put in the "sc-bundles" directory. Then
you can put them in the bundle repository of your OSGi installation.
   

(Question 2)
Whether there is a single osgi-based sip protoclo bundle
which implement sip protocol and can be used for video
chatting based on OSGi?

You'll want to use the protocol-sip bundle (and its dependend bundles).
   

(Question 3)
How to embed this sip function with my own GUI and realize
the sip function with using our own UI?
   
You'll want to get a reference to a
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl
by using the OSGi framework BundleContext. You can query this instance for
its OperationSetBasicTelephony operation set, which you can use to create
calls and listen to incoming calls. It's best to download the source release
and look at the interface documentation for these classes to see how to
access them.

I hope this helps.

Regards
Michael Koch


#3

Hello Jerry,

Xi Jiarong wrote:

Hi, Dear Michael
Many thanks to you:)
But I am still puzzled about this and almost can't understand your
suggestion with my current knowledge.

In fact, I just hope to use sip bundle based on OSGi framework to run
video chatting and video conference with our own GUI.
But I don't know how to use this sip-communicator for my this target
even sip-communicator is also based on osgi framework.

The bundles that deal with this are protocol-sip.jar and media.jar and
they could both be found in the sc-bundles directory after you execute a
build (ant rebuild). The media bundle is inside the os-specific directories.

(Question 1)
I download "sip-communicator-1.0-alphal.i386" and install this in my
FedoraCore6 system, but how to run this on OSGi framework?

SIP Communicator comes bundled with an OSGi distribution. We are using
Apache's Felix OSGi implementation. Every time you run SIP Communicator,
you are actually running the Felix OSGi implementation with a default
set of bundles that implement various SIP Communicator features.

(Question 2)
Whether there is a single osgi-based sip protoclo bundle which implement
sip protocol and can be used for video chatting based on OSGi?

All SIP related functions are in protocol-sip.jar. Media functionalities
(capture, playback, and RTP) are in media.jar. You would probably also
need the protocol.jar bundle that only contains our Protocol Provider
service.

(Question 3)
How to embed this sip function with my own GUI and realize the sip
function with using our own UI?

You could either begin from a sip-communicator installation and remove
all the bundles that you don't need (you could do this by editting
lib/felix.client.run.properties) or take protocol.jar, protocol-sip.jar
and media.jar then install them in your own OSGi container.

(Question 4)
You suggest: "Build the SIP-Communicator bundle JAR files and put them
wherever knoplerfish can find them", did you mean I need to compile and
get the sip-com bundle JAR file, is this true?

True. However, you'd need more than one bundle for this to make sense.

and I can not find any exist bundle Jar files in fact!

After you have built the project, they are all locate in the sc-bundles
directory.

Cheers
Emil

···

Best Regards!

----------------
Jerry Xi
--------------------------------------------------------------------- To
unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net For
additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hey Michael,

Sorry for the double post. I've just received your mail from the mailing
list and it came after I had already sent my post on the same subject.
Thought I'd mention this in order not to make anyone think that I was
disagreeing with you (we are pretty much in line actually).

Thanks for answering!
Emil

Koch Michael wrote:

···

Hello Jerry!

(see inline comments)

In fact, I just hope to use sip bundle based on OSGi
framework to run video chatting and video conference
with our own GUI. But I don't know how to use this
sip-communicator for my this target even sip-communicator
is also based on osgi framework.
   
(Question 1)
I download "sip-communicator-1.0-alphal.i386" and install
this in my FedoraCore6 system, but how to run this on
OSGi framework?

(Question 4)
You suggest: "Build the SIP-Communicator bundle JAR files
and put them wherever knoplerfish can find them", did you
mean I need to compile and get the sip-com bundle JAR file,
is this true? and I can not find any exist bundle Jar files
in fact!

I must confess that I don't really understand what you mean by OSGi
framework. The OSGi framework itself is just a specification, and there are
several implementations like Apache Felix and Knoplerfish. Each has its own
installation and configuration mechanism. SIP-Communicator includes and is
configured for Apache Felix, so with the SIP-Communicator installer you get
the Felix OSGi implementation as well als the application bundles.

I don't know where the linux installer puts the bundle Jar files. If you
download the sources and build it according to the build instructions on the
homepage, the bundle Jar files are put in the "sc-bundles" directory. Then
you can put them in the bundle repository of your OSGi installation.
   

(Question 2)
Whether there is a single osgi-based sip protoclo bundle
which implement sip protocol and can be used for video
chatting based on OSGi?

You'll want to use the protocol-sip bundle (and its dependend bundles).
   

(Question 3)
How to embed this sip function with my own GUI and realize
the sip function with using our own UI?
   
You'll want to get a reference to a
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl
by using the OSGi framework BundleContext. You can query this instance for
its OperationSetBasicTelephony operation set, which you can use to create
calls and listen to incoming calls. It's best to download the source release
and look at the interface documentation for these classes to see how to
access them.

I hope this helps.

Regards
Michael Koch

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi, Dear Michael and Emil
Thanks a lot to both of you!
I got some very good instructions from your help and guid, and got to know
some principle and knowledge of the structure of sip-communicator.

I have download sip-communicator-src-1.0-alpha2-nightly.build.723.zip and
unzip it also.

(Question 1)
I try to modify sip protocol and implement that for experiment, as for
these target, which files I need to modify? Is this folder:
/src/net/java/sip/communicator/impl/protocol/sip? any suggestion about this
target? we want to connect this sip-osgi equipment with IMS service
platform then.

(Question 2)
I am now using knopflerfish as OSGi framwork, if I build this modified sip
bundle, can that sip-bundle run properlly on knopflerfish?

Thanks in advance!

Jerry


#6

Hello Jerry,

Xi Jiarong wrote:

Hi, Dear Michael and Emil
Thanks a lot to both of you!
I got some very good instructions from your help and guid, and got to
know some principle and knowledge of the structure of sip-communicator.

I have download sip-communicator-src-1.0-alpha2-nightly.build.723.zip
and unzip it also.

(Question 1)
I try to modify sip protocol and implement that for experiment, as for
these target, which files I need to modify? Is this folder:
/src/net/java/sip/communicator/impl/protocol/sip? any suggestion about
this target? we want to connect this sip-osgi equipment with IMS service
platform then.

Yes. If I correctly understand your goal, this is the place to modify.

(Question 2)
I am now using knopflerfish as OSGi framwork, if I build this modified
sip bundle, can that sip-bundle run properlly on knopflerfish?

We have never tested it on knopflerfish. It should work but, since we've
only been using it with felix, I won't be surprised if it doesn't.

Cheers
Emil

···

Thanks in advance!

Jerry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net