I don’t know exactly how to determine that user but essentially when you do try to figure it out, it should be the last person who took the call. Perhaps the FS API has such a feature?
keep in mind that calls get parked, transferred around ,etc. So literally the extension that hung up the call