Mjsip SIP stack port for Google Android released

2 04 2008

1.jpgHey folks, HSC released the android ported mjsip stack source code.

Grab it from here. Look for the attachment to the post titled “Ported GNU Mjsip stack for Google Android”

If you see a “PDF” icon under that post, don’t worry, its actually a ZIP with source in it. Our website folks will fix that annoyance soon.

Note that this is a “developer’s release”. It will allow you to start building applications using the mjsip stack on android. It’s not an “automatic solution for long distance calling” (as some blogs reported it) - it is a tool for developers within you to make such applications.

We also have a working SIP UA we ported on top of this stack (which we called ‘SIPDroid’ - no points for being imaginative here). We are yet to release that port - will do so in a short while.

Note that this is just a SIP stack. There is no RTP included. We did some initial experiments with porting open source RTP stacks - seems very simple. We may just do it later, or you do it and add to this effort :-)


Actions

Information

14 responses to “Mjsip SIP stack port for Google Android released”

2 04 2008
SIP Android - a sneak screencast « iConverged (17:54:59) :

[...] SIP Android - a sneak screencast 18 03 2008 Update: April 2 2008: Source code of stack released here  [...]

2 04 2008
We have SIP working on android! « iConverged (17:55:27) :

[...] We have SIP working on android! 10 03 2008  Update: April 2 2008: Source code of stack released here  [...]

3 04 2008
Mjsip SIP stack port for Google Android released (03:03:00) :

[...] ualtech wrote an interesting post today onHere’s a quick excerptHey folks, HSC released the android ported mjsip stack source code. Grab it from here. Look for the attachment to the post titled “Ported GNU Mjsip stack for Google Android” If you see a “PDF” icon under that post, don’t worry, its actually a ZIP with source in it. Our website folks will fix that annoyance soon. Note that this is a “developer’s release”. It will allow you to start building applications using the mjsip stack on android. It’s not an “automatic solution for long distance calling” (as some blogs reported it) - it is a tool for developers within you to make such applications. We also have a working SIP UA we ported on top of this stack (which we called ‘SIPDroid’ - no points for being imaginative here). We are yet to release that port - will do so in a short while. Note that this is just a SIP stack. There is […] [...]

4 04 2008
Luca (10:52:14) :

Hi
I’m using your port, but I’m stuck with the log calls. More precisely, I’m getting a lot of NullPointerException when performing normal actions, and inspecting the code I figured out because it’s printLog fault.
Is this a known issue or am I missing something?

Thank you

4 04 2008
Nitin (14:44:05) :

Hi!

Android has a security model in place which prevents a process from writing data to just about any location. So, if the final application package in which your application is defined is say for example org.hsc.sip.ua.ui then the log_path which must be supplied at the time of initializing the SipStack is /data/data/org.hsc.sip.ua.ui/files . I think this should resolve the issue.

Regards
Nitin

4 04 2008
Nitin Khanna (14:59:52) :

This error comes when the file path for logs is not correct. Android has a security model in place which prevents a process from writing on any location. Meaning that if the user implementation of the UA is defined in the package org.hsc.sip.ua then the path for the log files has to be /data/data/org.hsc.sip.ua/files.

I think this should resolve the issue.

5 04 2008
Luca (15:37:55) :

I changed that, but the problem isn’t solved.

Maybe I did something wrong, I’m pretty new to mjSIP.
I discovered that the problem comes out whenever I try to instantiate a new SipProvider. Commenting out the initLog() call inside the constructor solves the problem.
Before creating a new SipProvider i initialized the SipStack, placing the correct path of my log file as you suggested, but I’m stuck on this error messages.

5 04 2008
Nitin (18:11:51) :

Hi Luci!

I think you should check in your emulator using the adb or the ddms tool whether the directory /data/data/your_package/files exists or not. In case it does not exist then you might have to use, a function which is available in the activity context to open a dummy file ie. openFileInput to create this directory. If you need more help on this please do write back.

Regards
Nitin

6 04 2008
Nitin (06:56:04) :

Alternatively Luca, you can also create the folder using the adb tool.

7 04 2008
Luca (12:57:15) :

I created the directory, and now it works.

But I can’t get to write a working application. Do you intend to release your application or part of it? Or, if not, a simple step-by-step guide for performing the simplest task with mjSIP?

Thank you very much

7 04 2008
Arjun (14:10:13) :

Yes we will be releasing it soon. Stay tuned.

8 04 2008
Luca (08:32:09) :

Awesome! Thank you very much

8 04 2008
FrAndroid » Développement » La VoIP débarque sur Android Communauté francophone Android (18:56:49) :

[...] en réalité du portage de MjSIP, une stack SIP écrite en Java . Ce portage est donc maintenant terminé et le code a été [...]

18 04 2008
Jyothsna (16:46:12) :

HI,

Your project says that SIP stack is ready for android.

Does it mean that we can use that library for many applications or should we include it in every .apk file of each application to use the stack as currently there is no way developers could deploy library in android operating system as Dan Morrill said in this discussion.

http://groups.google.com/group/android-developers/browse_thread/thread/d9960c479d5ab8f2/f5544f30ea4f389a%23f5544f30ea4f389a

I am just wondering did u do any hack in deploying SIP stack in android or are you following the “copying sip stack for each application”

Thanks,
Jyothsna

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>