Upgrade! It's in later versions already
(Save yourself some issues ...)
You can upgrade to goautodial 3.0 which installs a late enough version of vicidial to have call menu logging.
Or you can fresh install vicibox 5.0.3 and then upgrade your db and have the absolute latest version (including asterisk 1.
.
Or you can install a later version in vmware or similar and check out logging for call menus and steal the necessary functionality for a back-port ... but that's a lot of effort. Only necessary if you want to use the feature outside call menus.
Here's the question, though: Where do you want to store this data? Vicidial_list table isn't viable (creating a new lead for each button pressed makes no sense whatsoever ...), so ... where? But if you check how call menus can be configured to do this in later versions, you may find it's already being managed in a way you can use.