Logging CID of incoming calls

I have configured my Asterisk PBX system (asterisk- with a WhiteList database to check against any incoming calls. As such, an incoming call whose CID fails the check will not get through and I won’t be aware of those calls. For this, I am thinking to log the CID of any incoming calls. So, I took a look at /etc/asterisk/logger.conf file and didn’t find any information on how to log CID of any incoming calls. Does anyone know how to do this? Thanks.

You may use the Log dialplan application:


Marco Bruni


Many thanks to you and the dialplan works.