Looking to Capture Call Duration & Call End Action

Hi,
I am using the demo Jitsi Meet Android Code, to test some calling functionality.
But we find there is some features missing.

  1. Call Duration (Tried many ways to capture its not working)
  2. Call or Meeting Hangup / Disconnect action.
    Looking for help to fix these issues.