I found many code samples for reading the call log on iOS 4, but it seems that this feature (reading the call log DB) is not enabled on iOS 5.
So what is the work-around? Is there any (third party?) method or trick to be able to read the call log in iOS 5?
Take a look at the SpyPhone project on GitHub.
For example, you can get the most recently dialed number like so:
This works on my iOS5 phone. I would not expect Apple to be happy with this sort of functionality anymore.