#Lync DID forward external? With no SefaUtil and no dummy user accounts? Why Yes! #UCOMS
Posted by Chad McGreanor on April 10, 2013
Why yes we can do that. I know this is not ground breaking information for the folks that work on traditional PBX’s. It is common for a customer to request that a specific DID be routed off site to another phone number. We could use SefaUtil to do this, but that would require setting up a dedicated server (or your front-end (unsupported)) and then dealing with the SefaUtil not working every now and then. So how do we do this?
A customer requires that DID 5252 be routed to a hotel in the UK (just an example).
Using Lync Inbound normalization (Pool Dial Plan associated with the gateway or SIP trunk) we would complete the following:
Now we need to configure the Analog device, yes I said analog device. When the parameter AnalogFax is set to $true Lync will place that call back out to the PSTN since Lync does not support T.38. Below are the details. If you do not set AnalogFax to $true this will not work.
New-CsAnalogDevice -LineUri “tel:+442072975555″ -RegistrarPool LS2010.mcgreanor.net -DisplayName “FWD 5252″ -Gateway 10.10.10.19 -OU “OU=Analog Devices,OU=Elk Grove Lab,DC=mcgreanor,DC=net” -AnalogFax $true
The way this works is that when a call comes in to Lync with 4 digits 5252 from the PSTN inbound translation will normalize that number to +442072975555 and that will end up matching the Analog Device that was created above. You can use any gateway that is defined in the topology. You are not quite done yet. We need to assign a Voice Policy and Dial Plan so that we can grant the analog device contact permission and correct dial plan format when placing the call. We treat this just like a user.
Get-CsAnalogDevice “FWD 5252″ | Grant-CsDialPlan -PolicyName “tag:US-ElkGrove”
Get-CsAnalogDevice “FWD 5252″ | Grant-CsVoicePolicy -PolicyName “US-ElkGrove-International”
The last thing you need to do is add the normalization rule created above to your user dial plan so that when a user dials the 4 digit extension internal the 5252 is normalized the same way and we match the analog device.
The Analog Device now has the ability to understand how to dial an international number as well as the permission related to the Voice Policy.
Here is what the Analog Device looks like completely configured:
I have configured this many times and can confirm that it works. Maybe the command should be changed to New-CsForwardDevice or maybe we can just have that command added that will accomplish this.