I’m trying to blacklist the caller ID of a caller during the call. Say, a telemarketer called me. I pick the phone up and realise it’s a telemarketer. Then I’d like to press some key to add the caller ID of the caller to a blacklist. How do I do this?
I know how to add numbers to a blacklist and do checking (using the AstDB and Gotoif). However, I couldn’t find any implementations that blacklisted a caller ID during the call when say *999 was pressed.
I did see other methods that required you to ring an IVR / dial a number after the call was disconnected to blacklist the callerID of the last call. But, I’d like a more seamless process. The closest I could get was to use the “g” option in the Dial() application (https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial) but this only works if the caller hangs up first (waiting a telemarketer to hangup wouldn’t be ideal).
Any help would be appreciated.