How to end callKit call from my App's custom UI?

I have created Video calling app using AGORA, and also implement CallKit with it, but I'm not able to end the callKit call from my agora UI. Though i disconnect the video call from my app, but the callkit call is still running in the background of the app. Everytime, i have to manually disconnect the calllKit call after my app call is disconnected.
Please provide me a better solution.
How to end callKit call from my App's custom UI?
 
 
Q