What you're asking has absolutely nothing to do with the endpoint model, there are hundreds and hundreds of posts on CSC on how to block incoming calls, in H323 for all versions, and with MGCP on some CUCM version.
Do a quick search and you'll get all the necessary info.
Also, if asking for assistance, you always need to mention what you're working with, not just what you want, the answer depends completely on that.
These are the paths to get to each CCX logs through CLI. They may be helpful if you are having issues accessing RTMT or downloading logs through it.
If you want to download them you have to prefix "file get " and you can add one of the options (re...