Showing posts with label Microsoft Lync. Show all posts
Showing posts with label Microsoft Lync. Show all posts

[Solved] Call failed due to network issue Microsoft lync when bothendpoints are internal


While working on Microsoft Lync I have faced "Call failed due to network issue" while making audio/video calls to the users. In my environment I have successfully implemented Lync for IM, audio video conference, Auto Attend, voice mail. But calling was the issue in different scenarios.

Called failed due to network issue
I was not able to able to make calls due to " call failed due network issue" in below scenario,
1. if user is connected Lync from home via Internet and other user is in office network

I was able to make calls if,
1. If I connected to the Office network via Remote Access VPN & other users is in office network
2. If both user are connected to Lync server via internet through Lync edge server.

But call fails if both users in the different network i.e. in office or at home

In my network we have five location & user logs in to the Lync server from different five location via site 2 site vpn or from home via Internet.

Below are the network details of five offices,

Server Network - 192.168.1.0/24
Office 1 - 192.168.1.2/24
Office 2 - 192.168.3.0/24
Office 3 - 192.168.4.0/24
Office 4 - 192.168.5.0/24
Office 5 - 192.168.6.0/24

My Microsoft Lync front end server is in the 192.168.1.0/24 network along with my archiving, monitoring, SQL Server & Edge server Internal facing network card.

TO resolve you have to add routes for your internal network on your Lync Edge server,
My Edge server IP's are
1. Internal
192.168.1.10 Mask 255.255.255.0
No gateway
DNS - Internal DNS server

2. External Facing Network
IP - 10.10.12.10 Mask 255.255.255.0
Gateway - 10.10.12.1
DNS - 4.2.2.2 & 8.8.8.8

My gateway for Internal network traffic for my Edge server is (192.168.1.0/24) is 192.168.1.1 so that it can communicate with the Lync front end server. Same way you need add routes for your other network i.e. offices on your edge server as shown below,

Open Command Prompt on Edge Server & add routes

route add -p 192.168.1.0 mask 255.255.255.0 192.168.1.1
route add -p 192.168.2.0 mask 255.255.255.0 192.168.1.1
route add -p 192.168.3.0 mask 255.255.255.0 192.168.1.1
route add -p 192.168.4.0 mask 255.255.255.0 192.168.1.1
route add -p 192.168.5.0 mask 255.255.255.0 192.168.1.1

Gateway will be the same for all other network traffic. Once you add persistent route restart Edge server & try to make calls.

[Solved] Search for a Microsoft lync SIP enabled users in microsoft Lync client


If you want to search only Lync sip enabled users in Lync search List then here is the answer. By default Lync address book service scans AD for address book & Lync only adds users to its address book if is able to find or normalize to a valid phone number (E.164). The Address Book service uses the normalization rules in company_phone_number_normalization_rules.txt

But in my case I just want to add Microsoft Lync SIP enabled users in Microsoft Lync client search list.

So lets get start,

Download Microsoft Lync Resource Kit from below URL and install it on front end Lync server.
http://www.microsoft.com/en-us/download/details.aspx?id=21165

Navigate to C:\Program Files\Microsoft Lync Server 2010\ResKit & open ABSConfig.exe

Here I am going to include only Lync SIP enabled users in Lync address book, so in "Only include users that have a value for this AD attribute" should be msRTCSIP-PrimaryUserAddress

Click on Apply changes & close the ABS configuration tool. Wait for 0-24 hours to populate the Lync address book & see the results. Or you can refer below guide to manually change the Lync address book download interval.

http://mytricks.in/2012/09/solved-lync-contact-search-not-showing-all-users.html


[Solved] Lync Contact Search not showing all users


While working on Microsoft Lync few users reported me that they are not able to view all Lync contacts. Follow below process to solve Lync contact search issue,

1. Open Microsoft Lync management shell & run Update-CsUserReplicatorConfiguration command, This process synchronizes data between Active Directory and the Lync SQL database.

PS C:\> Update-CsUserReplicatorConfiguration -verbose

2. Now run PS C:\> update-csaddressbook -verbose command

Above command trigger the Microsoft Lync Server to synchronize current Active Directory information in the Lync SQL database into the downloadable client and device address book files. (i.e. GalContacts.db & GalContacts.db.idx )

Now Update Lync Clients address book download interval- The address book does not populate itself immediately it takes 0-24 hours to populate the contacts. To change the Lync address book download interval follow below process,

Execute the following command from the Windows Command Prompt to add registry entry (run as an administrator) to change the address book download interval,

reg add HKLM\Software\Policies\Microsoft\Communicator /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

