Wrox Programmer Forums
|
BOOK: Professional Unified Communications Development with Microsoft Lync Server 2010
This is the forum to discuss the Wrox book Professional Unified Communications Development with Microsoft Lync Server 2010 by George Durzi, Michael Greenlee; ISBN: 978-0-470-93903-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Unified Communications Development with Microsoft Lync Server 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2011, 02:34 PM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile access to remote endpoint IP address?

Hi,
Thank you for the book. It is really huge help. For my small test application I am trying to make conference participation decision based on location of caller - originator (something like enchanted example from ch.11). In the code I obviously have access to remote user URI and other LYNC user specific properties, but I cannot find a way to get specific location information (IP address would be the best). Is it possible at all?
Thank you
 
Old November 8th, 2011, 01:47 PM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default found it

Found Michael's post on RequestHeaders (http://blog.greenl.ee/2011/10/07/man...-headers-ucma/) and it is exactly what I needed.
Code:
SignalingHeader subnetHeader = args.RequestData.SignalingHeaders.LastOrDefault(h => h.Name == "ms-subnet");
string CallerSubnet = subnetHeader.GetValue();
gave me all I wished for.
Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote IP Access cyberddindia Intro Programming 0 March 20th, 2007 04:59 AM
Remote IP Access cyberddindia Assembly Language 0 March 20th, 2007 04:56 AM
IP Address sumanghosh Classic ASP Basics 1 April 7th, 2006 11:24 AM
How to get IP address shankhan Classic ASP Databases 6 March 10th, 2005 04:18 PM
Retreiving IP address & gateway address sjangit VBScript 0 February 3rd, 2004 02:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.