Lync SDK - getting the Line URI as programmed in Lync Server 2010

Unanswered Lync SDK - getting the Line URI as programmed in Lync Server 2010

  • Thursday, May 24, 2012 12:20 PM
     
     

    When a Lync popup handler is triggered in C#, I wanted to investigate the dialled and called numbers of the call I have received.

    So when an incoming call happens, Hander is triggered to represent change in conversation has occurred.

    So in the handler I have :-

    .....

    String origSideDN = "3006";

    Conversation myConv = Client.ConversationManager.Conversations.Last(
                    c => c.Participants.Any(
                        p => p.Contact.Uri.Contains("tel:" + origSideDN)));

    .....

    Is the a way of getting the Line URI, which had been programmed in 

    Lync Server, Users, Line URI: "tel:+12345678".

    Thanks.

    (ps a bit of c sharp code snippet would be useful so I could test it)

All Replies

  • Thursday, May 24, 2012 5:37 PM
     
     
    If you are looking for the local user's line URI, then look at the self contact and call the "GetPhone()" method.

    Oscar Newkerk

    Oscarnew Consulting