PS C:\Windows\system32> New-CsOnlinePSTNGateway -Fqdn essbc2.sip4teams.com -SipSignalingPort 5082 -Enabled $true
Get-CsOnlineSession : The remote server returned an error: (403) Forbidden.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\2.5.1\net472\SfBORemotePowershellModule.psm1:273 char:22
- $remoteSession = & (Get-CsOnlineSessionCommand)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Get-CsOnlineSession], WebException
- FullyQualifiedErrorId : WebException,Microsoft.Teams.ConfigApi.Cmdlets.GetCsOnlineSession
Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\2.5.1\net472\SfBORemotePowershellModule.psm1:113 char:38
- -Session $session `
- ~~~~~~~~
- CategoryInfo : InvalidData: (:) [Invoke-Command], ParentContainsErrorRecordException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand