# Caller ID blocking

**URL:** <https://community.asterisk.org/t/caller-id-blocking/9806>\
**Category:** Asterisk Support\
**Created:** [October 11, 2006, 7:30am UTC](https://community.asterisk.org/t/caller-id-blocking/9806 "2006-10-11T07:30:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jongallant](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jongallant](https://community.asterisk.org/u/jongallant)\
**Post date:** [October 11, 2006, 7:30am UTC](https://community.asterisk.org/t/caller-id-blocking/9806/1 "2006-10-11T07:30:21Z")

</div>

I would like to know if it is possible to block Caller ID on a per user basis. That is, if the caller wishes to hide his/her caller ID, how can I configure this in Asterisk?

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [October 11, 2006, 7:38am UTC](https://community.asterisk.org/t/caller-id-blocking/9806/2 "2006-10-11T07:38:12Z")

</div>

you can do this using dialplan processing, e.g. use a prefix to enable/disable CallerID before proceeding to a Dial(), or an ASTDB entry that is checked before Dial() and sets CallerID depending on the entry, or a MySQL database that is checked by an AGI (or dialplan) and determines CallerID.

too much choice i know !!

---

<div class="post-metadata">

**Author:** ![jongallant](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jongallant](https://community.asterisk.org/u/jongallant)\
**Post date:** [October 11, 2006, 11:39am UTC](https://community.asterisk.org/t/caller-id-blocking/9806/3 "2006-10-11T11:39:53Z")

</div>

Thanks for your reply, but how can I actually enable/disable the caller ID in the dialplan?. Is a blank Caller ID satisfactory? Especially regarding calls towards PSTN?

alan

---

<div class="post-metadata">

**Author:** ![DonFoucker](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DonFoucker](https://community.asterisk.org/u/DonFoucker)\
**Post date:** [October 12, 2006, 2:53pm UTC](https://community.asterisk.org/t/caller-id-blocking/9806/4 "2006-10-12T14:53:53Z")

</div>

[quote=“alan”]Thanks for your reply, but how can I actually enable/disable the caller ID in the dialplan?. Is a blank Caller ID satisfactory? Especially regarding calls towards PSTN?

alan[/quote]

[BlockID]  
exten =\> \*67,1,Answer  
exten =\> \*67,n,wait,.5  
exten =\> \*67,n,Set(TIMEOUT(digit)=10)  
exten =\> \*67,n,Set(TIMEOUT(response)=10)  
exten =\> \*67,n,Read(callnum|beep|11|)  
exten =\> \*67,n,Set(CALLERID(name)=PRIVATE NAME|a)  
exten =\> \*67,n,Set(CALLERID(number)= |a)  
exten =\> \*67,n,SetCallerPres(prohib)  
exten =\> \*67,n,ResetCDR  
exten =\> \*67,n,Dial(Zap/g1/${callnum}|60)

That shoud do it…
