I have setup a custom dial plan to make anonymous calls when dialing *67 followed by extension and permanently on extensions using the “hide-callerid” context.
extensions_custom.conf
[from-internal-custom]
exten => _*67X.,1,Set(CALLERPRES()=prohib_not_screened)
exten => _*67X.,n,Goto(from-internal,${EXTEN:3},1)
[hide-callerid]
exten => _[*0-9]!,1,Set(CALLERPRES()=prohib_not_screened)
exten => _[*0-9]!,n,Goto(from-internal,${EXTEN},1)
This is working exactly as expected and is applied to both internal and external calls
But I was wondering if there is some way in the dialplan to stop these calls from being inserted into the asterisk call trace database. When I run “database show CALLTRACE” form astersik CLI, I don’t want the anonymous calls to be showing.
That way the recipient can’t know who called by pressing *69 when the call is an anonymous call.