Presentation is loading. Please wait.

Presentation is loading. Please wait.

Defines the format for telephone numbers in SIP Internationally recognized telephone number format Tel URI Global number in E.164 format Extension.

Similar presentations


Presentation on theme: "Defines the format for telephone numbers in SIP Internationally recognized telephone number format Tel URI Global number in E.164 format Extension."— Presentation transcript:

1

2

3

4

5

6 Defines the format for telephone numbers in SIP Internationally recognized telephone number format Tel URI Global number in E.164 format Extension (optional) Country Code Area Code Local number

7 Get to know regex basics: http://hanytaha.wordpress.com/ 2012/01/15/regular-expression- regex-and-lync-2010/ Test your regex: http://www.regextester.com/ ^ start of pattern $ end of pattern \dsingle digit \d{3}3 digits \d{1,5}1 to 5 digits \d+1 or more digits \d*0 or more digits \Dnon-digit [135]1, 3 or 5 [1-5]1 to 5135 ?not required \+plus sign |or (123)Store 123 $1Return 123

8

9 GoodBad 1 (604) 555-1111(604) 555-1111 +1 (604) 555-1111 x234234 +44.20.7123.4567+44.020.7123.4567

10 Not necessary to change every phone number in AD Use the Company_Phone_Number_Nor malization_Rules.txt Found in \\LyncFileShare\x- WebServices-x\ABFiles Lync Address book process parses AD-based numbers using this file Check by using ABServer.exe -TestPhoneNorm “ ” Examples: ([2-9]\d{9})\D+(\d+) +1$1;ext=$2 ([2-9]\d{9}) +1$1

11 +44.020.7123.4567

12

13

14 UK-London-Local IT-Rome-International FR-Paris-Mobile US-NewYork-National US-WA-Seattle-TollFree ES-HeadOffice-AllCalls

15

16

17

18 Every call can be sent to an all encompassing route (think *.*) Easier to manage and troubleshoot, especially in large deployments CON Can’t leverage several Lync features No least cost routing Can’t limit calling or call forwarding for users

19 Very granular routing/call control possibilities Least-cost routing CON It’s….ummm…it’s complicated Many routes/PSTN usages Can be difficult to troubleshoot

20

21

22

23 Normalize to E.164, using the main office number for the location as the base: +12125551234;ext=2345 Strip back down to 2345 as the call leaves Lync Most normalization rules are the same countrywide, so consider that in your naming convention UK-London-Local UK-National UK-International Doing so will mean not normalizing to E.164 Use the External Access Prefix option instead

24

25 6+16042226045045

26 9 +16045551234 6045551234

27 Rule NamePatternTransla tion NA-National^1?([2-9]\d\d[2-9]\d{6})(\D+\d+)?$+1$1 NA-Service^([2-9]11)$+$1 NA-International^(?:011)?([2-9]\d{6,14})(\D+\d+)?$+$1

