Is your M3904 call log working on the same PBX as i2004 or not?
If not, call log for ip phone have to be enable LD 117 ENL APP. That alows Call log for IP set to work.
For adding the prefix, CLS DAPA, in the RDB DAPC YES and table number defined in LD 15 FTR block