locked
Invoking outbound call using Lync API RRS feed

  • Question

  • Hi,

     

    I'm trying to build click to call functionality on my site where in by clicking on a button Lync will invoke a call to a specified number. The purpose is to invoke call without having to install & enable the Lync plugin in the browser. Can this be done using Lync API? If yes are there any pointers?

     

    Thanks,

    Jay

    Wednesday, July 13, 2011 6:25 PM

Answers

  • If the Lync client is running on the desktop, then the simplest thing to do is just use a hyperlink on the page.  If you have a link of the form tel:+1425555555, then clicking that will bring up a conversation window from the Lync client that the user can use to make the call.  They will need to click on the button in the dialog to actually place the call.

     


    Oscar Newkerk

    Oscarnew Consulting

    Wednesday, July 13, 2011 6:41 PM
  • It doesn't require the plug-in. The tel URI link will just show up as a normal hyperlink in the browser.

    You can test it by typing a tel URI into your browser's address bar - it'll pop up a conversation window in Lync.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee
    Thursday, July 14, 2011 4:38 PM

All replies

  • If the Lync client is running on the desktop, then the simplest thing to do is just use a hyperlink on the page.  If you have a link of the form tel:+1425555555, then clicking that will bring up a conversation window from the Lync client that the user can use to make the call.  They will need to click on the button in the dialog to actually place the call.

     


    Oscar Newkerk

    Oscarnew Consulting

    Wednesday, July 13, 2011 6:41 PM
  • Thanks for your response. Well that options would work only if the Lync plugin is installed and enabled in the browser. My understanding is that simply placing a LINK will not invoke otherwise. Am I missing anything in here?

    Thanks,

    Jay


    Jay
    Wednesday, July 13, 2011 6:58 PM
  • It doesn't require the plug-in. The tel URI link will just show up as a normal hyperlink in the browser.

    You can test it by typing a tel URI into your browser's address bar - it'll pop up a conversation window in Lync.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee
    Thursday, July 14, 2011 4:38 PM
  • Thanks for your response Michael.  I was able to invoke the call but what I realized is that when I click the hyperlink, it shows me the conversation window with another button that says "Click to call" and the call starts only after clicking that button. My question is that how can I bypass that click event and start the call right when I click the hyperlink. Is this something I can do using the API? If yes then how?
    Jay
    Thursday, July 14, 2011 11:37 PM
  • If you're trying to avoid installing anything on the client, then the answer is no - the Lync client API needs to be called from a process running on the client machine, and it uses the same Lync endpoint as the running instance of the Lync client.

    Basically there are two options: (1) you could use a Silverlight application to provide click to call functionality using the Lync client API, or (2) you could create a server-side application using UCMA, and have it expose a WCF service which you can then call from the website if someone clicks on the call link. The UCMA app could then broker the call between the user and the number they are trying to dial.

    Let us know if you have questions about either of those options.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee
    Friday, July 15, 2011 3:46 PM
  • Michael,

    I too am looking for functionality almost exactly like this, and cam across your answer above which is very interesting. My requirement is to place a call from within a browser (no silverlight), and was hoping you could elaborate a bit more on your second option

    (2) you could create a server-side application using UCMA, and have it expose a WCF service which you can then call from the website if someone clicks on the call link. The UCMA app could then broker the call between the user and the number they are trying to dial.


    Regards

    Justin

    Thursday, June 20, 2013 1:24 AM