Fredrik wrote:

> I see from my CDR's that some of my callers also have "unknown" in
> their FROM field. I would like to let them through. Only block the
> FROM "anonymous" that the telemarketers use.

Fredrik, I found something on the Wiki a while back... Try this...

exten => s,1,Answer
exten => s,2,NoOp(${CALLERID})
exten => s,3,ResponseTimeout(10)
exten => s,4,GotoIf($["${CALLERIDNUM}" = ""]?|1000)
exten => s,5,GotoIf($["${CALLERIDNUM:0:3}" = "877"]?s|1000)
exten => s,6,GotoIf($["${CALLERIDNUM:0:3}" = "866"]?s|1000)
exten => s,7,GotoIf($["${CALLERIDNUM:0:3}" = "800"]?s|1000)
exten => s,8,Macro(stdexten,${SIP0})
exten => s,9,Hangup
exten => s,1000,Background(SPAMSTOPPER)
exten => s,1001,Hangup

I have used this for a few months at home, and it works great...

Blake
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to