Get Asterisk CLI output for specific call

From Kolmisoft Wiki
Revision as of 12:15, 17 June 2009 by Mindaugas (talk | contribs) (New page: 1. Backup old log: mv /var/log/asterisk/full /var/log/asterisk/full_old 2. Enable full log in /etc/asterisk/logger.conf 3. asterisk -vvvvrx 'logger reload' 4. Make a call, remember destina...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

1. Backup old log: mv /var/log/asterisk/full /var/log/asterisk/full_old 2. Enable full log in /etc/asterisk/logger.conf 3. asterisk -vvvvrx 'logger reload' 4. Make a call, remember destination number you dialed 5. cd /var/log/asterisk/ 6. cat full | grep <DESTINATION NUMBER YOU DIALED BEFORE>

You can get a lot of output, look at last line which can look like this:

[Feb 26 16:12:14] NOTICE[32733] app_mor.c: Localized destination: 37063042438 (cut: , add: )

The most important part is BOLD, and in this example it is: 32733]

NOTE: that first brackets are not included! This is very important!

7. Now do:

cat full | grep 32733] 

And you will get output of your call.