learner
learner

Reputation: 4818

LAN calling in android

I want to develop an android application for LAN calling.My app resembles apps like whatsapp, viber etc, so I googled for the same. What I got from different answer is:

  1. Whenever we install whatsapp, the whatsapp server register our number and contact list. The app continuously pings the server and update its status on server.
  2. When we open the app, it gets the data from server, and if a number is found in contact list, it displays the status of the number and other things.
  3. Whenever we message some one, the message goes to server and stays there until delivered successfully.

For my app the two steps are:

  1. Find all the devices which has my app, their IP and mac address.
  2. When devices are found,allow calling between them.

For step 1, I have two options:

  1. As whatsapp, I can have a server. It registers the info of the mobile phone, whenever the app is installed. The app pings the server and shows its status.

  2. I can use my own network device discovery code. This code scans the network and find the devices. This step is costly, whole network is flooded with the packets. And also it is quite difficult to write network device discovery code.

For step two, I want to implement client-socket programming and simply connect the microphone of one device to the speaker of another phone. I think it is challenging, but it is possible.

Please help me with network discovery code or the server setup. I am quite familiar with android development, but very novice to networking. Also how calling is done between these devices?

I have searched for the answer and found the following links: Peer-to-peer SIP call with Android SIP Stack?

how to implement voip in android

VOIP on Android libraries or sample code

I also put a question on quora:

https://www.quora.com/How-can-I-develop-an-app-having-feature-like-whatsapp-calling-in-android

But, still I am stuck at the beginning. Please help me with it.

Upvotes: 1

Views: 2293

Answers (1)

tuxdna
tuxdna

Reputation: 8487

Not a complete answer yet, but here are the things to look for:

Upvotes: 2

Related Questions