[asterisk-users] Example to handle incoming calls without callerid at home?

James Stocks stocksy at stocksy.co.uk
Sun Dec 6 04:18:46 CST 2009


On 6 Dec 2009, at 08:56, Remco Barendse wrote:

> I am using asterisk 1.6 at home and would like to send incoming calls 
> without caller id immediately to voicemail (i don't want to use the 
> privacy manager where people have to enter a number).
> 
> The config examples i found are all for the pretty obsolete 1.0 and 1.2 
> versions of asterisk.
> 
> Would anyone be willing to share a config example?
> 
> Thanks!

Well I don't claim to be a guru, but this is what I do:

; This is the context which receives calls:
[from-pstn]
exten => s,1,GotoIf($["${CALLERID(name)}" = "WITHHELD"]?nocid,s,1)
exten => s,n,GotoIf($["${CALLERID(name)}" = "INTERNATIONAL"]?nocid,s,1)
exten => s,n,GotoIf($["${CALLERID(name)}" = "UNAVAILABLE"]?nocid,s,1)
exten => s,n,GotoIf($["${CALLERID(name)}" = "PAYPHONE"]?nocid,s,1)
exten => s,n,Macro(call-house-phones)
exten => s,n,Hangup

[nocid]
; If no caller ID, here's where you specify what to do:
exten => s,1,Voicemail(401,u)
exten => s,n,Hangup



More information about the asterisk-users mailing list