Even though LCSKid already posted a blog entry on Technet about this, I thought I would talk about it in general a little bit.

I was very exited to help a development group with the basics of embedding links in HTML that when clicked would pull up Lync and automatically make a call or start an IM.  They had looked at integrating Lync into their application, but had tabled it for a bit because they thought it meant going to Silverlight or developing web services on with UCMA when the application as it is today for the most part is basic HTML and some JavaScript.

I told them we would get the *best* integration and all the really cool stuff if we do that, but we can use basic HTML tags to get the ball rolling and get a quick win.  I, like a lot of people, use this stuff in my e-mail signature but in searching in general it’s not real well documented out there on the internet.  Some basic knowledge of good old HTML 1.0 has served me well for the last 15 or so years 🙂

Dialing a number in Lync-

Best way is to use the E.164 Telephone URI:

tel: <phonenumber> , ie:

<a href=”tel:+18173520742″>Click to dial (817) 352-0742</a>

One thing to note Lync auto-magically recognizes numbers and makes them then through an add-in in internet explorer.  This functionality can be turned off, and it doesn’t exist in OCS (or *gasp* you don’t use IE) so it’s still helpful to know.

Starting an IM session –

It’s just your sip:< SIPURI>, ie:

<a href=sip:jack@hill.com>Click to IM Jack</a>

Multiple party IM Session –

They stumped on this one, so I reached out on twitter and got an answer from @paulnearney:

“im:<sip:user1@here.com><sip:user2@here.com>” , ie:

<a href=”im:<sip:jack@hill.com><sip:jill@hill.com>”>Click Here to IM Jack and Jill </a>

So it is easy to add basic HTML tags to your Web application, e-mail signature, or whatever else and do some basic integration to Lync and OCS.

Many thanks to Tom Laciano, Randy Wintle, and Paul Nearney on the multi-party syntax.



I’ve posted a follow up that explains what else is available for HTML in regards to questions to PC to PC and video here: http://thelync.net/2011/11/23/lync-2010-html-url-protocols-for-href-tags/