08-26-2020 08:10 AM
I'm having a little trouble wrapping my head around dial peer regex matching, and hoping somebody here is up for a challenge.
I am wanting a single dial peer for all of our inbound calls from our provider.
I currently am matching:
incoming called-number 620555[1-6]...$
However, that's matching too many numbers. What I need is a regex that will match all of these:
6205551200
6205554[012456789]..$
620555[5-6]...$
How can I combine all of these into a single regex? Or am I doomed to multiple dial-peers?
08-26-2020 09:03 AM
Best you could do is 620555[1456]...$
No way for a single regex to match only what you're matching with those 3 individual regex.
08-26-2020 09:09 AM - edited 08-26-2020 09:10 AM
620555 1200
620555 [456]...
The first one u make an exact match.
08-26-2020 11:43 AM
What type of dial peer is this for? If it’s a voip dial peer you have a few more options. Have a look at this excellent document. https://www.cisco.com/c/en/us/support/docs/voice/ip-telephony-voice-over-ip-voip/211306-In-Depth-Explanation-of-Cisco-IOS-and-IO.html
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide