Getting CallKit to Dial A Number

Based on various sources like the source docs, I have implemented CallKit like below, but my app is not dialing. Any ideas? No errors are being reported, my provider supports VOIP, and my phone has wifi calling enabled.

Here is what I have:


Code Block Swift
let provider = CXProvider(configuration: CXProviderConfiguration(localizedName: "My App"))
provider.setDelegate(self, queue: nil)
let controller = CXCallController()
let transaction = CXTransaction(action: CXStartCallAction(call: UUID(), handle: CXHandle(type: .phoneNumber, value: "5555555555")))
self.controller.request(self.transaction, completion: { error in
if(error != nil){
print(error)
}
extension ViewController : CXProviderDelegate {
func providerDidReset(_ provider: CXProvider) {
}
   func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
       
            action.fulfill()
        }
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
action.fulfill()
}
func provider(_ provider: CXProvider, perform action: CXEndCallAction) {
action.fulfill()
}
}




Getting CallKit to Dial A Number
 
 
Q