Last modified by Dimitri Rupp on 2026/06/11 11:20

From version 3.1
edited by Dimitri Rupp
on 2026/06/11 11:12
Change comment: There is no comment for this version
To version 9.1
edited by Dimitri Rupp
on 2026/06/11 11:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Tags
... ... @@ -1,0 +1,1 @@
1 +telefonie|anleitung
Content
... ... @@ -62,7 +62,7 @@
62 62  == Nummer hinzufügen ==
63 63  
64 64  {{success}}
65 -Powershellscript um Benutzer mit Rufnummer und Routing Policy zu versehen: [[Rufnummeranlegen.ps1>>url:http://10.13.18.141:8080/bin/download/%20-%20Wiki%20Neu%20-/FAQ%20%20Troubleshooting/Telefonie/Telefonnummer%20anpassen%20%20vergeben/WebHome/Rufnummeranlegen.ps1?rev=1.1]] **(Vor dem Ausführen connect-microsoftteams)**
65 +Powershellscript um Benutzer mit Rufnummer und Routing Policy zu versehen: [[Rufnummeranlegen.ps1>>attach:IT-Wiki.03-Infrastruktur.Telefonie.Telefonnummer-anpassen-vergeben.WebHome@Rufnummeranlegen.ps1]] **(Vor dem Ausführen connect-microsoftteams)**
66 66  {{/success}}
67 67  
68 68  Um eine neue Nummer inkl. Routing Policy zu vergeben werden folgende Befehle benötigt (Vorraussetzung für Enterprise Voice ist eine Telefonsystem Lizenz):
1635403120058-903.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.drupp
Size
... ... @@ -1,0 +1,1 @@
1 +9.9 KB
Content
1635404289320-760.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.drupp
Size
... ... @@ -1,0 +1,1 @@
1 +32.0 KB
Content
1635404391079-825.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.drupp
Size
... ... @@ -1,0 +1,1 @@
1 +5.0 KB
Content
Rufnummeranlegen.ps1
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.drupp
Size
... ... @@ -1,0 +1,1 @@
1 +2.9 KB
Content
... ... @@ -1,0 +1,86 @@
1 +Add-Type -AssemblyName System.Windows.Forms
2 +Add-Type -AssemblyName System.Drawing
3 +
4 +$form = New-Object System.Windows.Forms.Form
5 +$form.Text = 'Teams Nummer anlegen'
6 +$form.Size = New-Object System.Drawing.Size(400,250)
7 +$form.StartPosition = 'CenterScreen'
8 +
9 +$okButton = New-Object System.Windows.Forms.Button
10 +$okButton.Location = New-Object System.Drawing.Point(75,180)
11 +$okButton.Size = New-Object System.Drawing.Size(75,23)
12 +$okButton.Text = 'OK'
13 +$okButton.DialogResult = [System.Windows.Forms.DialogResult]::OK
14 +$form.AcceptButton = $okButton
15 +$form.Controls.Add($okButton)
16 +
17 +$cancelButton = New-Object System.Windows.Forms.Button
18 +$cancelButton.Location = New-Object System.Drawing.Point(150,180)
19 +$cancelButton.Size = New-Object System.Drawing.Size(75,23)
20 +$cancelButton.Text = 'Abbrechen'
21 +$cancelButton.DialogResult = [System.Windows.Forms.DialogResult]::Cancel
22 +$form.CancelButton = $cancelButton
23 +$form.Controls.Add($cancelButton)
24 +
25 +$label = New-Object System.Windows.Forms.Label
26 +$label.Location = New-Object System.Drawing.Point(10,20)
27 +$label.Size = New-Object System.Drawing.Size(280,20)
28 +$label.Text = 'Bitte den Benutzernamen eingeben:'
29 +$form.Controls.Add($label)
30 +
31 +$label = New-Object System.Windows.Forms.Label
32 +$label.Location = New-Object System.Drawing.Point(10,70)
33 +$label.Size = New-Object System.Drawing.Size(280,20)
34 +$label.Text = 'Bitte Telefonnumer eingeben (inkl. +43):'
35 +$form.Controls.Add($label)
36 +
37 +$textBox = New-Object System.Windows.Forms.TextBox
38 +$textBox.Location = New-Object System.Drawing.Point(10,40)
39 +$textBox.Size = New-Object System.Drawing.Size(260,20)
40 +$form.Controls.Add($textBox)
41 +
42 +$textBox1 = New-Object System.Windows.Forms.TextBox
43 +$textBox1.Location = New-Object System.Drawing.Point(10,100)
44 +$textBox1.Size = New-Object System.Drawing.Size(260,20)
45 +$form.Controls.Add($textBox1)
46 +
47 +$form.Topmost = $true
48 +
49 +$form.Add_Shown({$textBox.Select()})
50 +$result = $form.ShowDialog()
51 +
52 +if ($result -eq [System.Windows.Forms.DialogResult]::OK)
53 +{
54 + $x = $textBox.Text
55 + $x
56 +
57 +$form.Add_Shown({$textBox1.Select()})
58 +
59 + $y = $textBox1.Text
60 + $y
61 +}
62 +
63 +#Eingegebener Person Variable x die Rufnummer Variable Y zuweisen
64 +Set-CsPhoneNumberAssignment -Identity "$x" -PhoneNumber "$y" -PhoneNumberType DirectRouting
65 +#Zuweisung der Routing Policy MRS
66 +Grant-CSOnlineVoiceRoutingPolicy -Identity "$x" -PolicyName MRS
67 +
68 +
69 +#Sleep Timer, damit später die richtige Route angezeigt wird
70 +Function Sleep-Progress($seconds) {
71 + $s = 0;
72 + Do {
73 + $p = [math]::Round(100 - (($seconds - $s) / $seconds * 100));
74 + Write-Progress -Activity "Waiting..." -Status "$p% Complete:" -SecondsRemaining ($seconds - $s) -PercentComplete $p;
75 + [System.Threading.Thread]::Sleep(1000)
76 + $s++;
77 + }
78 + While($s -lt $seconds);
79 +
80 +}
81 +
82 +Sleep-Progress 30
83 +
84 +#Ausgabe des Users
85 +
86 +Get-CsOnlineUser -filter "LineURI -eq 'tel:$y'" | select displayName, enter*, LineURI, voi*, userprinc*, onlinevoice*, enab*
TeamsnummerPowershell.JPG
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.drupp
Size
... ... @@ -1,0 +1,1 @@
1 +70.4 KB
Content