How to create SIP server for my android?
Asked Answered
M

4

7

I am developing an Android application, in which I want to make a calls using internet using SIP in android. So I need to maintain my own SIP sever for my app users, how can I create my own SIP server?

Manners answered 24/2, 2014 at 11:18 Comment(0)
D
6

I would not advise creating your our sip server as it would take a large number of man years of development and there are a lot of pitfalls.

There are some open source implementations that you could install and setup yourself. Like FreeSwitch or Asterisk. Both are large and complete to setup as there is a lot of domain knowledge required to understand how to set them up correctly.

There are also free server that you could try out as well like Sip2Sip.

Then there is the job of creating a sip client on Android. Again it's not that simple either. I would look at using a open source library here as well, like pjsip. This gives you the advantage of being able to look at examples of full sip clients already developed for Android like csipsimple. pjsip also has the advantage of being cross-platform, so you could reuse it in IOS for example.

Good luck.

Duren answered 25/2, 2014 at 6:25 Comment(0)
I
2

The Server

As a communication server, choose for example sip:providerCE v2.6. The easiest way to get started with it is to download the VMware or Virtualbox image and fire it up on a suitable machine. If you get more serious, you want to install the system from scratch on a dedicated server with a public static IP. If you’re new to VoIP and SIP, do NOT try to install it on an Amazon EC2 instance, as they’re using destination NAT, which is a big pain for SIP and needs some experience with the SPCE to tweak it properly for that scenario.

Note that the SPCE is a 64bit system, so in order to run the VM images, you need to turn on 64bit CPU virtualization in your BIOS if VMware or Virtualbox warns you about it.

...There is very good tutorial HERE! on how to set things up.

...Don't forget there is a technical advise concerning SIP check the accepted ANS!

...Least but not last check THIS! VOIP Wiki, It covers everything related to VOIP.

Insert answered 28/3, 2014 at 17:45 Comment(0)
G
1

I used uSIPserver on android. It works well and support video call. If you use client app which supports video then you can video call eachother on wifi. It is so simple to use.

Good luck :-)

Gutturalize answered 8/5, 2015 at 7:50 Comment(0)
I
1

SIP RFC is very easy protocol to implement. Just create a socket listener and implement RFC-3261. Start with with a basic codec GSM, then move up to A-LAW (G.711), as needed.

The tricky parts with SIP are (A) ensuring your call flows are correct (RFC-3665) and (B) media encoding/compresion. Use Asterisk (FreeSwitch) and WireShark to test your call flow. If you need DTMF support you'll need RFC-2833. If you need advanced codecs, consider using open-source library like FFMPEG.

Infer answered 24/3, 2017 at 18:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.