gpt4 book ai didi

ios - iPhone 版 Linphone 进入后台模式时无法接听电话

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:07:34 26 4
gpt4 key购买 nike

我已经在我的应用程序中集成了 linphone sdk。当我的应用程序进入后台模式时,我的应用程序没有收到任何来电。我想让我的应用程序在进入后台模式时像 skype 一样工作。

我在 info.plist 中添加了所需的背景模式。

  Application does not run in background  - NO
Required background modes
item 1 App provides Voice over IP services

我在 ApplicationDidEnterBackground 中实现了以下方法,但我仍然面临同样的问题。

1.setKeepAliveTimeout:handler:
[http://www.linphone.org/docs/liblinphone/group__IOS.html][1]

请帮帮我。提前致谢。

最佳答案

在UDP模式下不工作,如果你的SIP服务器可以切换到TCP它应该工作的模式(例如:对于星号,请在您的 sip.conf 中使用 transport=tcp)。看来IOS在后台模式下不允许UDP流量。

我建议您切换到 SIP TCP/TLS,以便在 IOS 版 Linphone 上使用后台模式。

解决此 UDP 问题的唯一方法是通过创建长时间运行的后台任务来强制 iPhone 保持事件状态。结果是设备永远不会挂起,这会很快耗尽电池电量。

关于ios - iPhone 版 Linphone 进入后台模式时无法接听电话,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22630154/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com