Incoming yes. Lets say that the analog lines are groupID 0 and the SIP are groupID 17. You make an incoming call route for analog for the 0 and an incoming call route (well multiple for your DIDs) for the SIP. You then pick which incoming call route you want to record on and enable recording on it.
If you want to record on analog line 1, but not 2-4, make 1 have a unique incoming group ID and then make an incoming call route for that line and enable recording for it.
Now for outgoing recording... do certain people use certain lines? If so you can setup user shortcodes to only use specific lines and then set the outgoing recording for those users. As for always doing specific lines, but not based on specific users, that part I am unsure of as that is not something I have been asked to do before.
The truth is just an excuse for lack of imagination.