Remco Barendse
2009-Dec-06 08:56 UTC
[asterisk-users] Example to handle incoming calls without callerid at home?
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!
James Stocks
2009-Dec-06 10:18 UTC
[asterisk-users] Example to handle incoming calls without callerid at home?
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