Asterisk Realtime: last login date

Hi,

Is there any way to add information about last login to realtime sip table? If not how to obtain such information?
Generally i want to remove old (unused) peers,

Best regards,
KB