Iñaki Baz Castillo writes:
How to avoid it? how to avoid anyone sending a malicious BYE with From&To tags and Call-ID from any other already ended call?
if you somehow can get hold of that information regarding a call, it is hard to prevent its misuse. regarding your accounting problem, perhaps update is not a good idea and it would be better to store stop records separately from start records.
-- juha