Which (caller or callee) side hanged up the call?

My question is pretty simple, but I have no idea where to start.
How can I know which side (caller or callee) hanged up the call?

I searched in this forum and didn’t fine question related to it.

Thanks in advanced if anyone show me the way.