Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 28th, 2011, 03:34 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old November 8th, 2011, 01:47 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote IP Access cyberddindia Intro Programming 0 March 20th, 2007 05:59 AM
Remote IP Access cyberddindia Assembly Language 0 March 20th, 2007 05:56 AM
IP Address sumanghosh Classic ASP Basics 1 April 7th, 2006 12:24 PM
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



All times are GMT -4. The time now is 09:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.