28 Rule NamePatternTranslation UK-London-Local^([378]\d{7})$+4420$1 UK-TollFree^0((80(0\d{6,7}|8\d{7}|01111)|500\d{6}))$+44$1 UK-Premium^0((9[018]\d|87[123]|70\d)\d{7})$+44$1 UK-Mobile^0(7([1-57-9]\d{8}|624\d{6}))$+44$1 UK-National^0((1[1-9]\d{7,8}|2[03489]\d{8}|3[0347]\d{8}|5[56]\d{8}|8((4[2- 5]|70)\d{7}|45464\d)))(\D+\d+)?$ +44$1 UK-Service^(1(47\d|70\d|800\d|1[68]\d{3}|\d\d)|999|112|[\*\#][\*\#\d]*\#) $ +$1 UK-International^(?:00)?((1[2-9]\d\d[2-9]\d{6})|([2-9]\d{6,14}))(\D+\d+)?$+$1

29

30

31 Use site-level policies by default Automatically assigned to all users homed on Lync servers within a site Assign the most typical call classes to capture the most users (ie. Local and National PSTN Usages) Example: Assign a site- level National voice policy for users who don’t require international dialing Use user-level policies for exceptions Manually assigned via Lync Control Panel or Powershell Assign additional or remove call classes for smaller groups of users (ie. International PSTN Usage) Example: Assign a user-level International policy to executives and others that require international dialing

32

33

34 X

35

36

37

38 Ordering and selection of PSTN Usages is critical

39

40

41

42

43 Rule NamePatternTranslation UK-London-Local^\+4420([378]\d{7})(;ext=\d+)?$$1 UK-London-Service^\+(1(47\d|70\d|800\d|1[68]\d{3}|\d\d)|999|[\*\#][\*\#\d]*\#)$$1 UK-London-AllCalls^\+44(\d+)(;ext=\d+)?$0$1 UK-London-International^\+((1[2-9]\d\d[2-9]\d{6})|([2-9]\d{6,14}))(;ext=\d+)?$00$1 Rule NamePatternTranslation NA-ON-Toronto-Local ^\+1((905(20[^7]|21[02469]|22[1234]|23[^35]|24[178]|25[^1239]|26[45678]|28[^09]|29[^567]|30[^489]|31[36]|33[04789]|36[^0578]|39[1589]|40[^147]|41[23578]|4 2[^59]|46[^8]|47[^368]|48[^15]|49[^368]|51[034]|53[02349]|55[^1567]|56[^0123]|58[^19]|59[^246]|62[^0378]|64[029]|65[234]|66[039]|67[^459]|68[36]|69[^027]| 6[01]\d|70[23679]|71[237]|72[4679]|73[1789]|74[04789]|75[^3]|76[^589]|77[013]|78[^68]|79[^7]|80[13458]|81[^018]|83[^0456]|85[^3]|86[^589]|87[^01]|88[^5]|89 [01367]|8[24]\d|90[^256]|91[^124]|93[69]|94[^125]|95[16]|96[589]|99[^1234]|326|350|370|542|636|927|970|(27|45|50)\d))) $1 NA-National^\+1([2-9]\d\d[2-9]\d{6})(;ext=\d+)?$1$1 NA-Service^\+([2-9]11)$$1 NA-International^\+([2-9]\d{6,14})(;ext=\d+)?$011$1

44

45

46 Normalize dialed extensions to E.164 2345  +14165551111;ext=2345 ^(2\d{3})$  14165551111;ext=$1 Assign a route to the appropriate PBX ^\+14165551111  PBX_Gateway Add a trunk translation rule to strip back down to extension +14165551111;ext=2345  2345 ^\+14165551111;ext=(2\d{3})$  $1 or ^\+\d+\D+(\d+)$  $1

47 Easier to deal with routing and trunk translation when everything follows same standard Extremely important when migrating away from PBX to Lync Scenario: Normalization/routing rules created specifically for PBX extensions 2xxx normalized to 2xxx (not E.164) Lync migrated users configured with E.164 Tel URIs tel:+12125551111;ext=2xxx Original extension scheme maintained How to dial Lync user by extension? Normalization becomes a nightmare Need to create user-specific normalization rules for every migrated user

48 Use a normalization rule to map the main number to an extension (E.164 format, of course) When creating auto- attendant or response group extensions, make sure to follow E.164 standards

49

50

51

52

53

54 Applies to all location-based routing enabled users at the site Don’t enable location- based routing on limited-access voice policies Check out Doug Lawty’s deep-dive session on Location- based Routing (VOICE303)

55

56 Original Normalization RuleNew Normalization Rule ^1?([2-9]\d\d[2-9]\d{6})(\D+\d+)?$  +1$2^(\*67)?1?([2-9]\d\d[2-9]\d{6})(\D+\d+)?$  $1+1$2

57 PatternTranslation ^(\*67)?\+1([2-9]\d\d[2-9]\d{6})(;ext=\d+)?$1$2

58

59 Dialing rules for 35 countries Location- based routing Custom localized dialing rules for all of North America Least- cost/failove r routing ExtensionsPremium number blocking Call Park Simple or complex dial rules Use your own naming convention

60

61

62

63

64

65

66

67

68

69


Download ppt "Defines the format for telephone numbers in SIP Internationally recognized telephone number format Tel URI Global number in E.164 format Extension."

Similar presentations


Ads by Google