Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

voice calls  RSS feed

 
manohar gunturu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My site is developed using jsp,
How two users in a site can make voice call to each other using java.

Please give the solution for it.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's quite a big task you've given yourself. In fact, my impression is that you're fundamentally underestimating what is involved. The only way I could see "the solution" provided to you in a forum post is if that post pointed you to a $20,000 software package that you could integrate in your web app.

Servlets and JSPs will have very little to do with it. Obviously you will need some client-side component that can record sound - if you want to use Java that would mean an applet (with all the security issues that come with that). Otherwise Flash might be an option. This client-side component then needs a server-side component to which it sends the compressed audio, and the server needs to have an open connection to some other client to which to send this audio where it would be decompressed and played.

That's the view from 10km up - there are lots of hard problems to solve before you'd have something decent. Because of that I predict that you will end up not doing this. Maybe add a chat functionality instead?
 
manohar gunturu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can't we do it using sockets
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, sockets would be used to communicate between the clients and the server. But that goes without saying, as any connection over a TCP/IP network uses sockets.

Or are you are asking whether it's possible to open a direct socket connection between the two clients? If so, that's possible in principle, but creates new problems regarding how to get through firewalls and such.
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manohar, you could use some cloud telephony provider like twilio/plivo to create solution. One such java client is https://github.com/plivo/plivohelper-java.
I had used a bit of this service in a sinatra application a while ago. I think this could be your possible solution rather than reinventing the wheel/going too low level.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!