JAIN SIP is working on top of android

701 views
Skip to first unread message

Jean Deruelle

unread,
Oct 23, 2008, 12:19:50 PM10/23/08
to mobicents-public, mobicen...@googlegroups.com
Hi guys,

Since I got a bit of spare time yesterday night and that I saw that
Android was available in US. I wondered for those that are interested
in building mobile SIP client apps if the jsip stack could run on
android.
And it actually does without any modifications :-)

I ported the Shootme and Shootist examples to android to showcase it.

More details are available here
http://jeanderuelle.blogspot.com/2008/10/jain-sip-is-working-on-top-of-android.html

Jean

aayush bhatnagar

unread,
Oct 23, 2008, 12:49:33 PM10/23/08
to mobicent...@googlegroups.com
Wow. 
This is great.
Does this mean that i can build an IMS client using Jsip on top of Android ?? It can be a possibility ! 

Aayush

Vicky Kak

unread,
Oct 23, 2008, 1:20:06 PM10/23/08
to mobicent...@googlegroups.com
Yes you can do that ;)

aayush bhatnagar

unread,
Oct 23, 2008, 1:35:45 PM10/23/08
to mobicent...@googlegroups.com
Hmm great..if something like that can be done. Or maybe JSR 281 APIs
can be clubbed with android to make an IMS client.

Amit Bhayani

unread,
Oct 23, 2008, 1:43:41 PM10/23/08
to mobicent...@googlegroups.com
Can one of us try directly using Sip Communicator, we don't have to reinvent the wheel.

aayush bhatnagar

unread,
Oct 23, 2008, 1:53:15 PM10/23/08
to mobicent...@googlegroups.com
You mean this ? : https://sc-android.dev.java.net/
:)

Amit Bhayani

unread,
Oct 23, 2008, 1:59:16 PM10/23/08
to mobicent...@googlegroups.com
Ahh so its already started, I was referring to original SIP Communicator project.

Jean Deruelle

unread,
Oct 23, 2008, 2:14:15 PM10/23/08
to mobicent...@googlegroups.com
Sip communicator is more than just SIP protocol so a bit more work
might be needed to port it to android.

Ivelin Ivanov

unread,
Oct 23, 2008, 4:53:16 PM10/23/08
to mobicent...@googlegroups.com
Cool, Jean!

Were you able to establish a voice call? Does Android provide access
to the audio input/output in a way that you can connect to RTP
streams?

Ivelin

aayush bhatnagar

unread,
Oct 23, 2008, 10:11:29 PM10/23/08
to mobicent...@googlegroups.com
Speaking of RTP...
http://blog.roychowdhury.org/2008/04/29/sip-ua-for-android-stack-rtp-released/
however, according to this gentleman..the Android emulator crashes
when they try to capture voice.

Jean Deruelle

unread,
Oct 24, 2008, 3:25:05 AM10/24/08
to mobicent...@googlegroups.com
No I just ported the signalling part but I can try to experiment a bit
with the RTP stream now I guess. :-)

Jean Deruelle

unread,
Oct 24, 2008, 4:54:08 AM10/24/08
to mobicent...@googlegroups.com
Yeah it seems Android is not providing a RTP stack so this would need
to be ported. the Media API of Android just allow to play a raw
resource, a file from the system, or from an available network (URL if
the file is capable of progressive download.)
http://code.google.com/android/toolbox/apis/media.html
Since MMS provides an RTP stack and after an offline talk, Amit told
me that it would be possible to make the MMS RTP stack modularized and
externalizable in a standalone jar. Same thing with the codecs. So if
anyone is interested we can put it as an low priority Issue. So please
vote :-)
I vote for it :-) Moreover that this could be also reused for a
standalone standard java sip client if needed.

aayush bhatnagar

unread,
Oct 24, 2008, 5:09:17 AM10/24/08
to mobicent...@googlegroups.com
I vote for it...we won 2-0.

Jean Deruelle

unread,
Oct 24, 2008, 5:10:21 AM10/24/08
to mobicent...@googlegroups.com
lol :-)

On Fri, Oct 24, 2008 at 11:09 AM, aayush bhatnagar

Jean Deruelle

unread,
Oct 24, 2008, 6:22:24 AM10/24/08
to mobicent...@googlegroups.com
Also Android can only record to a file. an API would need to be built
for recording to an RTP stream

Ivelin Ivanov

unread,
Oct 24, 2008, 9:11:23 AM10/24/08
to mobicent...@googlegroups.com
Stream or file? Is it possible to intercept the writing and redirect
to a live RTP stream? Same question for reading.

