Browser to browser VoIP calling using SIP? [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
开发者_运维技巧 Improve this questionI am trying to call from one browser to another browser
.
What I have done:
- I set up my
asterisk serve
r just likegetonsip.com
- I wrote a
client
usingpjsua python binding
which acts as aserver
Here is the situation:
I can call from my browser ( My browser is on the same machine on which pjsua client is running) to my sip client on my android phone.
I am not able to do same from the browser from another machine.
What should I do for making a browser to browser call happen?
Does streaming and flash required for doing this?
You won't be able to do browser-to-browser calls with SIP at least not without a lot of plugin magic. The first problem is that by default SIP uses UDP port 5060, the browser sandbox won't let you communicate on that port so you'd need a plugin (Flash, Silverlight, Java Applet etc.). Once you've overcome the SIP side, and dealt with the NAT headaches along the way, you'd then need to work out how to get the browser to process the RTP media stream. That would mean more plugins.
There is actually an upcoming standard that deals with exactly what you are after, see RTC-WEB. While you're waiting for that you could try and get by with phono which is a javascript/flash component from Tropo that supports browser based calling but with the caveat being the call will traverse Tropo's SIP servers.
It's possible now, since WebRTC finally became standard and there are already implementations in both browsers and SIP server
- Asterisk 11 is officially support WebRTC
- Google Chrome has built-in WebRTC support since version 23
See this tutorial for more details http://www.html5rocks.com/en/tutorials/webrtc/basics/
精彩评论