Mjsip SIP stack port for Google Android released
2 04 2008![]()
Update: Apr 29 2008: UA+Stack code released here
Hey 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






[...] SIP Android - a sneak screencast 18 03 2008 Update: April 2 2008: Source code of stack released here [...]
[...] We have SIP working on android! 10 03 2008 Update: April 2 2008: Source code of stack released here [...]
[...] 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 […] [...]
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
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
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.
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.
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
Alternatively Luca, you can also create the folder using the adb tool.
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
Yes we will be releasing it soon. Stay tuned.
Awesome! Thank you very much
[...] en réalité du portage de MjSIP, une stack SIP écrite en Java . Ce portage est donc maintenant terminé et le code a été [...]
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
Where will the application be published? Is it already available?
Friedger
@Friedger, it has already been released on our company website. See MjSIP UA released post.
[...] Folks, my company just released an updated version of the SIP stack and UA (MJSIP) ported for the latest SDK 1.0r1. This is the same SDK that G1 uses. This is an update to this post. [...]
hi all,
how can i get the MJSIP source code??
@Naresh, google for “mjsip”