Dial peer phone number range problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2011 10:17 AM - edited 03-16-2019 05:23 AM
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?
- Labels:
-
Other IP Telephony

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2011 11:25 AM
No, there is no way.
Only patterns are supported, not ranges.
