IT Consultant Everyday Notes

Just some problems/solutions storage

Tag Archives: Lync

Lync: Presence information is missed in Outlook

One day I noted Presence information is no longer available in my Outlook.

I tried to apply KB but that did not help

Resolution: it turned out Cisco Jabber installed recently switched  “DefaultIMApp” under HKEY_CURRENT_USER\Software\IM Providers to “Cisco Jabber”. I changed it back to “Lync” (without quotation) and presence is back Smile

Lync: Request certificate for Reverse Proxy

First of all, Microsoft has an article for that.

But, the article did not work for me – Entrust needed additional fields (like Country, Locality) filled and for some reasons all my CSRs had 1024 key request even though I put 2048 in MMC Wizard.

Finally I decided to do it old way, via .inf file and certreq tool.

here is .inf file I created:


Note: the CSR requests SHA-1 certificate. Microsoft supports SHA-1 until 2017. You can tweak it to request SHA-2 cert.

PKI: How to clean faulty Certificate Request

I recently needed to update an Entrust certificate on my Lync Reverser Proxy. Lync does not have a Wizard to generate CSR so I used Microsoft KB to generate it. Unfortunately KB does not say you need to add Country, Locality and other information and CSR generated failed on Entrust. I added information, but in this case CSR failed because of key length – it has 1024 even though I put 2048. so I end up with several faulty CSRs. How to clean them out? Google search brought me some powershell scripts. Looked a bit too complex. Finally I found an answer on ExpertExchange.

You can basically use certificates MMC (local machine store) and delete unwaneted CSRs there. After that remove CSR files from location where you saved them.


Lync: Script: Get-CsConnections.ps1 – See User Connections, Client Versions, Load Balancing in Lync Server

An old script, but never saw it before for some reasons – it allows to see Client versions and user distribution per Front-end Server. I use it during FE updates, to be sure there is no user connected to an updated FE.

original is here



Lync: Wireshark and Netmon plugins for STUN troubleshooting on Lync Edge server

James Cussen published a useful plugin for Wireshark network analyzer. You can use Microsoft Network Monitor, it has Lync plugin pack too.


Wireshark plugin:


Microsoft  NetMon Lync plugin pack:

Communicator Web Access (CWA) and Lync 2013–still works!


I find CWA much more convenient to use than OWA (with Lync integration). That is why I was happy to see CWA for OCS 2007 R2 is still working with new and shiny Lync 2013!

In my co-existence scenario (Lync 2010 – Lync 2013) I repointed legacy CWA to my new Lync 2013 pool (OCS  2007 R2 CWA allows that) and have web client up and running!



As you can see even Skype integration expected to be available in the next month seems to be working (via MSN federation I guess):


Note: do not forget to update CWA with latest OCS 2007 R2 CU!

Lync: Mobility

I am testing migration from Lync 2010 Enterprise Edition to Lync 2013 Standard Edition. One of thing which does not work is Lync 2013 Mobile for users already migrated to the new server. Let’s put it this way – it works when a user is outside of my internal WiFI network.


When the same Client is on internal network that is what I see in the Client logs:


2013-05-07 16:51:51.796 Lync[2000:3540] INFO TRANSPORT CHttpRequestProcessor.cpp/266:Sending event to main thread for request(0x4c0cb18)
2013-05-07 16:51:51.796 Lync[2000:3540] INFO APPLICATION CUrlRedirectAndTrustResolver.cpp/605:UrlRedirectAndTrustResolver complete with url =, Hops = 1, status = E_BadGateway (E2-3-35)
2013-05-07 16:51:51.796 Lync[2000:3540] INFO APPLICATION CTransportRequestRetrialQueue.cpp/692:Response received for req. UrlTrustResolver(04C0CB18): E_BadGateway (E2-3-35) (RemoteNetworkPermanentError); Done with req.; Stopping resend timer
2013-05-07 16:51:51.796 Lync[2000:3540] INFO APPLICATION CUcwaAutoDiscoveryGetUserUrlOperation.cpp/393:CUcwaAutoDiscoverGetUserUrlOperation::onEvent received.  Status = E_BadGateway (E2-3-35), url =
2013-05-07 16:51:51.796 Lync[2000:3540] INFO APPLICATION CUcwaAutoDiscoveryGetUserUrlOperation.cpp/224:UcwaAutoDiscoveryGetUserUrlOperation completed with url =, userUrl = , status = E_BadGateway (E2-3-35)
2013-05-07 16:51:51.796 Lync[2000:3540] INFO APPLICATION CUcwaAutoDiscoveryService.cpp/1476:AutoDiscovery: Falling back to probing external urls
2013-05-07 16:51:51.797 Lync[2000:3540] INFO APPLICATION CUrlRedirectAndTrustResolver.cpp/77:Starting CUrlRedirectAndTrustResolver with url =, maxHops = 10
2013-05-07 16:51:51.797 Lync[2000:3540] INFO APPLICATION CUrlRedirectAndTrustResolver.cpp/201:CUrlRedirectAndTrustResolver::processUrl called with url =, hopCount = 0, maxHops = 10
2013-05-07 16:51:51.797 Lync[2000:3540] INFO APPLICATION CUrlRedirectAndTrustResolver.cpp/605:UrlRedirectAndTrustResolver complete with url =, Hops = 0, status = S0-0-0
2013-05-07 16:51:51.797 Lync[2000:3540] INFO TRANSPORT CCredentialManager.cpp/164:getSpecificCredential for serviceId(4) returning: credType (1) signInName ( domain () username ( password.empty() (1) compatibleServiceIds(4)
2013-05-07 16:51:51.797 Lync[2000:3540] INFO TRANSPORT TransportUtilityFunctions.cpp/638:<SentRequest>
Request Id: 04C0DD08
HttpHeader:Accept application/;v=1


I tried from my Browser and received the following configuration:



So I decided to add a record for my external web site to my internal DNS and point it to my Lync 2013 server. Same error.

Resolution: On Internal DNS I pointed to Reverse Proxy listener, so basically I sent my internal Wifi Clients via Proxy instead of route them directly to Lync. For some reasons that resolved the issue and Lync Mobile works now for internally connected and externally connected users.


Note: my domain name in logs is changed.

Lync: Entrust Certificates


Bumped into an article on Entrust site showing how to put their certificate chain correctly to a Lync Server:

Lync: Device Update


Microsoft issued updates for Lync Phone Edition (both 2010 and 2013).  While installing them I found a nice script wrote by Pat Richard to facilitate firmware installation for multiple device types.

Audiocodes: MediaPack 1xx–connected phones cannot call each other

I am configuring Lync 2013 to communicate with AudioCodes MediaPack 118 Enhanced Voice Gateway (the device is not certified for Lync 2013).

Listening port on Lync: TCP 5068

Listening port on Audiocodes: TCP 5060

Audiocodes FXS line 1: 2001

                           line 2: 2002

Lync – Phones traffic flows without problem.

Issue: When I tried to call between phones connected to MP-118 I got a busy signal. Phone call does not pass.

Resolution: In Protocol Configuration – Protocol Definition – SIP General Parameters I had SIP destination port set to 5068 (port on my Lync 2013). It looks like Audiocodes used this port by default for all SIP connection (including connection from connected phone to Audiocodes SIP server itself).

So I added port 5060 to my routing rule describing route for phone-phone calls (switch to  Advanced Parameter list):