I have the module “Set CallerID” set up to change the incoming number so that if the call is missed the number is automatically prefixed with a “0” for calling with the correct outgoing caller ID (0 is my business number, nothing is private). When using the blacklist function to add the last incoming number (*32) this 0 is also added to the blacklist which results in the number not being banned.
Is it possible to strip the 0 and add to original incoming number to the blacklist?
Incoming call: 012-3456789
Set callerID: 0012-3456789
Blacklisted number: 0012-3456789 => should be 012-3456789
I have thought about quering the database and changing numbers that match “00” periodically but I can’t seem to find the blacklist table in the MySQL database and I don’t think it would be wise to change the asterisk database file (sqlite).