none
Setup a Lync Call between Lync user and external number

    Question

  • Hi,

    We want to create a service that can setup a call between a Lync user and an external phone number.

    Somewhat the same principle as how the Lync app for tablets starts a call. With the only difference that the Lync app setups a call between two mobile numbers and we want to setup a call between our known Lync number (user) and a external number.

    So the service should call our Lync user, when this user answers the service should setup a call between this Lync user and a external number.

    We cant find any helpful resource at the UCMA 4.0 Samples or on the web.

    Is it possible? And are there perhaps any examples that could lead us in the right direction?

    Thanks

    Monday, January 07, 2013 10:20 AM

Answers

  • Hi,

    We want to create a service that can setup a call between a Lync user and an external phone number.

    Somewhat the same principle as how the Lync app for tablets starts a call. With the only difference that the Lync app setups a call between two mobile numbers and we want to setup a call between our known Lync number (user) and a external number.

    So the service should call our Lync user, when this user answers the service should setup a call between this Lync user and a external number.

    The key to doing this is what in UCMA is called a "supervised transfer." You perform a supervised transfer by calling AudioVideoCall.BeginTransfer with another AudioVideoCall object as the first parameter.

    Using this approach, you can first call the Lync user from your UCMA application, then call the external number. When both of them answer, you call BeginTransfer on the call to the Lync user, passing in the call to the external number as a parameter. You end up with the Lync user connected to the external number.

    Here's a blog post on the general approach if you'd like more details: http://blog.greenl.ee/2011/08/20/switching-lync-call-participants-with-ucma/

    Let me know if you have other questions on how to do this.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee

    • Marked as answer by ma.sg Friday, January 11, 2013 3:37 PM
    Wednesday, January 09, 2013 3:40 AM

All replies

  • For information on voice calls, see the sample apps here:

    AudioVideoCall samples

    For information on interop with the Lync client, see this article:

    Using UCMA 3.0 and Lync 2010 for Contextual Communication

    Monday, January 07, 2013 4:11 PM
  • Hi,

    We want to create a service that can setup a call between a Lync user and an external phone number.

    Somewhat the same principle as how the Lync app for tablets starts a call. With the only difference that the Lync app setups a call between two mobile numbers and we want to setup a call between our known Lync number (user) and a external number.

    So the service should call our Lync user, when this user answers the service should setup a call between this Lync user and a external number.

    The key to doing this is what in UCMA is called a "supervised transfer." You perform a supervised transfer by calling AudioVideoCall.BeginTransfer with another AudioVideoCall object as the first parameter.

    Using this approach, you can first call the Lync user from your UCMA application, then call the external number. When both of them answer, you call BeginTransfer on the call to the Lync user, passing in the call to the external number as a parameter. You end up with the Lync user connected to the external number.

    Here's a blog post on the general approach if you'd like more details: http://blog.greenl.ee/2011/08/20/switching-lync-call-participants-with-ucma/

    Let me know if you have other questions on how to do this.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee

    • Marked as answer by ma.sg Friday, January 11, 2013 3:37 PM
    Wednesday, January 09, 2013 3:40 AM
  • Hi Michael,

    This looks very promising. I will try this right away.

    Thank you for the information.


    Wednesday, January 09, 2013 10:23 AM
  • The transfer approach will work. If you want the application to stay in the path during the call, you can also look at the BackToBackCall in UCMA which can connect an incoming call with an outgoing call and let the media flow directly between the two endpoints without going through the application.

    Thursday, January 31, 2013 1:24 AM