Tuesday, 23 September 2014

Disable Telephony in Lync 2013 Client

There may be situations where you need to disable audio/video telephony in the Lync client. This is particularly useful where you want to deploy Lync in a terminal services/session host environment, and don’t want users to be able to answer audio/video calls. The result in the Lync client is the removal of any audio/video settings or actions. Additionally inbound audio video call notifications will not be receive.


To disable telephony the following registry key needs to be added:

Reg Add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\15.0\Lync" /V "TelephonyMode" /D 5 /T REG_DWORD /F


Note: You can also add this to HKEY_CURRENT_USER

You can also do this manually in regedit. You will first need to create the keys Office -> 15.0 -> Lync, then a DWORD with the following values















Other Options

0: PC to PC Calls only (default)
1: Enterprise Voice
2: Remote Call Control
3: Enterprise Voice with PBX Integration
4: RCC but PC to PC disabled
5: IM & Presence Only


Monday, 15 September 2014

Lync Access Edge Service requires reboot before you can sign-in with newly added SIP domain

If you have recently added a SIP domain to Lync 2013 and you are pulling your hair out because you cannot sign-in externally, then here's what you need to know....

Being a Lync hoster we need to add SIP domains on a regular basis (well our provisioning engine does). In Lync 2010 a new SIP domain could be provisioned and enabled in the time it took for CMS replication to occur. As of Lync 2013 RTM this is no longer the case; now every time a SIP domain is added the Edge server Access Edge service needs to be restarted before you can login using the newly added SIP domain.



This is less than ideal when you operate a highly available hosted Lync platform! To this date I have not been able to find a solution to the problem, nor have I been able to find a reason for this change - bug/design? If anyone knows something I don't please let me know.


How do you know you have this problem?

Client Error
The Lync client will likely throw the following error message "The server is temporarily unavailable. If the problem continues, please contact your support team"



Server Error
If you look at the SIP traces you should see this something similar to the following:

Severity: warning
Text: The source domain of the remote user client's message is not in the list of internally supported domains
Result-Code: 0xc3e93d72 SIPPROXY_E_EPROUTING_MSG_CLIENT_DOMAIN_NOT_INTERNAL
SIP-Start-Line: REGISTER sip:sipdomain.comSIP/2.0 


Lync Updates Aug/Sept

The Lync Updates page has been updated to include the recent server, client and phone updates that were released between August and September.

http://www.lync.geek.nz/p/lync-updates.html

Updates have been downloaded and added to the public archive here.


Wednesday, 10 September 2014

Lync Phone Edition (LPE) Log Viewer

Lync Phone Edition Log Viewer allows you to view and filter the logs held on the Lync Phone Edition devices. These logs are actually very useful once the garbage has been removed, and reveal a lot about the sign-in process and the errors that come with it.



Device logs are actually available directly from the phone by using FTP e.g. ftp://<ip address of phone>. I believe this feature was introduced in CU7/8 so if your phone is not up to date out of the factory, you may need to do this before you can access the logs.

The log files stored on the phone are in .clg format and are not humanly readable, so the tool first converts the file to text using readlog.exe. Once in text format the data is processed removing most of the garbage that is un-useful to troubleshooting, and displays this on screen. At this point you can filter your results for informational, warning and error messages. Additionally there is an "Easy View" option which displays the information I have learnt to be useful (feel free to let me know if I have missed anything).




Here are the steps to get the phone ready and view the logs:

  • Enable Remote Log Access by selecting "Menu" -> "Remote Log Access" and confirming the warning presented. Note that you will not be able to enabled and view logs if your are currently signed in to the phone
  • Find the IP address of your phone by selecting "Menu" -> "System Information" and then look for "IP Address"
  • FTP to the phone ftp://<ip address of phone> to copy off log files, or specify the IP in LPE Log Viewer
  • Click "Select" to browse to the log file you want to read. If you have provided a "Phone IP Address" you will be connected directly to the phone
  • Select "Query" to process the logs
  • Once the logs have been imported you can use the view options to filter the results



This is version 1, I will be improving the tool as time permits so please leave feedback.

Download
Download the tool here, and happy troubleshooting!



Saturday, 6 September 2014

PowerShell Manager - Script Manager

PowerShell Script Manager is my first C# attempt to create something useful for the Microsoft community. Please let me know if you find this tool useful and I will make sure that it is improved with your feedback.

What is PowerShell Manager?

PowerShell Manager is a script manager allowing you to save and assign variables to commonly used scripts. PowerShell Manager allows you to create multiple profiles so that commonly used variables can saved and reused on a per profile/customer basis.





Important Notes
I will work on documentation as time permits, however some important notes:
  • PowerShell scripts imported in to PowerShell Manager require defined parameters so that they can be passed in to the script. If your script does not have parameters you can still run the script with no parameters.


  • Script file names are unique across all profiles. If you import a script a that currently exists you will be asked if you want to overwrite the existing one or just reference it.



    If you have a script that is customized to a particular customer, rename it accordingly.
  • Similarly when you delete a script you can select "Yes" to delete it from all profiles, or "No" just to remove the reference to it in the current profile.



Download
PSManager.zip