简体   繁体   English

如何从 java web 应用程序进行 voip 呼叫

[英]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:关于通话:

  1. Laptop - Mobile phone calls Can it be possible that one user uses his laptop/system to place calls to the other users mobile?笔记本电脑 - 手机通话 一个用户是否有可能使用他的笔记本电脑/系统向其他手机用户拨打电话?
  2. Laptop - Laptop (voip calls).笔记本电脑 - 笔记本电脑(网络电话)。 In this case, both will use headsets, like we do in GTalk.在这种情况下,两者都将使用耳机,就像我们在 GTalk 中所做的那样。

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.

相关问题 如何在Java Web应用程序中限制webservice调用 - How to throttle webservice calls in a Java web application 如何为Java Web应用程序建立Web链接? - How to make a web link for a java web application? java-通过任何VoIP服务提供商发起VoIP呼叫 - java - initiate VoIP calls through any VoIP Service Provider Java REST调用与Web应用程序的前端有何关系? - How do Java REST calls relate to the front end of a Web Application? 如何为Java Web应用程序制作登录机制? - How to make a login mechanism for a java web application? GWT / Java-在Eclipse中(使用GWT插件)执行“作为Web应用程序运行”时,可以进行RPC调用吗? - GWT / Java - Possible to make RPC calls when doing “run as web application” in Eclipse (with GWT plugin)? 如何在 ROOTED 设备上录制 VOIP 通话? - How to Record VOIP calls on a ROOTED device? Android-如何接听Skype / VoIP电话? - Android - how to answer Skype/VoIP calls? 如何在Java中将桌面应用程序转换为Web应用程序 - how to make my desktop application to web app application in java 如何通过Java Web应用程序使用户在其Twitter帐户中发布推文 - How to make a user tweet into his/her twitter account from java web application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM