Skip to content

Commit

Permalink
Phone variable
Browse files Browse the repository at this point in the history
  • Loading branch information
directorcia committed Oct 28, 2019
1 parent 2ea0920 commit f602361
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sc-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit f602361

Please sign in to comment.