12-02-2012 03:46 PM - edited 03-16-2019 02:30 PM
Hi every body.
I got a question
" incoming called -number .* " My book says . * means the one or more instances of preceding digit.
Suppose we have a dial peer as shown below:
dial peer 60001 pot
incoming called-number .*
Will ani 12345 match the above dial peer?
will ani 1111 match the above dial peer?
thanks and have a great day.
Solved! Go to Solution.
12-02-2012 07:01 PM
Hi Sarah,
Goodevening. Hope you had a great weekend :-)
AFAIK, the "incoming called-number" can be used to match all incoming calls, no matter what the called number is using all the three strings below:
a) . (single dot)
b) .* (single dot followed by asterisk)
c) .T (single dot followed by T)
Please refer to the command reference guide for this command which explains these strings:
http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_i1.html#wp1112139
For the dialpeer you had, it would match dnis (called number), not ani. If both those examples were dnis numbers, it would match both.
HTH.
Regards,
Harmit.
12-02-2012 07:01 PM
Hi Sarah,
Goodevening. Hope you had a great weekend :-)
AFAIK, the "incoming called-number" can be used to match all incoming calls, no matter what the called number is using all the three strings below:
a) . (single dot)
b) .* (single dot followed by asterisk)
c) .T (single dot followed by T)
Please refer to the command reference guide for this command which explains these strings:
http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_i1.html#wp1112139
For the dialpeer you had, it would match dnis (called number), not ani. If both those examples were dnis numbers, it would match both.
HTH.
Regards,
Harmit.
12-04-2012 03:22 AM
Thanks Harmit.
12-04-2012 06:56 AM
In addition to great post from Harmit (+5), I always use the single "." variant. Also, it is a good practice to have "incoming called-number ." on one POTS for each port or trunk group and one VOIP dial peer to control things like codec and other parameters.
HTH,
Chris
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