Skip to content

Instantly share code, notes, and snippets.

@TimLeitch
Created July 12, 2022 21:03
Show Gist options
  • Select an option

  • Save TimLeitch/8662fb9d0e4f0b6268df00e08e2f3820 to your computer and use it in GitHub Desktop.

Select an option

Save TimLeitch/8662fb9d0e4f0b6268df00e08e2f3820 to your computer and use it in GitHub Desktop.
Dialpad QoS
try {
new-NetQosPolicy -Name "Dialpad RTP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition UDP -IPSrcPortStartMatchCondition 16384 -IPSrcPortEndMatchCondition 32768 -DSCPAction 46 -NetworkProfile All
}
catch {
{1: New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 16384 failed" <#Do this if a terminating exception happens#>}
}
try {
new-NetQosPolicy -Name "Dialpad SIP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition TCP -IPSrcPortStartMatchCondition 443 -IPSrcPortEndMatchCondition 443 -DSCPAction 26 -NetworkProfile All
}
catch {
{1:New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 443 failed" <#Do this if a terminating exception happens#>}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment