[Solved] Keep Certain Extensions from Receiving Caller ID Completely?

Hi @jgiebler, @sorvani, @BlazeStudios, @lgaetz

I just remembered that the Yealink phones honors the privacy sip header, so all you have to do is to insert the privacy header of id to the inbound and outbound calls of your pbx, and the Yealink phones would show them as Anoymous. The good thing is that it would not affect the CDR of the call (you will still see the original caller id).

I disagree with @lgaetz comment regarding the from-pstn-custom context, but just for a good will here is a working example for outgoing calls (add a privacy header to extensions 301, 302 and 303) and incoming calls (assuming you are using a SIP trunk):

[from-internal-custom]
extension => _X./_30[1-3],1,SipAddHeader(Privacy: id)

;Add this custom context for the incoming calls in your trunk settings:
;(context=from-trunk-masking)
[from-trunk-masking]
exten => _X.,1,SipAddheader(Privacy: id)
same => n,Goto(from-pstn,${EXTEN},1)

or for a PJSIP channel you can check @lgaetz’s answer here: https://community.freepbx.org/t/add-custom-sip-header-to-pjsip-trunk/37010/5

Thank you,

Daniel Friedman
Trixton LTD.