We're trying to block all incoming calls that come from a specific area code. I've been trying to find a way to do this on our H323 gateway, but have been unsuccessful. I basically want to drop them at the gateway so calls are not delivered anywhere. I've tried adding a dial-peer to catch answer-address entries, but it seems my default dial-peer is catching it due to the precedence of incoming called-number.
Here is our current voice config. We have a callmanager at 10.141.1.1
If anyone could help, that would be awesome.
Thanks
dial-peer voice 1 pots incoming called-number . direct-inward-dial port 1/0:23 ! dial-peer voice 1499 pots destination-pattern 1499 port 1/0:23 prefix 5718174 ! dial-peer voice 1451 pots destination-pattern 1451 port 1/0:23 prefix 5718764 ! dial-peer voice 1461 pots destination-pattern 1461 port 1/0:23 prefix 5711827 ! dial-peer voice 1495 pots destination-pattern 1495 port 1/0:23 prefix 5718525 ! dial-peer voice 1400 voip settle-call destination-pattern 1... progress_ind setup enable 3 translate-outgoing called 1 session target ipv4:10.141.1.1 dtmf-relay h245-alphanumeric codec g711ulaw ip qos dscp cs5 media ! dial-peer voice 1000 pots destination-pattern 9T progress_ind setup enable 3 direct-inward-dial port 1/0:23 ! dial-peer voice 1401 voip settle-call destination-pattern 2... progress_ind setup enable 3 session target ipv4:10.141.1.1 dtmf-relay h245-alphanumeric codec g711ulaw ip qos dscp cs5 media