I am working on a VoIP app. I have integrated the callkit framework but having some trouble with Group calls.
The situation is the following:
- Made a call.
- Put first call on hold and made another.
- Clicked Merge button to merge both calls. Called CXSetGroupCallAction to merge both calls. It is successfully done.
- Now while ending the conference call, I am trying to end both the ongoing calls reported to callkit as the user pressed EndCall button.
- Created separate CXEndCallAction for both calls and executed the transaction. End call transaction is successful for both but callkit keeps on showing the red banner at the top.
What may be the reason? Is there a different procedure to follow to end a CXGroupCall?
Red banner means AVAudioSession is still active. Use CallKit's provider method to deactivate your audio engine
func provider(_ provider: CXProvider, didDeactivate audioSession: AVAudioSession) {