I need to develop the VOIP application between 2 android devices.
As I know there is a SIP protocol used for this purpose but it requires registation to SIP server and access to internet for SIP signaling.
Is any way to create VOIP application in android without internet access?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I think you can use JITSI for p2p voip service on multiple platforms including Andriod.
These are my findings about this project:-
actually SIP clients can talk peer-to-peer, they just need to know their IP addresses and UDP ports where they listen to SIP messages.
You can play around with normal SIP clients on two comuters (X-Lite for Windows, Twinkle for Linux, and some others exist too) and try establishing a call between them without server registration. It's quite possible.
Also you can run a minimalistic SIP server somewhere in local LAN. For example, FreeSWITCH can be minimized to a quite tiny footprint.
OK so if you are looking for some peer-2-peer communications, I think wifi is the way to go (better distance and speeds). If you can develop for only newer versions of Android then WI-FI Direct is the way to go, but that will only work on Android 4.0 and above
In order to have something run on below 4.0 you are going to have to go with a 3rd party library. I know Qualcomm has a library called alljoyn, but not sure how good it is.
Of course it is possible! Why you would need the internet? As long as you are both connected to the same network that is fine! Below is the java and xml for a working app.
On start up it will provide you with your own local port, for example "52022".. this is random every time and unfortunately that can't be helped. We then enter the IP address of the other phone and THEIR randomly generated port number and press connect. They do exactly the same and BAM you're connected :) This test app obviously requires you to be close by to exchange port numbers, but in my proper app I was easily able to request each port number before connecting. Hope this helps!
}
EDIT: The IP address method stopped working at API 22, use below code:
It is not possible because VOIP call Pass through internet and via sip server.
for Example . if you want to call outside from your country via VOIP dailer, you must need internet access because it is not possible to communicate via Bluetooth.
Thanks.