tag:blogger.com,1999:blog-2156539095375223979.post1297624872645840330..comments2024-03-20T03:35:01.157-04:00Comments on Ken's Unified Communications Blog: Internal Extension Dialing in LyncKen Laskohttp://www.blogger.com/profile/14298995806059683301noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2156539095375223979.post-40269860988036494832020-12-18T04:07:37.834-05:002020-12-18T04:07:37.834-05:00when happens when the external prefix is set to 9,...when happens when the external prefix is set to 9, and some one dials 911. <br /><br />how this will normalize. 911 or +11<br /><br />Pattern : ^011?([2-9]\d{6,14})$<br />Translation : +$1<br /><br />Pattern : 1?([2-9]\d{9})$<br />Translation : +1$1<br /><br />Pattern : ^([2-9]11)$<br />Translation : +$1<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2156539095375223979.post-72840140170282345922012-04-22T09:04:06.563-04:002012-04-22T09:04:06.563-04:00http://www.lyncoptimizer.com/http://www.lyncoptimizer.com/Brazil Nutnoreply@blogger.comtag:blogger.com,1999:blog-2156539095375223979.post-82907318007009593722012-04-11T13:45:05.280-04:002012-04-11T13:45:05.280-04:00We have a much simpler rule for internal extension...We have a much simpler rule for internal extension dialing. <br />Fortuently our Lync deployment is enhancing our PBX so all Lync needs to do is forward the calls in a E.164 format or a 4 digit extension and then the PBX handels the rest.<br /><br />Under our Global Dial Plan i have a Normalization Rule called "4 digits - call PBX ext"<br />Pattern to match: ^(\d{4})$<br />Translation Rule: $1<br />Ineternal Extension is enabled.<br /><br />Under Route i have a Voice Route called "4 digit extensions to the PBX"<br />Match this Pattern: ^(\d{4})$<br /><br />I then have the apporpiate Associated gateways and PSTN Usages setup.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2156539095375223979.post-46199497485442407142011-07-29T17:46:20.973-04:002011-07-29T17:46:20.973-04:00For the life of me, I could not get this to work n...For the life of me, I could not get this to work no matter what I did or how long I waited. But, I found that with some clever RegEx I can achieve the same effect. Basically, in my dialing plan I have several rules with and without the preceding "9" as a requirement. If you dial 9, then seven digits, it will dial local with the area code and "+1" automatically prepended. If you dial "91" then it expects ten more digits. The way you keep the local plan from dialing is simply to use the "not" character in a custom regex. So it looks like this: ^(9[^1]\d(6))$<br /><br />That means, if there is a 9, then any number except 1, and it is exactly seven digits long (six digits plus the not-1 digit), translate this rule and dial the number.<br /><br />Easy!Parrotlover77http://www.avianwaves.comnoreply@blogger.com