05-06-2011 09:22 AM - edited 03-16-2019 04:50 AM
I am trying to add 2 new phones to my Integrated access gateway/router and need the destination-pattern format for 2 numbers
first number is 4033542308 and 4033542309
is this a correct configuration:
destination-pattern 403354230[8-9]
05-06-2011 09:26 AM
you don't need a dash
05-06-2011 09:26 AM
Yes, that would work. If you configure it like
destination-pattern 403354230[89]
That also works, the hyphen is really used when you need to cover a contiguous range ie [1-5]
HTH
java
If this helps, please rate
www.cisco.com/go/pdihelpdesk
05-06-2011 09:31 AM
Thanks. so by removing the dash the numebrs would become 403-354-2308 and 403-354-2309
05-07-2011 01:33 AM
Hi ,
Yes your configuration is correct.
So let me tell you the difference between when you dont have the hyphen in the bracket and when you have the hyphen in the bracket
When you configure destaination-pattern 4033542308[89] (without hyphen) then what it means is 8,9 (comma) then IOS thinks as if there is a comma in between and thinks about it like 8,9 which means 8 or 9 so it will allow only the number 4033542308 or 4033542309 and not all the numbers in between
Another example would be
destaination-pattern 4033542308[19]
in this case it will allow the calls only to 40335423081 and 40335423089
but When you put a Hyphen you are specifying a range
for e.g
destination-pattern 4033542308[1-9]
it means it will take all the numbers from 40335423081 to 40335423089
another example
destination-pattern 4033542[3-6]085 range of 3 to 6 meaning (3,4,5,6)
Note : In this case it would NOT allow all the numbers from 40335423085 to 40335426085
Rather it would allow only 4 numbers 40335423085 , 40335424085, 40335425085, 40335426085
Let me know if the concept of with and without hyphen in the bracket is clear now. Let me know if you have any further questions n this.
HTH
PS: Rate if you find the information useful
Regards,
sumit
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