Blacklist CNAME?

Is there a way to blacklist a CNAME? I’m not opposed to writing code. The problem is harassing calls coming from a different CID every time, but the CNAME is always the same.

I get my CNAME on the call like this:

INVITE sip:[email protected]:53485 SIP/2.0
Via: SIP/2.0/UDP 64.0.0.0:5060;branch=z9hG4bK3009f0fe;rport
From: “Unavailable” sip:[email protected];tag=as3e112ee2
To: sip:[email protected]:53485
Contact: sip:[email protected]
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 21 May 2010 22:26:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 332

Sorry, it swallowed a lot of chars, the invite really looks like this:

INVITE sip:[email protected]:53485 SIP/2.0
Via: SIP/2.0/UDP 64.0.0.0:5060;branch=z9hG4bK3009f0fe;rport
From: "Unavailable" <sip:[email protected]>;tag=as3e112ee2
To: <sip:[email protected]:53485>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 21 May 2010 22:26:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 332