forked from directorcia/Office365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea0920
commit f602361
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ More scripts available by joining http://www.ciaopspatron.com | |
## Variables | ||
## Change these prior to running script | ||
$scidentity = "[email protected]" ## User to be enabled full email address | ||
$scphone = "+61XXXXXXXXX" ## User phone number | ||
$scfqdn = "sbcXXX.teams.switchconnect.com.au" ## Full Switch connect provided domain | ||
|
||
Clear-Host | ||
|
@@ -44,15 +45,15 @@ New-CsOnlineVoiceRoute -Identity "AU-National" -NumberPattern "^\+61\d{9}$" -Onl | |
|
||
Read-Host -Prompt "Press [Enter] to continue" | ||
|
||
New-CsOnlineVoiceRoute -Identity "AU-International" -NumberPattern "^\+(?!(61190))([1-9]\d{9,})$" -OnlinePstnGatewayList $scfqdn -Priority 1 -OnlinePstnUsages “Australia” | ||
New-CsOnlineVoiceRoute -Identity "AU-International" -NumberPattern "^\+(?!(61190))([1-9]\d{9,})$" -OnlinePstnGatewayList $scfqdn -Priority 1 -OnlinePstnUsages "Australia" | ||
|
||
Read-Host -Prompt "Press [Enter] to continue" | ||
|
||
New-CsOnlineVoiceRoutingPolicy "Australia" -OnlinePstnUsages “Australia” | ||
New-CsOnlineVoiceRoutingPolicy "Australia" -OnlinePstnUsages "Australia" | ||
|
||
Read-Host -Prompt "Press [Enter] to continue" | ||
|
||
Set-CsUser -Identity $scidentity -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:+61288980703 | ||
Set-CsUser -Identity $scidentity -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:$scphone | ||
|
||
Read-Host -Prompt "Press [Enter] to continue" | ||
|
||
|