website tonight analytics
magnify
Home 3gpp Mjsip SIP stack port for Google Android released
formats

Mjsip SIP stack port for Google Android released

1.jpg

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 :-)

 
Tags: , , , ,

20 Responses

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

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

  3. [...] 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. LucaNo Gravatar

    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

  5. NitinNo Gravatar

    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

  6. Nitin KhannaNo Gravatar

    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.

  7. LucaNo Gravatar

    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.

  8. NitinNo Gravatar

    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

  9. NitinNo Gravatar

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

  10. LucaNo Gravatar

    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

  11. ArjunNo Gravatar

    Yes we will be releasing it soon. Stay tuned.

  12. LucaNo Gravatar

    Awesome! Thank you very much

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

  14. JyothsnaNo Gravatar

    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

  15. FriedgerNo Gravatar

    Where will the application be published? Is it already available?
    Friedger

  16. ArjunNo Gravatar

    @Friedger, it has already been released on our company website. See MjSIP UA released post.

  17. [...] 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. [...]

  18. Naresh KavaliNo Gravatar

    hi all,
    how can i get the MJSIP source code??

  19. akibsayyedNo Gravatar

    hello sir i am using MJsip for android developement. i would like look at sample example. can you please guide me through.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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