end a phone call programmatically

hi,

when my app is launch, the app is Calling a phone number by-using swift

I want to end the call when the call is status is connected/ or call is received

please tell me how can I do that.

Thanks

CXEndCallAction & CXTransaction

Use both of them api , can end a call programmatically
end a phone call programmatically
 
 
Q