Actually EventReleased for both scenario (customer or agent hang up) look exactly the same in TServer for Alcatel A4400/OXE. You need at least TServer 8.0+ for Call Release Tracking by TLib events - look in the Release Notes for additional informations.
In older versions you can do it by analizing CSTA messages in TServer log. It's simpler with +devlink in log-trace-flags but it is not necessary. If +devlink is absent and customer hangs up the call there will be 2 Release messages from CSTA, one from customer side with ANI as releasingDevice, the second one will be for local device (agent login). With -devlink there will be only 2 ConnectionCleared messages in cstaSwitchingEventDecode. After that EventReleased will be generated. If agent drops the call there will be only one Release message from CSTA and only one ConnectionCleared from cstaSwitchingEventDecode and releasingDevice will be agent login. You need to look for crossRefIdentifier or crossRef to find messages for specific call.
Look at following messages - they are for customer with ANI 226323277 hang up. For agent hang up you will have only second messages in the logs (agent login is 832xxxx). CrossRef is 0120e700.
[size=7pt][CDc-Deb]: TRACE: Received data for decoding (len = 95)
0000: A1 5D 02 02 0A CE 02 01 15 30 54 55 04 01 20 E7 .].......0TU....
0010: 00 A0 23 A2 21 30 1F 6B 0A 82 02 5A 5F 83 04 04 ..#.!0.k...Z_...
0020: 2C 01 04 63 0B 82 09 32 32 36 33 32 33 32 37 37 ,..c...226323277
0030: 4E 01 03 0A 01 30 7E 27 A0 0F 17 0D 30 35 31 30 N....0~'....0510
0040: 32 31 31 31 33 33 34 34 5A A1 14 30 12 06 06 2B 21113344Z..0...+
0050: 0C 89 36 84 09 04 08 7F B4 58 43 95 59 01 00 ..6......XC.Y..
[CDc-Deb]: RECEIVED: 95 bytes
aPDU-rose invoke { -- SEQUENCE --
invokeID 2766,
operationValue 21,
argument { -- SEQUENCE --
crossRefIdentifier '0120e700'H -- ". ç." --,
eventSpecificInfo callEvent connectionClearedEvent { -- SEQUENCE --
droppedConnection { -- SEQUENCE --
call '5a5f'H -- "Z_" --,
device dynamicID '042c0104'H -- ".,.." --
},
releasingDevice deviceIdentifier implicitPublic '323236333233323737'H -- "226323277" --,
localConnectionInfo 3,
cause 48
},
extensions { -- SEQUENCE --
security { -- SEQUENCE --
timeStamp '3035313032313131333334345a'H -- "051021113344Z" --
},
privateData { -- SEQUENCE/SET OF --
privateData { -- SEQUENCE --
manufacturer {1 3 12 1206 521},
'7fb4584395590100'H -- ". XC Y.." --
}
}
}
}
}
[CDc-Deb]: cstaSwitchingEventDecode: ConnectionCleared event in progress
[Usr-Inf]: Transaction Info:
Type/Oper. : 1 - 3 <Event : ConnectionCleared>
crossRef : 120e700
ConnId[0] : (5a5f-42c)-<(Trunk)>
LocalDev[0]: 226323277 (Public)
Cause : 48 <NormalClearing>
LocalInfo : 3 <Connected>
TimeStamp : <051021113344Z>
PrivateList has 1 elements:
PData : Global CallID : 7fb4584395590100
[Usr-Deb]: ConnectionCleared: -> refDev <8326706> (cref = '120E700')
[Usr-Deb]: ConnectionCleared: normal release on <226323277>
[TMl-Inf]: Party::Release: for <5a5f:5a5f:226323277> with cause (NormalClearing:48)[/size]
[size=7pt]CDc-Deb]: TRACE: Received data for decoding (len = 93)
0000: A1 5B 02 02 0B C2 02 01 15 30 52 55 04 01 20 E7 .[.......0RU....
0010: 00 A0 21 A2 1F 30 1D 6B 0A 82 02 5A 5F 83 04 0E ..!..0.k...Z_...
0020: D5 01 00 63 09 84 07 38 33 32 36 37 30 36 4E 01 ...c...8326706N.
0030: 00 0A 01 30 7E 27 A0 0F 17 0D 30 35 31 30 32 31 ...0~'....051021
0040: 31 31 33 33 35 34 5A A1 14 30 12 06 06 2B 0C 89 113354Z..0...+..
0050: 36 84 09 04 08 7F B4 58 43 95 59 01 00 6......XC.Y..
[CDc-Deb]: RECEIVED: 93 bytes
aPDU-rose invoke { -- SEQUENCE --
invokeID 3010,
operationValue 21,
argument { -- SEQUENCE --
crossRefIdentifier '0120e700'H -- ". ç." --,
eventSpecificInfo callEvent connectionClearedEvent { -- SEQUENCE --
droppedConnection { -- SEQUENCE --
call '5a5f'H -- "Z_" --,
device dynamicID '0ed50100'H -- ". .." --
},
releasingDevice deviceIdentifier implicitPrivate '38333236373036'H -- "8326706" --,
localConnectionInfo 0,
cause 48
},
extensions { -- SEQUENCE --
security { -- SEQUENCE --
timeStamp '3035313032313131333335345a'H -- "051021113354Z" --
},
privateData { -- SEQUENCE/SET OF --
privateData { -- SEQUENCE --
manufacturer {1 3 12 1206 521},
'7fb4584395590100'H -- ". XC Y.." --
}
}
}
}
}
[CDc-Deb]: cstaSwitchingEventDecode: ConnectionCleared event in progress
[Usr-Inf]: Transaction Info:
Type/Oper. : 1 - 3 <Event : ConnectionCleared>
crossRef : 120e700
ConnId[0] : (5a5f-ed5)-<(Unknown)>
LocalDev[0]: 8326706 (Private)
Cause : 48 <NormalClearing>
TimeStamp : <051021113354Z>
PrivateList has 1 elements:
PData : Global CallID : 7fb4584395590100
[Usr-Deb]: ConnectionCleared: -> refDev <8326706> (cref = '120E700')
[Usr-Deb]: ConnectionCleared: normal release on <8326706>
[TMl-Inf]: PartyDN::Release: for <5a5f:5a5f:1447> with cause (NormalClearing:48)[/size]