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

Dial peer phone number range problem

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?

Everyone's tags (3)
1 REPLY 1
Highlighted
Hall of Fame Master

Dial peer phone number range problem

No, there is no way.

Only patterns are supported, not ranges.

CreatePlease to create content