Prevent refresh or back during call, give some confirmation prompt

I’m using external_api so if a participant accidentally clicked on call-end button or in mobile if a user accidentally swiping down or close the window accidentally to prevent these case what we can do?

I want to give a prompt like this

image

Do we have something @damencho