用于拨打电话的 Java API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7696202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java API to make a phone call
提问by Rites
Is there any Java API to make a phone call to a mobile(provided that service provider support will be arranged to make that call)?
是否有任何 Java API 可以向手机拨打电话(前提是将安排服务提供商支持来拨打该电话)?
myProgram(A) --> Java API to make a call like Skype(B) --> PSTN/Mobile network support(c)
Module A will be my Java code and it'll call the B's API which will in turn transfer the call to my service provider.
模块 A 将是我的 Java 代码,它将调用 B 的 API,后者又将调用转移到我的服务提供商。
I'm looking for an API at level B. Also, I'm not using Android. I want to run this code on my server.
我正在寻找 B 级 API。另外,我没有使用 Android。我想在我的服务器上运行此代码。
I tried and landed upto skype. For using Skype, Skype should be installed on the machine(which I don't want).
我尝试并登陆了Skype。要使用 Skype,应该在机器上安装 Skype(我不想要)。
Is there any other solution to do this?
有没有其他解决方案可以做到这一点?
回答by Chris
Did you already take a look on Asterisk? There is a Java API.
你已经看过Asterisk 了吗?有一个Java API。
回答by Kowser
There is Java Telephone API (JTAPI). You can take a look at that. It have different implementations, like xtapi, gjtapi. I have worked with xtapi.
有Java 电话 API (JTAPI)。你可以看看那个。它有不同的实现,比如xtapi,gjtapi。我曾与 xtapi 合作过。
It allows you to make/receive a call.
它允许您拨打/接听电话。