简体   繁体   English

Android-如何接听Skype / VoIP电话?

[英]Android - how to answer Skype/VoIP calls?

I'm interested in programatically answering a VoIP call, preferably within the Skype application, using my app's background service. 我对使用我的应用程序的后台服务以编程方式应答VoIP通话(最好在Skype应用程序中)感兴趣。 So I would need to be able to detect an incoming Skype call somehow, and then answer it. 因此,我将需要能够以某种方式检测到Skype来电,然后对其进行应答。 I've used the ITelephony interface to answer regular calls and this seems to be working on most phones. 我已经使用ITelephony界面来接听常规电话,这似乎在大多数电话上都可以使用。

Is this even possible? 这有可能吗? Is there an open-source Skype API for mobile I could use to do this? 我可以使用开放源代码的Skype移动版API来做到这一点吗?

Cheers. 干杯。

EDIT - does anyone know if there's a Viber open source API? 编辑-有人知道是否有Viber开源API吗? It's another VoIP smartphone application that I could work with. 这是我可以使用的另一个VoIP智能手机应用程序。

  1. Skype is not VoIP. Skype不是VoIP。 It uses it's own closed protocol. 它使用自己的封闭协议。

  2. Since Skype protocol is proprietary and no API is available, you can not detect that "a call" is coming. 由于Skype协议是专有协议,并且没有可用的API,因此您无法检测到“呼叫”即将到来。

  3. There is no open-source Skype API. 没有开源的Skype API。

It's not viable since Skype is not open source, and any attempt will be just a hack. 这是不可行的,因为Skype不是开源的,任何尝试都只是一种破解。 Skype uses a propietary protocol and a propietary interface. Skype使用专有协议和专有接口。 What you can do is use a VOIP library for non Skype communications. 您可以做的是将VOIP库用于非Skype通信。 A quick search in google revealed some dead projects, so start from there. 在Google中进行的快速搜索显示了一些无效的项目,因此从那里开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM