I have been trying to block 900 numbers to go out but I am matching the LD dial-peer when I am blocking the 900 dialpeer. Any Ideas how to get around this?
!
dial-peer cor custom
name Local-PT
name LD-PT
name Block-PT
!
!
dial-peer cor list Local-CSS
member Local-PT
!
dial-peer cor list LD-CSS
member Local-PT
member LD-PT
!
dial-peer cor list Block-CSS
member Block-PT
!
!
dial-peer voice 911 pots
corlist outgoing Local-CSS
destination-pattern 911
port 2/0
forward-digits 3
!
dial-peer voice 800 pots
corlist outgoing Local-CSS
destination-pattern 91800.......
port 2/0
!
dial-peer voice 900 pots
corlist outgoing Block-CSS
destination-pattern 91900.......
port 2/0
!
dial-peer voice 1 pots
corlist outgoing Local-CSS
destination-pattern 9[2-9]......
port 2/0
!
dial-peer voice 9999 pots
corlist outgoing LD-CSS
destination-pattern 91[2-9].........
port 2/1
!
The Longer matching Destination Pattern is the DialPeer 900, but since it is being blocked it is then going out the 9999 DialPeer (LD). I have verified this by looking at the "sh dial-peer voice 9999" and watching the succesful calls incrememnt.
Thank you.
Mike