File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,35 +28,35 @@ You can use this cmdlet to create a new number manipulation rule. The rule can b
28
28
29
29
### Example 1
30
30
``` powershell
31
- PS C:\> New-CsTeamsTranslationRule -Identity AddPlus1 -Pattern ^(\d{10})$ -Translation +$1
31
+ PS C:\> New-CsTeamsTranslationRule -Identity ' AddPlus1' -Pattern ' ^(\d{10})$' -Translation ' +$1'
32
32
```
33
33
34
34
This example creates a rule that adds +1 to any ten digits number. For example, 2065555555 will be translated to +1206555555
35
35
36
36
### Example 2
37
37
``` powershell
38
- PS C:\> New-CsTeamsTranslationRule -Identity StripPlus1 -Pattern ^+1(\d{10})$ -Translation $1
38
+ PS C:\> New-CsTeamsTranslationRule -Identity ' StripPlus1' -Pattern ' ^+1(\d{10})$' -Translation '$1'
39
39
```
40
40
41
41
This example creates a rule that strips +1 from any E.164 eleven digits number. For example, +12065555555 will be translated to 206555555
42
42
43
43
### Example 3
44
44
``` powershell
45
- PS C:\> New-CsTeamsTranslationRule -Identity AddE164SeattleAreaCode -Pattern ^(\d{4})$ -Translation +120655$1
45
+ PS C:\> New-CsTeamsTranslationRule -Identity ' AddE164SeattleAreaCode' -Pattern ' ^(\d{4})$' -Translation ' +120655$1'
46
46
```
47
47
48
48
This example creates a rule that adds +1206555 to any four digits number (converts it to E.164number). For example, 5555 will be translated to +1206555555
49
49
50
50
### Example 4
51
51
``` powershell
52
- PS C:\> New-CsTeamsTranslationRule -Identity AddSeattleAreaCode -Pattern ^(\d{4})$ -Translation 425555$1
52
+ PS C:\> New-CsTeamsTranslationRule -Identity ' AddSeattleAreaCode' -Pattern ' ^(\d{4})$' -Translation ' 425555$1'
53
53
```
54
54
55
55
This example creates a rule that adds 425555 to any four digits number (converts to non-E.164 ten digits number). For example, 5555 will be translated to 4255555555
56
56
57
57
### Example 5
58
58
``` powershell
59
- PS C:\> New-CsTeamsTranslationRule -Identity StripE164SeattleAreaCode -Pattern ^+1206555(\d{4})$ -Translation $1
59
+ PS C:\> New-CsTeamsTranslationRule -Identity ' StripE164SeattleAreaCode' -Pattern ' ^+1206555(\d{4})$' -Translation '$1'
60
60
```
61
61
62
62
This example creates a rule that strips +1206555 from any E.164 ten digits number. For example, +12065555555 will be translated to 5555
You can’t perform that action at this time.
0 commit comments