wrtc.onHungUp() is an event function called when when local user ends a call, "hungs up phone".
(If call is ended by other end hanging up wrtc.onGotHungUp occurs instead.)
You can use this event to indicate call has ended.
Local user ended call using call.hangup()
wrtc.onHungUp(obj)
Ignored.