< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Utility to check LAN


A "domain" implies an internet domain, some external internet address. While
subnet and LAN are local addresses and typically do not have universally
defined IP addresses comparable to a domain.

However, you can examine the headers of a message and see which IP it came
from based on the address information contains in the headers determine if
those IP's match your LAN and determine if the message has originated on
your LAN.

For example:
Msg.header(h_From) would return something like this:

From: "Ali Ziad (X-Lite)"<sip:ali_lite@xxxxxxxxxxxxxx>;tag=432dab3d

I could extract the host/IP part and compare the IP address network portion
(192.168.10.00) to my Ethernet card's IP Address network address to
determine if the sender is a LAN user.

I wouldn't think such general purpose application level logic would be part
of DUM or the library.

-ali


-----Original Message-----
From: resiprocate-users-bounces@xxxxxxxxxxxxxxx
[mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of Mandeep
Ahuja
Sent: Monday, January 28, 2008 2:38 PM
To: resiprocate-users@xxxxxxxxxxxxxxx
Subject: [reSIProcate-users] Utility to check LAN

Hi,
Is there any resiprocate/dum utility to check if a domain belongs to 
local subnet. I mean, a simple function call to check if a sip message 
came from LAN. Please let me know
thanks

Mandeep Ahuja
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/