cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
726
Views
0
Helpful
1
Replies

Dial peer phone number range problem

timm
Level 1
Level 1

Hi All,

I'm stuck on a problem and I'm looking for some new ideas.  I have  range of numbers, say 7000 through 7049 that I want to split between two different SIP destinations: 7000-7024 to one and 7025-49 to the other.  My initial thought was this:

dial-peer voice 100

destination-pattern ^70[01].$

session target <destination 1>

dial-peer voice 101

destination-pattern ^702[0-4]$

session target <destination 1>

dial-peer voice 102

destination-pattern ^702[5-9]$

session target <destination 2>

dial-peer voice 103

destination-pattern ^70[3-4].$

session target <destination 2>

I then could normalize it so:

dial-peer voice 100

destination-pattern ^70[01].$

session target <destination 1>

dial-peer voice 101

destination-pattern ^702[^5-9]$

session target <destination 1>

dial-peer voice 102

destination-pattern ^70[2-4].$

session target <destination 2>

Is there any way to get it down to two dial-peers?

1 Reply 1

paolo bevilacqua
Hall of Fame
Hall of Fame

No, there is no way.

Only patterns are supported, not ranges.