Rejecting anonymous calls

I’ve been experimenting with PrivacyManager() on Asterisk 1.4.2. So far, this works as expected:

exten => s,1,Answer()
exten => s,2,PrivacyManager(2,10,j)
exten => s,3,Dial(SIP/blah)
exten => s,4,Hangup()
exten => s,103,Playback(im-sorry)
exten => s,104,Playback(vm-goodbye)
exten => s,105,Hangup()

But the above makes Asterisk answer the call.

Is there a way to reject calls that have either no caller id, or if the caller id matches certain strings (for eample, “UNAVAILABLE”, “OUT OF AREA”, and other telemarketer tricks) without answering the call?

Thanks.

-jav

I don’t think this will work (reliably anyway.) Why do you mind if the call is answered? As long as your phone doesn’t ring (which won’t happen if PM rejects the call)…