Jean Deruelle

unread,
Oct 24, 2008, 9:21:17 AM10/24/08
to mobicent...@googlegroups.com
From the API it doesn't look like it's possible
http://code.google.com/android/reference/android/media/MediaRecorder.html
and http://code.google.com/android/reference/android/media/MediaPlayer.html.
But since Google opened it's source code, we should be able to copy
paste and write new APIs to do so.

thomas

unread,
Oct 24, 2008, 12:05:15 PM10/24/08
to mobicents-public
Hi all,

We have started to develop a SIP/IMS phone a few months ago. We tried
a few SIP stacks and chose JSIP since it worked without any problem.
Media was working fine before Google removed the javasound support
(though the emulator had a few bugs with audio capture). We started
with an in-house basic RTP stack and we think that a modularized MMS
would be very nice. We are now working within the sc-android project.
The main issue at the moment is the Android support for audio in/out.

Anyhow, we are interested to contribute to this kind of project and
also vote for :-)

Thomas


On 24 oct, 15:21, "Jean Deruelle" <jean.derue...@gmail.com> wrote:
> From the API it doesn't look like it's possiblehttp://code.google.com/android/reference/android/media/MediaRecorder....
> andhttp://code.google.com/android/reference/android/media/MediaPlayer.html.
> But since Google opened it's source code, we should be able to copy
> paste and write new APIs to do so.
>
> On Fri, Oct 24, 2008 at 3:11 PM, Ivelin Ivanov
>
> <ivelin.atanasoff.iva...@gmail.com> wrote:
>
> > Stream or file? Is it possible to intercept the writing and redirect
> > to a live RTP stream? Same question for reading.
>
> > On 10/24/08, Jean Deruelle <jean.derue...@gmail.com> wrote:
>
> >>  Also Android can only record to a file. an API would need to be built
> >>  for recording to an RTP stream
>
> >>  On Fri, Oct 24, 2008 at 11:10 AM, Jean Deruelle <jean.derue...@gmail.com> wrote:
> >>  > lol :-)
>
> >>  > On Fri, Oct 24, 2008 at 11:09 AM, aayush bhatnagar
> >>  > <abhatnagar192...@gmail.com> wrote:
>
> >>  >> I vote for it...we won 2-0.
>
> >>  >> On 10/24/08, Jean Deruelle <jean.derue...@gmail.com> wrote:
>
> >>  >>> Yeah it seems Android is not providing a RTP stack so this would need
> >>  >>> to be ported. the Media API of Android just allow to play a raw
> >>  >>> resource, a file from the system, or from an available network (URL if
> >>  >>> the file is capable of progressive download.)
> >>  >>>http://code.google.com/android/toolbox/apis/media.html
> >>  >>> Since MMS provides an RTP stack and after an offline talk, Amit told
> >>  >>> me that it would be possible to make the MMS RTP stack modularized and
> >>  >>> externalizable in a standalone jar. Same thing with the codecs. So if
> >>  >>> anyone is interested we can put it as an low priority Issue. So please
> >>  >>> vote :-)
> >>  >>> I vote for it :-) Moreover that this could be also reused for a
> >>  >>> standalone standard java sip client if needed.
>
> >>  >>> On Fri, Oct 24, 2008 at 4:11 AM, aayush bhatnagar
> >>  >>> <abhatnagar192...@gmail.com> wrote:
>
> >>  >>>> Speaking of RTP...
> >>  >>>>http://blog.roychowdhury.org/2008/04/29/sip-ua-for-android-stack-rtp-...
> >>  >>>> however, according to this gentleman..the Android emulator crashes
> >>  >>>> when they try to capture voice.
>
> >>  >>>> On 10/23/08, Ivelin Ivanov <ivelin.atanasoff.iva...@gmail.com> wrote:
>
> >>  >>>>> Cool, Jean!
>
> >>  >>>>> Were you able to establish a voice call? Does Android provide access
> >>  >>>>> to the audio input/output in a way that you can connect to RTP
> >>  >>>>> streams?
>
> >>  >>>>> Ivelin
>
> >>  >>>>> On 10/23/08, Jean Deruelle <jean.derue...@gmail.com> wrote:
>
> >>  >>>>>>  Sip communicator is more than just SIP protocol so a bit more work
> >>  >>>>>>  might be needed to port it to android.
>
> >>  >>>>>>  On Thu, Oct 23, 2008 at 7:59 PM, Amit Bhayani <amit.bhay...@gmail.com>
> >>  >>>>>> wrote:
> >>  >>>>>>  > Ahh so its already started, I was referring to original SIP
> >>  >>>>>> Communicator
> >>  >>>>>>  > project.
>
> >>  >>>>>>  > On Thu, Oct 23, 2008 at 11:23 PM, aayush bhatnagar
> >>  >>>>>>  > <abhatnagar192...@gmail.com> wrote:
>
> >>  >>>>>>  >> You mean this ? :https://sc-android.dev.java.net/
> >>  >>>>>>  >> :)
>
> >>  >>>>>>  >> On Thu, Oct 23, 2008 at 11:13 PM, Amit Bhayani
> >>  >>>>>> <amit.bhay...@gmail.com>
> >>  >>>>>>  >> wrote:
>
> >>  >>>>>>  >>> Can one of us try directly using Sip Communicator, we don't have to
> >>  >>>>>>  >>> reinvent the wheel.
>
> >>  >>>>>>  >>> On Thu, Oct 23, 2008 at 11:05 PM, aayush bhatnagar
> >>  >>>>>>  >>> <abhatnagar192...@gmail.com> wrote:
>
> >>  >>>>>>  >>>> Hmm great..if something like that can be done. Or maybe JSR 281
> >>  >>>>>> APIs
> >>  >>>>>>  >>>> can be clubbed with android to make an IMS client.
>
> >>  >>>>>>  >>>> On 10/23/08, Vicky Kak <vicky....@gmail.com> wrote:
> >>  >>>>>>  >>>> > Yes you can do that ;)
>
> >>  >>>>>>  >>>> > On Thu, Oct 23, 2008 at 10:19 PM, aayush bhatnagar <
> >>  >>>>>>  >>>> > abhatnagar192...@gmail.com> wrote:
>
> >>  >>>>>>  >>>> >> Wow. This is great.
> >>  >>>>>>  >>>> >> Does this mean that i can build an IMS client using Jsip on top
> >>  >>>>>> of
> >>  >>>>>>  >>>> >> Android
> >>  >>>>>>  >>>> >> ?? It can be a possibility !
>
> >>  >>>>>>  >>>> >> Aayush
>
> >>  >>>>>>  >>>> >> On Thu, Oct 23, 2008 at 9:49 PM, Jean Deruelle
> >>  >>>>>>  >>>> >> <jean.derue...@gmail.com>wrote:
>
> >>  >>>>>>  >>>> >>> Hi guys,
>
> >>  >>>>>>  >>>> >>> Since I got a bit of spare time yesterday night and that I saw
> >>  >>>>>> that
> >>  >>>>>>  >>>> >>> Android was available in US. I wondered for those that are
> >>  >>>>>>  >>>> >>> interested
> >>  >>>>>>  >>>> >>> in building mobile SIP client apps if the jsip stack could run
> >>  >>>>>> on
> >>  >>>>>>  >>>> >>> android.
> >>  >>>>>>  >>>> >>> And it actually does without any modifications  :-)
>
> >>  >>>>>>  >>>> >>> I ported the Shootme and Shootist examples to android to
> >>  >>>>>> showcase
> >>  >>>>>>  >>>> >>> it.
>
> >>  >>>>>>  >>>> >>> More details are available here
>
> >>  >>>>>>http://jeanderuelle.blogspot.com/2008/10/jain-sip-is-working-on-top-o...
>
> >>  >>>>>>  >>>> >>> Jean

