SIP Account in Android, what for? - android

I just dont Understand
From the text of Android Website.
It said,
"Android provides an API that supports the Session Initiation Protocol
(SIP). This lets you add SIP-based internet telephony features to your
applications"
Which then I questioned myself, can we use this SIP API in
the Ad-Hoc connection of two Android devices connected each other?
What about,
"Each participant in the application's communication session must have
a SIP account. There are many different SIP providers that offer SIP
accounts."
an Account? What is that for? I assumed the account is
for handling the data translated from and to (client-server) communication.
But what about if I used for the Ad-Hoc TWo android communication, that Has no Internet connectivity? I mean, Can I used SIP Api for this? Or i should use something else...?

This mean Android now have build-in SIP stack API.
So if you want to build SIP applications like SIP softphone, then you can use Android API for SIP without using a thirtparty SIP stack.
Many applications build with SIP for example: PJSIP, CSipSimple, Linphone ...
After have SIP application (SIP client) you must have account to login and make call with another SIP clients.

SIP is an application layer protocol, means it works on transport layer, TCP/UDP/IP/SCTP...
You can make sip client using SIP API such as voip client and make a call with two android devices without server, just direct ip call, after set up ad-hoc network.
Thanks.

Related

SIP calls without SIP client

I am building an application using HTML5 with PHP restful service. This app will be converted to APK and IPA using Cordova/Phonegap. I need to implement SIP call (click to call) feature.
I have set up Kamailio SIP server. The SIP address will be pre-registered and allocated to my users.
To address (SIP address) will be embedded on the hyperlink, clicking on that should initiate SIP call between the two SIP address (Caller and Callee). I have only the audio call feature in my application.
I don't need SIP client (we don't have dial feature). Can I make SIP calls without a SIP client? Any help would be appreciated.
Thanks.
Can I make SIP calls without a SIP client?
By definition, no. A SIP client talks to a SIP server. This is not significantly different from an HTTP client talking to an HTTP server, or an SMTP client talking to an SMTP server, or an IMAP client talking to an IMAP server, or an SSH client talking to an SSH server, etc.
On Android, if the user has configured a SIP client, and if the SIP client supports something like the sip: scheme, you might be able to initiate a phone call to another SIP endpoint, though my guess is that this would require a custom Cordova plugin. I cannot speak as to what might be possible on iOS. I also do not know if there is a HTML5/JavaScript SIP client that you could integrate, though I would be somewhat surprised if there was one.
Quoting You "To address (SIP address) will be embedded on the hyperlink, clicking on that should initiate SIP call between the two SIP address (Caller and Callee). ".
You app has a link, clicking which will initiate a call. So app is working as a client so you do not need a separate client. Only thing you need to do is handle the SIP request with SDP media to lower layer (TCP/IP).
Please comment if i did not answer/understood your question properly.
If you mean without a sip client standalone application then the answer is yes, because most of click2call services work exactly in this way (e.g.: https://clic2call.demo.sociale.it/webrtc ).
But on the other hand you should consider that in that case the sip client is more than half based on the WebRTC browser implementation, and by now Cordova and Phonegap don't provide that functionality, not even with external plugin.
The good news is that Chrome supports WebRTC on Android and all desktop enviroments.

Implementing Voice/Video Chat Application in android

my new task is to implement Voice/Video chat native application in Android. I browsed net for the same and it was written that using Android "SIP" API we can do it. I gone through the documents about SIP.In Implementing using SIP we required SIP address for each user which will be provided by different SIP providers. I also checked the SipDemo sample app provided in samples.
Problem is my app will be used by many Users and they can chat with any others.
So, how can we generate SIP address for each user dynamically and establish communication session ?
or each there any other way of doing this ?
Please Help
If you want to test your android app you can generate a free sip account from AntiSip.
and for generating sip account dynamically you have to configure sip on your server with the help of Asterisk:
Two VoIP software can contact each other directly by using direct SIP URI like username#IP:port.
This can work fine on local networks where the UA (sip user agent) has fix address. Otherwise you will need to use a SIP server (This is the main role of a SIP registrar server: to keep a track of the user locations). There are plenty open source software for this like the above mentioned Asterisk but you can also find a lot of services offering free calls (free from softphone to softphone; they charge only if you wish to make outbound calls to landline or mobile numbers).

Android Native SIP Client Configuration

Is it possible to configure Android native SIP client from your own android application (username,password and server IP) ??. I want to create android application when user installs it, the application automatically import SIP account from my server and configure (username,password and server IP) in Android native SIP client..
I have created my own SIP client using SIP Demo tutorial but it has poor voice quality and many other problems..So now i want to use Android native SIP client
Android provides an API that supports the Session Initiation Protocol (SIP). This lets you add SIP-based internet telephony features to your applications. Android includes a full SIP protocol stack and integrated call management services that let applications easily set up outgoing and incoming voice calls, without having to manage sessions, transport-level communication, or audio record or playback directly
visit this link:
http://developer.android.com/guide/topics/connectivity/sip.html

Implement SIP server for android 4.0

I want to implement SIP server and SIP client programs for android 4.0. In android samples already provides the "SIPdemo" SIP client program. It's use the android.net.sip package.
Can I use the android.net.sip package for implement the SIP server?
Is there any sample SIP server programs for android?
I think it is possible , I find this product in market usipserver it s free .
So it s possible to make you own sip server in Android
but I don't think with just android.sip , you must writing all code for the server use directly native code ( socket etc )
No. If you want a sip server, you can use Asterisk. Install and run it on a server machine and register the SipDemo into it.
I think http://www.linphone.org might be what you're looking for.
The android sip api requires a server I think.

Do I need a SIP Server / Registrar to implement a SIP intercom system?

Do I need a PBX or SIP server to allow two devices to communicate via SIP?
Lets assume one device (Android or IOS) knows the IP address of another. Couldn't that device send the INVITE directly to the other and get a conversation started, without the need for a SIP server? Or am I oversimplifying and the SIP server does something magical that I'm missing?
Thanks,
Mike
What you are describing is peer-to-peer SIP which does not require any servers in the middle. So yes it is possible.
As per SIP standard there is no restriction of SIP server to be use.
Server is use because we do not have to remember location (IP Port) of all SIP users.
When user register with server, Server take care of location of user.
(Server provide so many other features but to make this description easy ignoring all)
But in your case as you know IP address of another user no need of server.
Just make sure a SIP stack you are using is allow you to send INVITE without REGISTER. Because some stack restrict client to send INVITE without successfully register.

Categories

Resources