AllStar Asterisk Logging HamVoip

To log when Asterisk hangs up a connection from your blacklist, change the blacklist section as follows:

[blacklist]
exten => _XXXX!,1,NoOp(${CALLERID(num)})
exten => _XXXX!,n,GotoIf($[${DB_EXISTS(blacklist/${CALLERID(num)})}]?blocked)
exten => _XXXX!,n,Goto(radio-secure,${EXTEN},1)
exten => _XXXX!,n(blocked),System(date >> /etc/asterisk/black_log.txt && echo ${CALLERID(num)} >> /etc/asterisk/black_log.txt)
exten => _XXXX!,n,Hangup

extensions.conf

https://gist.github.com/vbradio/36d2c264b9f189cd9c9ebffd8377d1e5

The log file can be found at “/etc/asterisk/black_log.txt”. You can get creative and make an extra button in your Supermon / Allmon page that links to the log file

.

.

.