https://tech.iprock.com/archives/10952
How to log the DID of all incoming calls (including rejected ones) in FreePBX/Asterisk