我在我的应用程序中使用portsip SDK (试用版)进行VOIP呼叫。Call在前台和后台都能正常工作。我在客户端使用Call Kit框架进行来电/去电,当我从后台删除应用程序或强制相当的应用程序时,在这种情况下,当我尝试呼叫其他设备时,我收到VOIP推送,但端口sip传入代理不会调用,而如果我再次调用(第二次在相同的应用程序状态下)端口sip传入代理调用。所以直到传入的委托没有调用,我们才能accept.decline传入的调用。**
因此,请帮助我,我们如何调用端口sip委托,如果应用程序终止或强制相当。
发布于 2017-02-09 15:05:55
我也遇到过类似的问题,但我没有使用portsip。因此,如果它与portsip相关,我的答案可能不正确,但是我在苹果Example上遵循了一些步骤。当我添加configureAudioSession()方法时,对我来说一切都很好。例如:
func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
// Create & configure an instance of SpeakerboxCall, the app's
configureAudioSession()
self.provider.reportOutgoingCall(with: call.uuid!, connectedAt: Date())
action.fulfill()
}
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
// Retrieve the SpeakerboxCall instance corresponding to the action's call UUID
guard callManager.callWithUUID(uuid: action.callUUID) != nil else {
action.fail()
return
}
configureAudioSession()
// Signal to the system that the action has been successfully performed.
action.fulfill()
}希望能有所帮助。
https://stackoverflow.com/questions/42107152
复制相似问题