The script call-logd was mixing up the calling / called numbers very often. In addition, it was often confused about calls with no calling number (ie. secret number, presentation restricted / not allowed).
Fix: This small patch seems to fix the problems for me.
It would be wise that somebody else tested it as well, to verify that it doesn't introduce other problems.
Install the port misc/callid, and configure it. Try to call yourself (from your cellphone for example) both with and without presentation of number allowed.
Look at the call log (web page).
Awaiting maintainers feedback
Committed, thanks! It would be much appreciated if you could try to get
the patch incorporated into the upstream source (the maintainer is the