<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Adrian,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>the URI will not be local, it will be the remote 
target as defined for loose routing.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Martin</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ag@ag-projects.com href="mailto:ag@ag-projects.com">Adrian 
  Georgescu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=martin.koenig@toplink-plannet.de 
  href="mailto:martin.koenig@toplink-plannet.de">Martin Koenig</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 07, 2004 10:41 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] Domain and To header 
  fields</DIV>
  <DIV><BR></DIV>Martin, try is_uri_host_local()<BR><BR>Adrian<BR><BR><?fontfamily><?param Courier><?x-tad-bigger>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<BR><BR>Hi 
  List,<BR><BR>I have a multi domain ser setup with the domain module operating, 
  and I need<BR>to check whether the TO header field contains a local domain or 
  not.<BR><BR>Can this be done with is_domain_local()? If yes how?<BR><BR>Or do 
  i need to write a new function based on is_from_local() to achieve<BR>such a 
  goal.<BR><BR>The Problem is that there is no possiblity to distinguish between 
  our user<BR>calling <?/x-tad-bigger><?color><?param 0000,0000,EEEE><?x-tad-bigger>012345 at 
  iptel.org<?/x-tad-bigger><?/color><?x-tad-bigger> (Remote SIP desination) or <?/x-tad-bigger><?color><?param 0000,0000,EEEE><?x-tad-bigger>012345 at 
  domain.com<?/x-tad-bigger><?/color><?x-tad-bigger> (PSTN<BR>target) after (!) 
  the initial INVITE, especially with loose routing. This is<BR>important 
  because Request-URIs to the PSTN have to be transformed (add f.e.<BR>+49), but 
  requests to other sip destinations have to not be touched.<BR><BR>Thanks for 
  your 
input,<BR><BR>regards,<BR></BLOCKQUOTE><?/x-tad-bigger><?/fontfamily></BODY></HTML>