I have a event socket listener that catches CHANNEL_HANGUP_COMPLETE events and I want to verify the call leg details

1. Did the call end in aleg or bleg

2. What was the call durations in each of the legs

I am not sure if I am applying the terminology of call legs in the proper way but
what I mean by aleg is that the incoming call was not bridged and bleg after being bridged