I just started looking into the same thing myself, and found that there is
alot of good genernal accounts programs built in the UNIX, I;m running
4.1.3 sunOS and found most of what u are looking for in chap. 8 of the
system adm. manual. It tells how to set accounting files, is suprisingly
enough very easy to do (unlike most things in UNIX *grin*)
Just make sure u add the lines in the corntab file for root, esp the one
that checks the file sizes of the log files angainst the available drive
space! those log files can grow really big real fast! Also look in the
syslog.conf file u can add logfiles for specific processes there too.
As far as logging the phone number of the incoming line i'm unsure of how
to do that, if i find out i'll post it, or u find out let me know.