Tenant Dial plan for Malaysia


$nr1 = New-CsVoiceNormalizationRule -Parent Global -Name "MY-Emergency" -Description "MY-Emergency" -Pattern "^(1060|999)$" -Translation "+60$1" -InMemory
$nr2 = New-CsVoiceNormalizationRule -Parent Global -Name "MY-Service" -Description "MY-Service" -Pattern "^(100|15454)$" -Translation "+60$1" -InMemory
$nr3 = New-CsVoiceNormalizationRule -Parent Global -Name "MY-tollfree" -Description "MY-tollfree" -Pattern "^(1[378]00\d{6})$" -Translation "+60$1" -InMemory
$nr4 = New-CsVoiceNormalizationRule -Parent Global -Name "MY-05" -Description "MY-05" -Pattern "^((605|05|5)?(\d{7}))$" -Translation "+605$2" -InMemory
New-CsTenantDialPlan -Identity "MY-National" -NormalizationRules @{Add=$nr1,$nr2,$nr3}
New-CsTenantDialPlan -Identity "MY-05" -NormalizationRules @{Add=$nr1,$nr2,$nr3,$nr4}