James you are right. let me add one more line exten => s,n,GotoIf($[${CALLERID(num)}=""]?nocid,s,1)
On Sun, Dec 6, 2009 at 3:18 PM, James Stocks <stoc...@stocksy.co.uk> wrote: > 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 > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Best Regards Shakeel Abbas
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users