cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
525
Views
15
Helpful
4
Replies

Configuring destination-patern in IP integrated access router

mehdi.amini
Level 1
Level 1

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]

4 Replies 4

Roman Rodichev
Level 7
Level 7

you don't need a dash

Jaime Valencia
Cisco Employee
Cisco Employee

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

HTH

java

if this helps, please rate

Thanks.  so by removing the dash the numebrs would become 403-354-2308 and 403-354-2309

sumimanc
Cisco Employee
Cisco Employee

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