[英]How to make voip calls from java web application
Following is my use case:以下是我的用例:
I am developing a web application using Java/J2EE.我正在使用 Java/J2EE 开发 web 应用程序。 My application will have registered users and any one of them should call each other at any time.我的应用程序将有注册用户,他们中的任何一个都应该随时互相调用。 I don't have any problem even if i have to use some proprietary solution/API, but i don't want user to install anything like skype on their systems.即使我必须使用一些专有解决方案/API,我也没有任何问题,但我不希望用户在他们的系统上安装类似 Skype 的任何东西。 What can be the possible solution?可能的解决方案是什么?
Regarding calls:关于通话:
Please suggest.请建议。
I am not a J2EE developer, I'm more into .NET.我不是 J2EE 开发人员,我更喜欢 .NET。 If I have a web app and I need to have a voip functionality there are several ways this can be achieved: 1) Use a 3rd-party component like Netviewer.如果我有一个 web 应用程序并且我需要一个 voip 功能,有几种方法可以实现:1) 使用像 Netviewer 这样的第三方组件。 2) If you would like to develop the component yourself and you want it to be interoperable then use one of the open source protocol stacks available out there (there are many) that is based on SIP or may be H323, surely there are some for Java. 2)如果您想自己开发组件并且希望它具有互操作性,那么请使用基于 SIP 或可能是 H323 的可用开源协议栈之一(有很多),当然有一些可用于Java。 3) If you don't need inter-operability then you can create your own protocol stack on top of TCP. 3)如果您不需要互操作性,那么您可以在 TCP 之上创建自己的协议栈。
I will do case 2 and 3 as ActiveX components to be embedded in the web page.我将案例 2 和 3 作为 ActiveX 组件嵌入到 web 页面中。
For VoIP calls the 3 solutions above are suitable.对于 VoIP 呼叫,上述 3 种解决方案都适用。 However, if you need to make VoIP to mobile calls then you need a PBX data switch like one of those from Cisco that can route your VoIP traffic to the telephone network.但是,如果您需要将 VoIP 转接到移动电话,那么您需要一个 PBX 数据交换机,例如 Cisco 的交换机,它可以将您的 VoIP 流量路由到电话网络。 Checkout Asterisk, it's open source. Checkout Asterisk,它是开源的。
Netviewer link http://www.netviewer.com/en/ Netviewer 链接http://www.netviewer.com/en/
Java SIP https://github.com/usnistgov/jsip Java SIP https://github.com/usnistgov/jsip
Asterisk Opensource Telephony Projects http://www.asterisk.org/ Asterisk 开源电话项目http://www.asterisk.org/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.