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

ABBAS SHAKEEL shakeel.abbas.qau at gmail.com
Sun Dec 6 04:36:02 CST 2009


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 <stocksy at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091206/fc71e3de/attachment.htm 


More information about the asterisk-users mailing list