07-10-2009 02:03 AM - edited 03-15-2019 06:54 PM
Dear all,
There are two dial-peer with 69[0-9] and 69T. Is there any priority which dial-peer will be selected first ? The following dial-peer is in Shengzhen voice router.
When user dial 691, what dial-peer will be selected ?
----------------------------
dial-peer voice 102 voip
description To Hong Kong Local Extension
destination-pattern 69[0-9]
session target ipv4:10.1.1.2
dial-peer voice 3 pots
trunkgroup PABX
description To Shangzhen Outgoing Call
destination-pattern 69T
forward-digits all
-------------------------------
Thanks
Man Leung
07-10-2009 02:15 AM
Hi Man,
You have got two dial peers with same preference (0 - default preference).
Most specific dial peer should match -
Dialed Number - 691
Dial peer 102 - 69[0-9] - Possible matches - 690 to 699
Dial Peer 3 - 69T - Possible matches - 690 to god knows, because T can accept any number of digits.
Thus in my opinion it should match Dial Peer 102
-> Sushil
07-10-2009 02:17 AM
Dial-peer 69[0-9] will be taken as it is best match in your example. Always best match dial-peer is taken into account.
On your exmaple first one cover 690 to 699 patterns where another one with T covers unlimited number of patterns.
rate if this help
07-10-2009 03:29 AM
Thanks for your information. As I previously config to the following, it is not working when customer dial 691. So, I will reconfig the dial-peer 102 and try whether it is working.
dial-peer voice 102 voip
destination-pattern 6..
Thanks
Man Leung
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