Reject calls without caller id

I have setup my asterisk server to accept anonymous calls (for e164). I would like asterisk to refuse any anonymous call from the internet that does not have caller id. I want a custom message to play, something like ‘We do not accept unidentified callers…’.

Thanks,

David

And ?

mayby exaple 3 on this -> http://www.voip-info.org/wiki-Asterisk+cmd+gotoif page
will give You something to start with