PATCH: JNI wrapper for pjsua

FH
Florian Hackenberger
Fri, Aug 8, 2008 9:44 AM

Hi!

I'm developing a Java phone based on pjsua and would like to contribute
a (not yet finished, but working) JNI wrapper for pjsua. I put the
attached code under whatever license you prefer. It includes bits of
pjsua header code, which is GPL. The wrapper is generated using swig
and has been developed against pjproject-0.9.0 with one tiny patch you
can find in pjsip_patches (it adds a pjsua_transport_get_count()
function). The attached tarball is an eclipse plugin project (OSGi
bundle) with a Makefile (needs some rework) for generating the wrapper
and compiling the jni shared library. It includes an Application class
which can be launched with eclipse. The application registeres to an
asterisk server and establishes a call (adjust the constants at the top
to match your environment).

Missing parts are in the area of passing data in void* buffers from
pjsua to Java (like on_pager_status does). I'm struggling with swig,
but I hope that the swig developers will help me out.

Comments and patches for the wrapper are welcome!

Eventually I'd like to release the Java phone as well.

Thank you very much for your great library!

Cheers,
Florian

--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at

Hi! I'm developing a Java phone based on pjsua and would like to contribute a (not yet finished, but working) JNI wrapper for pjsua. I put the attached code under whatever license you prefer. It includes bits of pjsua header code, which is GPL. The wrapper is generated using swig and has been developed against pjproject-0.9.0 with one tiny patch you can find in pjsip_patches (it adds a pjsua_transport_get_count() function). The attached tarball is an eclipse plugin project (OSGi bundle) with a Makefile (needs some rework) for generating the wrapper and compiling the jni shared library. It includes an Application class which can be launched with eclipse. The application registeres to an asterisk server and establishes a call (adjust the constants at the top to match your environment). Missing parts are in the area of passing data in void* buffers from pjsua to Java (like on_pager_status does). I'm struggling with swig, but I hope that the swig developers will help me out. Comments and patches for the wrapper are welcome! Eventually I'd like to release the Java phone as well. Thank you very much for your great library! Cheers, Florian -- DI Florian Hackenberger florian@hackenberger.at www.hackenberger.at
FH
Florian Hackenberger
Tue, Aug 12, 2008 1:50 PM

On Friday 08 August 2008, Florian Hackenberger wrote:

Comments and patches for the wrapper are welcome!

Would you be willing to incorporate the JNI wrapper into the pjsip
distribution or shall I create a separate project for it?

Cheers,
Florian

--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at

On Friday 08 August 2008, Florian Hackenberger wrote: > Comments and patches for the wrapper are welcome! Would you be willing to incorporate the JNI wrapper into the pjsip distribution or shall I create a separate project for it? Cheers, Florian -- DI Florian Hackenberger florian@hackenberger.at www.hackenberger.at
BP
Benny Prijono
Tue, Aug 12, 2008 2:21 PM

On Tue, Aug 12, 2008 at 2:50 PM, Florian Hackenberger <
f.hackenberger@chello.at> wrote:

On Friday 08 August 2008, Florian Hackenberger wrote:

Comments and patches for the wrapper are welcome!

Would you be willing to incorporate the JNI wrapper into the pjsip
distribution or shall I create a separate project for it?

Hi Florian,

strangely I didn't see your 08/08 post in my inbox (not even in the Spam
folder), although I could see it in the mailing list archive in the website.
Sorry for that.

