如何使用CXSetGroupCallAction添加组呼

时间:2017-02-17 10:11:31

标签: ios objective-c voip pjsip callkit

我想添加对活动呼叫的新呼叫。如何在现有呼叫中添加新呼叫作为组/电话会议?

1 个答案:

答案 0 :(得分:0)

你需要做这样的事情

 let groupAction = CXSetGroupCallAction(call: callUUID, callUUIDToGroupWith: secondCallUUID)
 let transaction = CXTransaction()
 transaction.addAction(groupAction)
 let callController = CXCallController()
 callController.request(transaction) { error in         
     //completion?(error)
 }

之后,您希望从CXProviderDelegate捕获这些请求并将其传递到您的voip库