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?
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 !!
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=“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…