Sunday, April 3, 2011

Common Area Phone configuration with Lync 2010

Because I have Aastra 6721ip a.k.a. Common Area Phone, I want to test the configuration and functionality of this unit as well. The procedure is described here: http://technet.microsoft.com/en-us/library/gg425854.aspx

First, I must prepare my DHCP server for this task.

Configuring DHCP Search Options







Configuring DHCP Options to Enable Sign-in for IP Phones
 
Now, this is the way I prefer to do it. Technet describes it a little different and so, it is your decision how to proceed further…

On my Domain, controller (also hosting DHCP server) I will copy “DHCPUtil.exe” AND DHCPConfigScript.bat located in “C:\Program Files\Common Files\Microsoft Lync Server 2010” on my Lync Fe server, to C:\WINDOWS\System32. Since I extended the Schema and prepaider the forest and domain from my Domain Controller, vcredist was already installed.


The utility MUST be run from Command prompt with elevated privileges.


My command will look like this: DHCPUtil.exe -SipServer fe.drago.local -WebServer fe.drago.local –RunConfigScript where fe.drago.local is the FQDN of my Lync server where the Contact will be homed.



…and verify the result in my DHCP server console (if the console was open while you ran the command, you must Refresh the view to see it)



Using NTP to Set the Correct Time and Date for Devices


The assumption is that you have already configured NTP server for your domain. If not, follow the directions here: http://technet.microsoft.com/en-us/library/gg398829.aspx

Because this is new domain environment, I just remembered that I have never set a SRV record for my time services.






Configuring Common Area Phones

Now I can proceed to create Contact Object. The content is self-explanatory.

New-CsCommonAreaPhone -LineUri "tel:+14785559999" -RegistrarPool "fe.drago.local" -OU "OU=Telecommunications,DC=drago,DC=local" -Description "My Test Common Area Phone" -DisplayName "My Test Common Area Phone" -DisplayNumber "1 (478) 555-9999"


…and set PIN with “Get-CsCommonAreaPhone -Filter {LineUri -eq "tel:+14785559999"} | Set-CsClientPIN -PIN 0800”


Ah, the default PIN length is 5 digits and I used 4 only.


Looks good now. At this point, I could rush, connect the phone and see what happens, but how about checking first if our DHCP options are set correctly.

In Command Prompt on my Lync server, I navigated to “C:\Program Files\Common Files\Microsoft Lync Server 2010” and then ran “DHCPUtil –EmulateClient”. The result is Success.


Let’s now connect the phone and see what happens. I will use “14785559999” as Phone Number and “23680” as PIN.


It works!


Again, this is just a sample setup for the purpose of Proof Of Concept. I have not created  specific Client Policy, Voice Policy, Conferencing Policy etc., something you definitely want to do in Production environment.

12 comments:

Jamie said...

Lync IP Phones also support using DHCP option 42 (NTP Servers) as an alternative to the SRV record.

Nice article Drago!

-Jamie Schwinn

Drago said...

Nice to see you visited, Jamie.

Thanks for the compliment. Coming from real Lync Pro – it means a lot for me.

SnoTucker said...

Very helpful article.
Thank you.

P.S. Would love to see one on the audiocodes PSTN incomming call routing.

Drago said...

I am planning to publish a configuration file, where minor changes must be made to reflect the user’s environment, IP addressing and numbering scheme and then can be uploaded to the device. Come check in few days

Peter Kernke said...

Excellent Article.
I am also wanting to setup paging after calling ie. We use this in staff rooms. Call and rather than make someone getup to then call someone else to the phone you press 1 and connect through to the room on speaker phone and can call the particular person to the phone. We use this for information during fire and lock down drills also. We are using the Polycom CX600 handsets.
Thanks Peter Kernke

Drago said...

On my knowledge, your only option as of this moment is Snom phones with OCS firmware. This phone has a flag “Auto Answer” i.e. goes to speakerphone after one ring – exactly as a paging system would do. Try Snom300 – cheap, reliable, works.

Anonymous said...

Hey Drago...

Very helpful article.. I have one question, Will it work if I am using phone from home via edge server(via outside network). How DHCP will work in this situation.. Thanks for your help.

-Real

Drago said...

Common Area Phones are not designed for external connectivity. For this purpose, we use Aastra 6725ip and Polycom’s CX600 or CX700. And, of course, a broad range of devices listed here: http://technet.microsoft.com/en-us/lync/gg278164

Mohammed Hamada said...

Is there any website on how to do the DHCP options on a Linux/FreeBSD DHCP servers?

Drago said...

here is one: http://tohamey.blogspot.com/2011/10/configuring-linux-dhcp-to-work-with.html

Drago

Mohammed Hamada said...

Thanks a lot Drago, just another question.

We have DHCP server running on our subnet where Lync server is deployed.

I'd like to know if we have deployed another DHCP for another subnet where we'll locate our SNOM phones. will it be okay if they DHCP was in another subnet other than the Lync server one?

Thanks

Yasin said...

Very helpful information. Very helpful, great share.
System Phone