简体   繁体   English

iOS VOIP 通知 Linphone

[英]iOS VOIP notification Linphone

I have set up the latest linphone iOS code (version 3.16.6) and I am able to make audio and video calls but if my app is in background or killed, not getting calls.我已经设置了最新的 linphone iOS 代码(版本 3.16.6),并且可以进行音频和视频通话,但是如果我的应用程序在后台或被终止,则无法接听电话。

Please guide me in details that what I have to do to get the calls even when app is in background or killed.请详细指导我,即使应用程序在后台或被杀死,我也必须做些什么才能接到电话。

Please let me know if there is server interaction part also there.请让我知道那里是否还有服务器交互部分。

You have to wake up your application with voip-notification, before receiving call on background.在后台接听电话之前,您必须使用 voip-notification 唤醒您的应用程序。

  • So you can implement your solution which send notification before every call.因此,您可以实施在每次通话前发送通知的解决方案。 Notification wake an app and app receive the call通知唤醒应用程序和应用程序接听电话
    • You can use callkit for UI, but callkit itself doesn't handle any background or voip work.您可以将 callkit 用于 UI,但 callkit 本身不处理任何后台或 voip 工作。
  • Use some working solution for example FlexiSip from Belledonne使用一些工作解决方案,例如来自 Belledonne 的 FlexiSip

EDIT Voip notification process.编辑VoIP 通知过程。

Before every SIP Invite you have send voip notification to target device.在每次 SIP 邀请之前,您都会向目标设备发送 voip 通知。 Voip notification wake application which will be ready for accepting SIP call. VoIP 通知唤醒应用程序将准备好接受 SIP 呼叫。

I'm not sure if you use proxy or if you making just direct calls.我不确定您是使用代理还是直接拨打电话。 If you are using proxy you can try FlexiSIP which should handle this logic for you (I didn't tried).如果您使用代理,您可以尝试 FlexiSIP,它应该为您处理此逻辑(我没有尝试过)。 Of course you will need to provide your voip certificates to it.当然,您需要向它提供您的 voip 证书。

If you making direct calls without SIP proxy, source application should call same API of some web service which send voip notification for target device (For example Houston API).如果您在没有 SIP 代理的情况下进行直接呼叫,源应用程序应调用某些向目标设备发送 voip 通知的 Web 服务的相同 API(例如 Houston API)。 And after you can send SIP invite from source to target application.之后您可以将 SIP 邀请从源发送到目标应用程序。

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

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