I think due to the lack of Java skills (and in general, interest!) in our
part, probably I could not integrate the JNI wrapper into the main pjsip
distro, so perhaps it's best to start a sourceforge project for this. Or if
setting up a project is too much, I could just upload the tarball as is to
pjsip website (similar to this Tcl wrapper:
http://www.pjsip.org/contrib/pjsiptcl/) and list it here:
http://www.pjsip.org/contrib.htm.

Cheers
Benny

On Tue, Aug 12, 2008 at 2:50 PM, Florian Hackenberger < f.hackenberger@chello.at> wrote: > On Friday 08 August 2008, Florian Hackenberger wrote: > > Comments and patches for the wrapper are welcome! > Would you be willing to incorporate the JNI wrapper into the pjsip > distribution or shall I create a separate project for it? > > Hi Florian, strangely I didn't see your 08/08 post in my inbox (not even in the Spam folder), although I could see it in the mailing list archive in the website. Sorry for that. I think due to the lack of Java skills (and in general, interest!) in our part, probably I could not integrate the JNI wrapper into the main pjsip distro, so perhaps it's best to start a sourceforge project for this. Or if setting up a project is too much, I could just upload the tarball as is to pjsip website (similar to this Tcl wrapper: http://www.pjsip.org/contrib/pjsiptcl/) and list it here: http://www.pjsip.org/contrib.htm. Cheers Benny > Cheers, > Florian > > -- > DI Florian Hackenberger > florian@hackenberger.at > www.hackenberger.at > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
FH
Florian Hackenberger
Wed, Aug 13, 2008 6:41 AM

On Tuesday 12 August 2008, Benny Prijono wrote:

strangely I didn't see your 08/08 post in my inbox (not even in the
Spam folder), although I could see it in the mailing list archive in
the website. Sorry for that.

No problem, that's fine.

I think due to the lack of Java skills (and in general, interest!) in
our part, probably I could not integrate the JNI wrapper into the
main pjsip distro, so perhaps it's best to start a sourceforge
project for this. Or if setting up a project is too much, I could
just upload the tarball as is to pjsip website (similar to this Tcl
wrapper:
http://www.pjsip.org/contrib/pjsiptcl/) and list it here:
http://www.pjsip.org/contrib.htm.

Ok, I'll set up a sourceforge project and will send you the link so you
can put it on the contrib page.

Cheers,
Florian

--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at

On Tuesday 12 August 2008, Benny Prijono wrote: > strangely I didn't see your 08/08 post in my inbox (not even in the > Spam folder), although I could see it in the mailing list archive in > the website. Sorry for that. No problem, that's fine. > I think due to the lack of Java skills (and in general, interest!) in > our part, probably I could not integrate the JNI wrapper into the > main pjsip distro, so perhaps it's best to start a sourceforge > project for this. Or if setting up a project is too much, I could > just upload the tarball as is to pjsip website (similar to this Tcl > wrapper: > http://www.pjsip.org/contrib/pjsiptcl/) and list it here: > http://www.pjsip.org/contrib.htm. Ok, I'll set up a sourceforge project and will send you the link so you can put it on the contrib page. Cheers, Florian -- DI Florian Hackenberger florian@hackenberger.at www.hackenberger.at
FH
Florian Hackenberger
Fri, Aug 15, 2008 3:27 PM

On Tuesday 12 August 2008, Benny Prijono wrote:

I think due to the lack of Java skills (and in general, interest!) in
our part, probably I could not integrate the JNI wrapper into the
main pjsip distro, so perhaps it's best to start a sourceforge
project for this.

Ok, I uploaded the code to a new sourceforge project. Could you please
add it to your contributions page?

http://sourceforge.net/projects/pjsip-jni/

Cheers,
Florian

--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at

On Tuesday 12 August 2008, Benny Prijono wrote: > I think due to the lack of Java skills (and in general, interest!) in > our part, probably I could not integrate the JNI wrapper into the > main pjsip distro, so perhaps it's best to start a sourceforge > project for this. Ok, I uploaded the code to a new sourceforge project. Could you please add it to your contributions page? http://sourceforge.net/projects/pjsip-jni/ Cheers, Florian -- DI Florian Hackenberger florian@hackenberger.at www.hackenberger.at
BP
Benny Prijono
Fri, Aug 15, 2008 4:00 PM

On Fri, Aug 15, 2008 at 4:27 PM, Florian Hackenberger <
f.hackenberger@chello.at> wrote:

On Tuesday 12 August 2008, Benny Prijono wrote:

I think due to the lack of Java skills (and in general, interest!) in
our part, probably I could not integrate the JNI wrapper into the
main pjsip distro, so perhaps it's best to start a sourceforge
project for this.

Ok, I uploaded the code to a new sourceforge project. Could you please
add it to your contributions page?

http://sourceforge.net/projects/pjsip-jni/

I think a little bit of doc (some sort of README) would be nice. :)

-benny

On Fri, Aug 15, 2008 at 4:27 PM, Florian Hackenberger < f.hackenberger@chello.at> wrote: > On Tuesday 12 August 2008, Benny Prijono wrote: > > I think due to the lack of Java skills (and in general, interest!) in > > our part, probably I could not integrate the JNI wrapper into the > > main pjsip distro, so perhaps it's best to start a sourceforge > > project for this. > Ok, I uploaded the code to a new sourceforge project. Could you please > add it to your contributions page? > > http://sourceforge.net/projects/pjsip-jni/ > > I think a little bit of doc (some sort of README) would be nice. :) -benny