Blacklist question

Look at this post for an idea of what you can do.

For my personal test number, I took that and when it adds to the blacklist, I set the value as timestamp and Caller ID Name.

; what do you want to do with calls that fail?
exten => s,n(finish),Set(DB(blacklist/${CALLERID(number)})=${STRFTIME(${EPOCH},,%Y%m%d-%H:%M:%S)} - ${CALLERID(name)})
exten => s,n,Noop(Caller failed to enter the digits 3 times with [bender-blocker]. Blacklisting ${CALLERID(number)} / ${CALLERID(name)})
exten => s,n,hangup

That code results in this. Note, the one with the arrow, a person was at the phone and actually entered the numbers so I manually put that line in the blacklist.

1 Like