Amit Bhayani

unread,
Oct 24, 2008, 12:26:46 PM10/24/08
to mobicent...@googlegroups.com
Hi Thomas,

Thanks for showing interest. can you please point us to your RTP Stack? Is it open source?
The MMS code can be found at http://code.google.com/p/mobicents/source/browse/#svn/trunk/servers/media/core

As of now there is no independent RTP Stack that can be reused out-of-box, but is TODO
You can start with http://code.google.com/p/mobicents/source/browse/#svn/trunk/servers/media/core/server-impl/src/test to understand the architecture and of course forum is helpful.

Amit.

jean.d...@gmail.com

unread,
Oct 29, 2008, 6:47:09 AM10/29/08
to mobicents-public
I created an Issue so that the RTP Stack can be reused in the future.
See http://code.google.com/p/mobicents/issues/detail?id=436
Contributors are welcome here ! :-)

On Oct 24, 5:26 pm, "Amit Bhayani" <amit.bhay...@gmail.com> wrote:
> Hi Thomas,
>
> Thanks for showing interest. can you please point us to your RTP Stack? Is
> it open source?
> The MMS code can be found athttp://code.google.com/p/mobicents/source/browse/#svn/trunk/servers/m...
>
> As of now there is no independent RTP Stack that can be reused out-of-box,
> but is TODO
> You can start withhttp://code.google.com/p/mobicents/source/browse/#svn/trunk/servers/m...
> understand the architecture and of course forum is helpful.
>
> Amit.
>

