cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
241
Views
0
Helpful
1
Replies

Help with COR

mcotrone
Level 3
Level 3

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

1 Reply 1

ivillegas
Level 6
Level 6

One simple solution possible -

Add 'huntstop' in dial-peer voice 900

One may also come up with a complex regular-expression that includes

all 91..... numbers except 91900.. for dial-peer 9999, however using

huntstop is a better option.