【问题标题】:How we can invoke the portsip delegate if app is terminated or force quite如果应用程序终止或强制执行,我们如何调用 portsip 委托
【发布时间】:2017-02-08 07:30:48
【问题描述】:

我在我的应用程序中使用 portsip SDK(试用版)进行 VOIP 通话。呼叫在前台和后台也能正常工作。我在客户端使用呼叫工具包框架进行传入/传出呼叫,当我从后台删除应用程序或强制应用程序时,在这种情况下,当我尝试与其他设备通话时,我收到了 VOIP 推送但端口 sip 传入委托不调用,而如果我再次调用(在同一应用程序状态下第二次)端口 sip 传入委托调用。所以在传入的代表不打电话之前,我们不能接受。拒绝来电。**

所以请帮我看看如果应用程序被终止或强制执行,我们如何调用端口 sip 委托。

【问题讨论】:

  • 收到推送时检查注册。我没有使用portsip。

标签: ios10 callkit portsip


【解决方案1】:

我也有类似的问题,但我没有使用portsip。因此,如果它与portsip 有关,我的回答可能不正确,但是我在Apple 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()
}

希望对你有帮助。

【讨论】:

  • Noo.. 我已经使用了...我的问题.. 当我从后台删除应用程序或强制应用程序时,在这种情况下,当我尝试与其他设备通话时,我收到了VOIP 推送但端口 sip 传入委托不调用,而如果我再次调用(在同一应用程序状态下第二次)端口 sip 传入委托调用。
猜你喜欢
  • 2011-03-21
  • 2011-04-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-09-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多