Jean Deruelle

unread,
Jan 9, 2009, 2:54:48 AM1/9/09
to mobicents-public
On a related note : Skype is coming on the Android App Market :-)
http://theregoesdave.com/2009/01/08/android-skype-lite-client-coming-to-the-app-market/

Ivelin Ivanov

unread,
Jan 9, 2009, 7:28:38 AM1/9/09
to mobicent...@googlegroups.com
Its starting to get a bit more exciting. Vladimir showed me how Android can run on a Windows Mobile device via boot loader switch, which broadens the Android deploy base quickly.

aayush

unread,
Jan 9, 2009, 8:05:50 AM1/9/09
to mobicents-public
IMS client for android: http://code.google.com/p/android-ims

Jean Deruelle

unread,
Jan 9, 2009, 8:17:42 AM1/9/09
to mobicent...@googlegroups.com
how do you do that ? any link, tutorials ? it happens I do have a Windows Mobile device...

Vladimir Ralev

unread,
Jan 9, 2009, 9:21:03 AM1/9/09
to mobicent...@googlegroups.com
Well, it has to be an HTC (the android vendor). Most new HTC devices have almost identical hardware to the G1 and it's easy to port. For example http://forum.xda-developers.com/showthread.php?t=402002

Jean Deruelle

unread,
Jan 9, 2009, 9:28:47 AM1/9/09
to mobicent...@googlegroups.com
ok too bad then, Thanks for the link it might prove helpful to someone else out there :-)

Jean Deruelle

unread,
Jan 12, 2009, 7:47:42 AM1/12/09
to mobicents-public
One gentleman brought to my attention the cupcake branch of android
http://www.google.fr/url?sa=t&source=web&ct=res&cd=3&url=http%3A%2F%2Ftechnologyexpert.blogspot.com%2F2008%2F12%2Fnew-features-coming-to-android-via.html&ei=gjtrSeKVJ5iq-gbVpd2sBw&usg=AFQjCNGyVUiLDuXQEGXYlVZ9MwI7PjgesQ&sig2=M0nIAcNUxp4AOTryKZt-TQ

and it has just been merged in the trunk
http://groups.google.com/group/android-developers/browse_thread/thread/ed7fc8d6265a1a11/0d34ba1c2b0d3632

It seems Android just got Audio I/O Streaming...so a SIP UA with voice support might be able to work now on android...

On Wed, Oct 29, 2008 at 11:47 AM, jean.d...@gmail.com <jean.d...@gmail.com> wrote:

Ivelin Ivanov

unread,
Jan 12, 2009, 7:50:45 AM1/12/09
to mobicent...@googlegroups.com
Exciting. If anyone can setup a working SIP+RTP softphone prototype please post the results here.

thomas

unread,
Jan 13, 2009, 5:00:26 AM1/13/09
to mobicent...@googlegroups.com
Hi all,

We are still very interested to contribute. Our first prototype phone was somewhat frozen due to the removal of audio streaming features from Android. Our RTP stack was rather straightforward (probably too) and I think that having the RTP stack from MMS as an reusable as hinted by Amit is very appealing.
Please let me know if a project (or bootstrap) is available so that we may jump on the wagon.

Cheers,

Thomas

Ivelin Ivanov a écrit :

Jean Deruelle

unread,
Jan 14, 2009, 10:12:38 AM1/14/09
to mobicent...@googlegroups.com, Earlence Fernandes
Hi thomas,

there is an issue open to externalize the RTP stack from MMS http://code.google.com/p/mobicents/issues/detail?id=436.
I think that's a nice first step once this is done we can think of porting it to Android.

Adding Earlence Fernandes, a student from India, since he is also interested in developing a prototype SIP UA on Android.

MMS team, could you provide any hints, guildelines, steps or better lead the effort on how to best externalize the RTP stack in another sub maven project ?

Jean

Oleg Kulikov

unread,
Jan 14, 2009, 10:19:48 AM1/14/09
to mobicent...@googlegroups.com, Earlence Fernandes
We will move rtp to subproject after CR4 release

2009/1/14 Jean Deruelle <jean.d...@gmail.com>

Jean Deruelle

unread,
Jan 14, 2009, 10:22:47 AM1/14/09
to mobicent...@googlegroups.com
excellent, looks like you just got some more resources to help you out :-)
Reply all
Reply to author
Forward
0 new messages