Tenant Dial plan for Australia


$nr1 = New-CsVoiceNormalizationRule -Parent Global -Name AU-Emergency -Description 'AU-Emergency' -Pattern '^(000|112|911|61000)$' -Translation '+61000' -InMemory
$nr2 = New-CsVoiceNormalizationRule -Parent Global -Name AU-National -Description 'AU-National'-Pattern '(61|0)?(\d{9})$' -Translation '+61$2' -InMemory
$nr3 = New-CsVoiceNormalizationRule -Parent Global -Name AU-Service -Description 'AU-Service'-Pattern '^((1[38](00)?((\d{6})|(\d{4})))|122[12345]|12[45])$' -Translation '+1$1'-InMemory
$nr4 = New-CsVoiceNormalizationRule -Parent Global -Name AU-02 -Description 'AU-02' -Pattern '^(612|02|2)?(\d{8})$' -Translation '+612$2' -InMemory
$nr5 = New-CsVoiceNormalizationRule -Parent Global -Name AU-03 -Description 'AU-03' -Pattern '^(613|03|3)?(\d{8})$' -Translation '+613$2' -InMemory
$nr6 = New-CsVoiceNormalizationRule -Parent Global -Name AU-07 -Description 'AU-07' -Pattern '^(617|07|7)?(\d{8})$' -Translation '+617$2' -InMemory
$nr7 = New-CsVoiceNormalizationRule -Parent Global -Name AU-08 -Description 'AU-08' -Pattern '^(618|08|8)?(\d{8})$' -Translation '+618$2' -InMemory

New-CsTenantDialPlan  -Identity AU-National -NormalizationRules @{Add=$nr1,$nr2,$nr3}
New-CsTenantDialPlan  -Identity AU-02 -NormalizationRules @{Add=$nr1,$nr2,$nr3,$nr4}
New-CsTenantDialPlan  -Identity AU-03 -NormalizationRules @{Add=$nr1,$nr2,$nr3,$nr5}
New-CsTenantDialPlan  -Identity AU-07 -NormalizationRules @{Add=$nr1,$nr2,$nr3,$nr6}
New-CsTenantDialPlan  -Identity AU-08 -NormalizationRules @{Add=$nr1,$nr2,$nr3,$nr7}