Now open C:\Users\santosh\AppData\Local\Microsoft\Communicator folder replace Santosh with actual username & delete Lync profile i.e. sip_santosh@mytricks.in OR delete the Lync address book files (i.e. ) i.e. GalContacts.db & GalContacts.db.idx ) from C:\Users\santosh\AppData\Local\Microsoft\Communicator\sip_santosh@mytricks.in (replace sip_santosh@mytricks.in with actual user name.

Close the Lync client completely & sign-in. wait for 5 min & search for the Lync contacts. After login to Lync client you will see the new address book files i.e. GalContacts.db & GalContacts.db.idx downloaded from Lync front end server in your Lync folder.

[Solved] Microsoft Threat Management Gateway The target principal name is incorrect


Today I faced issue while publishhing my Microsoft Lync Web Services URL via Microsoft Threat managemtn gateway. Everytime while testing TMG website rule I get The target principal name is incorrect error. You can see the below error in detail, Testing

https://lync.domain.com:443/OWA/

Category: Destination server certificate error Error details: 0x80090322 -

The target principal name is incorrect.

After doing lot of R&D I found the solution. I have found any article in detail but few blogs help me a lot. Actually the issue is with Certificate CN (Common Name) used at Lync FrontEnd server (i.e. Lync External Web Services) & Threat Magement Gateway side (Public Name of the URL which we enter while creating web Publishing rule) You need to import certificate on both Lync Front End (use Lync topology builder to apply the certificate) & TMG server. for example your Lync external web services name is lyncweb.domain.com then common name should lyncweb.domain.com with additional SAN which are you going to use (e.g. dialin.domain.com etc). Also ensure Public name of the URL which you are going to enter while creating web publishing rule should match with Lync external web service else it will not work..

In next article I will cover how to create certificate request for TMG & how to import it on TMG & Lync front end server.

Download Microsoft Lync Server 2013 Preview


Microsoft has released Microsoft Lync server 2013 Preview for its customer. Microsoft Lync 2013 is an enterprise-ready unified communications platform. Lync connects people everywhere, on Windows 8 and other devices, as part of their everyday productivity experience. Lync provides a consistent, single client experience for presence, instant messaging, voice, HD video, and conferencing, and eliminates the need to use a VPN for encryption. Lync 2013 supports HD video conferencing and takes advantage of Windows 8 “touch first” capabilities to provide fast, natural, hands-on control of communications.

Features
Multi-Party HD Video
1080p Peer to Peer and Multiparty video
H.264 SVC Support
Skype Federation: Presence, IM, Peer-to-Peer Voice.
Voice/Video over Lync Web App
Lync Mobile VoIP
Now Archiving and Monitoring Server Roles can be co-located on Front End

Download Lync Server 2013 Public Beta

[Guide] How to Add and Configure Microsoft Lync Server Common Area Phone Polycom


I have Polycom CX500 Common Area Phone, so here I will show you how to configure Common Area phone with Microsoft Lync Server. You will find more configuration help on Microsoft TechNet URL: http://technet.microsoft.com/en-us/library/gg425854.aspx

1. I am going to prepare my DHCP server

Configuring DHCP Search Options

Right click on IPv4 & click on Set predefined options,

Now Click on Add to add predefined options,


Use below option types & click on OK,






Now right click on Server options & select Configure options




Select DNS Serach list & enter your string value. In my case its mytricks.in






Configuring DHCP Options to Enable Sign-in for IP Phones

This is most tricky part of Common Area phone configuration,

  • If you are using 64-bit Windows DHCP server. Then copy DHCPUtil.exe and DHCPConfigScript.bat files from the following default location on your Lync Server to the Windows Server(s) running DHCP server for subnets where any phones will be connected.


%ProgramFiles%\Common Files\Microsoft Lync Server 2010\DHCPUtil.bat
%ProgramFiles%\Common Files\Microsoft Lync Server 2010\DHCPConfigScript.bat

  • IN my case DHCP server is on windows 32-bit server so follow below steps,



  • If using 32-bit Windows DHCP servers then only copy the DHCPConfigScript.bat file from the Lync server to the DHCP server. The DHCPUtil.exe tool will be run on the Lync server locally and the output will be used to call the batch file manually on the DHCP server.


Executing DHCPutil.exe /? Will return most of the available switches and a quick read-through appear to indicate a number of switches will be necessary. The keys to using this commands are that (1) if a single Lync Server is deployed in the environment then only the -SipServer is required as the same FQDN will be used for the other settings and (2) the –RunConfigScript option needs to be included otherwise the command will only printout what changes it ‘would’ make but will not actually do anything.
So this next step is optional (and purely for education) when dealing with a 64-bit DHCP server configuration, but must be run on the Lync Server for 32-bit DHCP server configuration.

DHCPUtil.exe -SipServer lync.mytricks.in
run this command on Lync server via command prompt (Open Command prompt with “Rus as Administrator “option) (dhcputil.exe located in c:\programfiles\commonfiles\microsoft lync server)

C:\Program Files\Common Files\Microsoft Lync Server 2010>DHCPUtil.exe –sipserver lync.mytricks.in
Below is the output of above command,
SIP Server FQDN : lync.mytricks.in
Certificate Provisioning Service URL : https:// lync.mytricks.in:443/CertProv/Cer
tProvisioningService.svc

Option 120:
00046C796E63077361676974656303636F6D00

Vendor Class Identifier: MS-UC-Client
Option 43 (for vendor=MS-UC-Client):
sub-option 1 <UC Identifier>: 4D532D55432D436C69656E74
sub-option 2 <URL Scheme>: 6874747073
sub-option 3 <Web Server FQDN>: 6C796E632E736167697465632E636F6D
sub-option 4 <Port>: 343433
sub-option 5 <Relative Path for Cert Prov>: 2F4365727450726F762F43657274
50726F766973696F6E696E67536572766963652E737663

To configure DHCP Server with appropriate values, you can do one of the following things:
1. Run DHCPUtil on the DHCP Server: use '-RunConfigScript' switch
2. Run the following command on the DHCP Server (modify the path of DHCP
ConfigScript.bat appropriately):
"C:\Program Files\Common Files\Microsoft Lync Server 2010\DHCPConfigScript.bat"
Configure MS-UC-Client 00046C796E63077361676974656303636F6D00 4D532D55432D436C69
656E74 6874747073 6C796E632E736167697465632E636F6D 343433 2F4365727450726F762F43
65727450726F766973696F6E696E67536572766963652E737663

C:\Program Files\Common Files\Microsoft Lync Server 2010>
Then go to DHCP server (32bit)
C:\ cd Lync (location where u copied dhcpconfigscript from Lync server)
& run below command
C:\dhcpconfigscript.bat Configure MS-UC-Client 00046C796E63077361676974656303636F6D00 4D532D55432D436C69
656E74 6874747073 6C796E632E736167697465632E636F6D 343433 2F4365727450726F762F43
65727450726F766973696F6E696E67536572766963652E737663
Restart Common Area phone & try to login to the phone using pin number & extension.

To create a new Common Area Phone:

New-CsCommonAreaPhone -LineURI "tel:+17805551212;ext=5001" -RegistrarPool "pool01.contoso.com" -DisplayName "Common Area Phone" -SipAddress "sip:commonphone01@domain.com" -OU "OU=Common Phones,OU=Lync Objects,DC=contoso,DC=com"

[Guide] Step by Step Guide to install Microsoft Lync Server 2010 Enterprise Server




Finally I have completed Enterprise Deployment guide for microsoft Lync. This will help for new Lync users to deploy lync enterprise edition...


Software for Lync Server 2010:-
All server roles of Lync Server 2010 require one of the following operating systems:

  • The 64-bit edition of Windows Server 2008 R2 (Standard, Enterprise or Datacenter).


OR

  • The 64-bit edition of Windows Server 2008 SP2 (Standard, Enterprise, or Datacenter).



  1. Install all pre-requisites:-


Install all below pre-requisites on Lync machine (via Windows PowerShell Modules)
#Import-Module ServerManager
#Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Static-Content,Web-Default-Doc,Web-Http-Errors,Web-Http-Redirect,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Http-Logging,Web-Log-Libraries,Web-Http-Tracing,Web-Windows-Auth,Web-Client-Auth,Web-Filtering,Web-Stat-Compression,Web-Mgmt-Console,Web-Scripting-Tools –Restart
Above command will install all the features required for Lync (such as IIS, .Net) and reboot the machine.
2. Installation of MS Lync 2010

Extract downloaded Lync ISO file & go to setup->amd64 & run setup.exe

It will check the availability of Microsoft Visual C++ 2008 redistributable on the system. If it's not installed, it'll give you option to install the application. Click Yes to install it.
Choose the installation location.
Accept the license agreement and click "ok".

  1. Topology Builder Installation -


Topology Builder (TB): It is must to install Topology Builder before you can deploy a Lync Server. Topology Builder helps you to define sites and servers in the setup.
Define a topology (xml file gets created).
Topology Builder validates the topology.
Publish the topology after successful validation.
Publishing it puts it into the Communications Server central management store (which is created if it does not already exist).
Click "Install Topology Builder" to install the TB. After installation of TB, it'll look like following in the deployment wizard.

  1. Preparing Active Directory


To prepare Active Directory Domain Services (AD DS) for your Microsoft Lync Server 2010 deployment, perform below steps:

  • Prep Schema

  • Forest Prep

  • Domain Prep


On deploy wizard main screen, click "Prepare Active Directory" and "Run" the schema prep.


On the Schema Prep wizard, click "Next" and "Finish". This will extend the Active Directory schema for the use of Microsoft Lync Server 2010. You need to be an enterprise admin to perform this operation.
It's time for Current forest prep after you are done with schema prep.


From Active Directory Preparation wizard, "Run" the prepare forest operation (Above picture). Click "Finish" when the forest prep is done
After forest prep is successful, run domain prep for all the concerned domains in Active Directory.

Before moving further the domain Administrator account (domain admins) used throughout this process should be added as a member to the domain security groups CsAdministrator and RTCUniversalServerAdmins.
This user account should then logoff and back on to the Windows Server where Lync is being installed to update the security profile.
Create a share for Lync Server:
It will be used during Lync Server 2010 installation. Everyone should have “Read & Execute” permission. Administrators should have “Full Control”.
Share name for this purpose in this article is “Lync”. Which I have created on “edge.company.local” server.

Defining topology with the help of Topology Builder
Open the Topology Builder from Windows start menu.
Provide a name to the topology. E.g, “Pune.tbxml".


  1. On the Specify additional supported domains page, enter the names of additional domains, if any, and then click Next.



  1. On the Define the first site page, enter a name and a description for the first site, and then click Next.




  1. On the Specify site details page, enter the location information for the site, and then click Next.



Now define Front End Pool,
On the Define the Front End pool FQDN page, enter a fully qualified domain name (FQDN) for the pool you are creating, click Enterprise Edition

Front End Pool, and then click Next.
On the Define the computers in this pool page, enter a computer FQDN for the first Front End Server in the pool, and then click Add. Repeat this step for any additional computers (upto ten) that you want to add to the pool, and then click Next. (in our case its “lync.company.local”) our front end server.


On the Select features page, select the check boxes for the features that you want on this Front End pool
On the Select collocated server roles page, you can choose between collocating the A/V Conferencing service and the Mediation Server on the Front End Server or to deploy one or both as stand-alone servers. Associate server roles with this Front End pool page allows you to define and associate server roles
With the Front End pool

On the Define the SQL store page, do one of the following,
SQl Server name – Chennai.company.local & In my case sql server instance is default.
On the Define the file share page, do one of the following,
File server – edge.company.local
Share name - lync
Specify gateway if applicable. In my case gateway is (192.168.100.110) my asterisk box. I haven’t specified it & finish the setup.

Back at the main Topology Builder window select Edit Properties on the Lync Server 2010 root-level object. Highlight the Simple URLs section and enter the desired Administrative Access URL. (Additional for Phone Access URLs and Meeting URLs are already configured.)
Also highlight the Central Management Server section and select the new Front-End server from the drop-down menu if it is not already selected.



Now publish Lync topology,



By now Backend SQL instance will have databases e.g Lis,rtc ,rtcab, XDS etc. Also, the
Shared folder (i.e. Lync server c:\Lync)
DNS Records:
Create following three hostnames on “company. Local” Domain Controller
Dialin.company.local
Meet. company.local
Admin. company.local
Pool. company.local
All three hostnames should point to the IP Address of the enterprise edition server

Done.
Installation of Microsoft Lync Server 2010 binaries
On the Lync Server 2010 page, next to Step1: Install Local Configuration Store, click Run
On the Local Server Configuration page, ensure that the Retrieve configuration automatically from the Central Management Store option is selected, and then click Next



Run “setup or remove Lync Server components” wizard.
Certificate for Lync Server
You can either user certificates from the internal Certification Authority (CA), or you can get the certificates from the public CA. Since this certificate will be used only for the internal purpose, it makes sense to get the certificate from internal CA.


  1. On the Certificate Wizard page, click Request.


On the Certificate Request page, click next
On the Choose a certificate Authority (CA) page, select the Select a CA from the list detected in your environment option




On the Name and Security Settings page, specify a Friendly Name
On the Subject Name / Subject Alternate Names page, review the subject alternative names that will be added, and then click Next
On the SIP Domain setting page, select the SIP Domain, and then click Next
Reboot the server. And, that’s all as far as installation of Lync Server 2010 is concerned.


Don’t forget to create the corresponding SRV record to enable auto configuration at the clients end
Test Enterprise deployment,
Open Lync Control Panel & click on enable users for Lync Server
Click on Add,

Enter Username & Click on Find,

For user “Santosh” I have enabled Enterprise voice & assigned extension number 2000.

Now open Lync Client & enter user credentials to login to the Lync,