To find ALL traces of a call:
For log files on disk, you can use "grep". This would be in the /var/log/asterisk folder and the /var/log/astguiclient folder. Note that some of these files may be compressed and require zgrep to search them without having to decompress everything.
- Code: Select all
cd /var/log/asterisk; grep 8885551212 * -Rn
For database files, I've found that performing a data dump to a non-compressed sql file and then using "grep" on the mysqldump file is comprehensive. There is a command in mysqldump to force "one record per line" so you don't have a match on a line with 5000 records in it, which is ... awkward to work with.
For CDR logs ... they are (depending on configuration) either in /var/log/asterisk/ sub folders (which would be greppable as they are file-based logs if present) or in a table which may be in a different database, so you would just dump all the databases that may have call data.
Then there's the SQLITE database, I've not had to search one of those for a while but "back in the day" I did find that there were records in there that nobody thought to erase (and that was very handy). Mostly the SQLITE Database is disabled in vicidial installs these days (it'll fill the HD if the server runs for too long, and even slow down asterisk loading after a couple years with a lot of calls). SQLite db is usually in /var/log/asterisk or /var/lib/asterisk and may be cdr.db or sqlite.db. If present and not tiny, there are tools to dump that data to disk as well and/or search the DB.