<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

                                                                <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16"><TITLE></TITLE>

<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
                                                        <BODY text=#000000 bgColor=#ffffff>
                                                                <DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>In fact my network is not 10.0.0.0 ; that was just an 
example (bad example).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>The network addresses are specific public network addresses 
(lets say 3 different C Class network) and has no relation to NAT. 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>That's why I need to check the IP adrresses (from and to) 
of the SIP message before deciding if it should use mediaproxy or 
not.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Any idea how to do that ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Soruce address can be checked as :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>if (src_ip="195.1.1.+") {</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>but that won't be same for destination address as "dst_ip" 
is the SER server ip.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>How can I check the ip address of the client that the SIP 
message will be forwarded ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre 
[mailto:greger@teigre.com] <BR><B>Sent:</B> Tuesday, June 20, 2006 10:26 
PM<BR><B>To:</B> &#304;lker Aktuna (Ko&#231;.net)<BR><B>Cc:</B> 
serusers@iptel.org<BR><B>Subject:</B> Re: [Serusers] checking source ip and dest 
ip<BR></FONT><BR></DIV>
<DIV></DIV>Yes, and your network is in the RFC1918 (private) address space, so 
you can use the same logic (even without change as you want to proxy when the 
address is on your network).<BR>g-)<BR><BR>&#304;lker Aktuna (Ko&#231;.net) wrote: 
<BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7C@owa.koc.net 
type="cite">
  <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
  <DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>In fact, I am not looking for "if address is NATed or 
  not", I need to check if address belongs to my network or 
  not.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>what do you mean by RFC1918 addresses 
  ?</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre [<A 
  class=moz-txt-link-freetext 
  href="mailto:greger@teigre.com">mailto:greger@teigre.com</A>] <BR><B>Sent:</B> 
  Tuesday, June 20, 2006 1:40 PM<BR><B>To:</B> &#304;lker Aktuna 
  (Ko&#231;.net)<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated 
  href="mailto:serusers@iptel.org">serusers@iptel.org</A><BR><B>Subject:</B> Re: 
  [Serusers] checking source ip and dest ip<BR></FONT><BR></DIV>Why not test for 
  RFC1918 addresses? That's what the onsip.org nat-handling scripts do. A NATed 
  destination is determined by a flag in the location record and the src ip is 
  checked with nat_uac_test().&nbsp; It will give a more robust NAT handling 
  that testing on IP addresses for parts of the RFC1918 addresses. <BR>The 
  problem has already been solved, why not reuse? ;-)<BR>g-)<BR><BR>&#304;lker Aktuna 
  (Ko&#231;.net) wrote: 
  <BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7A@owa.koc.net 
  type="cite">
    <META http-equiv=EXPIRES content=0>
    <META http-equiv=EXPIRESABSOLUTE content="Tue, 01 Jun 1999 12:00:00 GMT">
    <META http-equiv=PRAGMA content=NO-CACHE>
    <META http-equiv=CACHE-CONTROL content=PRIVATE>
    <META http-equiv=CACHE-CONTROL content=NO-CACHE>
    <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
    <DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>Hi,</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff size=2>I 
    need to check source ip of a SIP message and also destination IP to which 
    the message will be sent.</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>i.e. I will use mediaproxy only if the one of the ip addresses match 
    10.0.0.0 / 255.0.0.0</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff size=2>is 
    it possible ?</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>Thanks,</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>ilker</FONT></SPAN></DIV>C "-//W3C//DTD HTML 4.0 
    Transitional//EN"&gt; 
    <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>In fact, I am not looking for "if address is NATed or 
    not", I need to check if address belongs to my network or 
    not.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>what do you mean by RFC1918 addresses 
    ?</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
    <HR tabIndex=-1>
    <FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre [<A 
    class=moz-txt-link-freetext 
    href="mailto:greger@teigre.com">mailto:greger@teigre.com</A>] 
    <BR><B>Sent:</B> Tuesday, June 20, 2006 1:40 PM<BR><B>To:</B> &#304;lker Aktuna 
    (Ko&#231;.net)<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated 
    href="mailto:serusers@iptel.org">serusers@iptel.org</A><BR><B>Subject:</B> 
    Re: [Serusers] checking source ip and dest ip<BR></FONT><BR></DIV>Why not 
    test for RFC1918 addresses? That's what the onsip.org nat-handling scripts 
    do. A NATed destination is determined by a flag in the location record and 
    the src ip is checked with nat_uac_test().&nbsp; It will give a more robust 
    NAT handling that testing on IP addresses for parts of the RFC1918 
    addresses. <BR>The problem has already been solved, why not reuse? 
    ;-)<BR>g-)<BR><BR>&#304;lker Aktuna (Ko&#231;.net) wrote: 
    <BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7A@owa.koc.net 
    type="cite">
      <META http-equiv=EXPIRES content=0>
      <META http-equiv=EXPIRESABSOLUTE content="Tue, 01 Jun 1999 12:00:00 GMT">
      <META http-equiv=PRAGMA content=NO-CACHE>
      <META http-equiv=CACHE-CONTROL content=PRIVATE>
      <META http-equiv=CACHE-CONTROL content=NO-CACHE>
      <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
      <DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>Hi,</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>I need to check source ip of a SIP message and also destination IP 
      to which the message will be sent.</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>i.e. I will use mediaproxy only if the one of the ip addresses 
      match 10.0.0.0 / 255.0.0.0</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>is it possible ?</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>Thanks,</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>ilker</FONT></SPAN></DIV>C "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>

<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>In fact my network is not 10.0.0.0 ; that was just an 
example (bad example).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>The network addresses are specific public network addresses 
(lets say 3 different C Class network) and has no relation to NAT. 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>That's why I need to check the IP adrresses (from and to) 
of the SIP message before deciding if it should use mediaproxy or 
not.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Any idea how to do that ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Soruce address can be checked as :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>if (src_ip="195.1.1.+") {</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>but that won't be same for destination address as "dst_ip" 
is the SER server ip.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>How can I check the ip address of the client that the SIP 
message will be forwarded ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736333708-21062006><FONT face=Arial 
color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre 
[mailto:greger@teigre.com] <BR><B>Sent:</B> Tuesday, June 20, 2006 10:26 
PM<BR><B>To:</B> &#304;lker Aktuna (Ko&#231;.net)<BR><B>Cc:</B> 
serusers@iptel.org<BR><B>Subject:</B> Re: [Serusers] checking source ip and dest 
ip<BR></FONT><BR></DIV>
<DIV></DIV>Yes, and your network is in the RFC1918 (private) address space, so 
you can use the same logic (even without change as you want to proxy when the 
address is on your network).<BR>g-)<BR><BR>&#304;lker Aktuna (Ko&#231;.net) wrote: 
<BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7C@owa.koc.net 
type="cite">
  <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
  <DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>In fact, I am not looking for "if address is NATed or 
  not", I need to check if address belongs to my network or 
  not.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>what do you mean by RFC1918 addresses 
  ?</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
  color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre [<A 
  class=moz-txt-link-freetext 
  href="mailto:greger@teigre.com">mailto:greger@teigre.com</A>] <BR><B>Sent:</B> 
  Tuesday, June 20, 2006 1:40 PM<BR><B>To:</B> &#304;lker Aktuna 
  (Ko&#231;.net)<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated 
  href="mailto:serusers@iptel.org">serusers@iptel.org</A><BR><B>Subject:</B> Re: 
  [Serusers] checking source ip and dest ip<BR></FONT><BR></DIV>Why not test for 
  RFC1918 addresses? That's what the onsip.org nat-handling scripts do. A NATed 
  destination is determined by a flag in the location record and the src ip is 
  checked with nat_uac_test().&nbsp; It will give a more robust NAT handling 
  that testing on IP addresses for parts of the RFC1918 addresses. <BR>The 
  problem has already been solved, why not reuse? ;-)<BR>g-)<BR><BR>&#304;lker Aktuna 
  (Ko&#231;.net) wrote: 
  <BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7A@owa.koc.net 
  type="cite">
    <META http-equiv=EXPIRES content=0>
    <META http-equiv=EXPIRESABSOLUTE content="Tue, 01 Jun 1999 12:00:00 GMT">
    <META http-equiv=PRAGMA content=NO-CACHE>
    <META http-equiv=CACHE-CONTROL content=PRIVATE>
    <META http-equiv=CACHE-CONTROL content=NO-CACHE>
    <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
    <DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>Hi,</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff size=2>I 
    need to check source ip of a SIP message and also destination IP to which 
    the message will be sent.</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>i.e. I will use mediaproxy only if the one of the ip addresses match 
    10.0.0.0 / 255.0.0.0</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff size=2>is 
    it possible ?</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>Thanks,</FONT></SPAN></DIV>
    <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
    size=2>ilker</FONT></SPAN></DIV>C "-//W3C//DTD HTML 4.0 
    Transitional//EN"&gt; 
    <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>In fact, I am not looking for "if address is NATed or 
    not", I need to check if address belongs to my network or 
    not.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>what do you mean by RFC1918 addresses 
    ?</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN class=970384110-20062006><FONT face=Arial 
    color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
    <HR tabIndex=-1>
    <FONT face=Tahoma size=2><B>From:</B> Greger V. Teigre [<A 
    class=moz-txt-link-freetext 
    href="mailto:greger@teigre.com">mailto:greger@teigre.com</A>] 
    <BR><B>Sent:</B> Tuesday, June 20, 2006 1:40 PM<BR><B>To:</B> &#304;lker Aktuna 
    (Ko&#231;.net)<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated 
    href="mailto:serusers@iptel.org">serusers@iptel.org</A><BR><B>Subject:</B> 
    Re: [Serusers] checking source ip and dest ip<BR></FONT><BR></DIV>Why not 
    test for RFC1918 addresses? That's what the onsip.org nat-handling scripts 
    do. A NATed destination is determined by a flag in the location record and 
    the src ip is checked with nat_uac_test().&nbsp; It will give a more robust 
    NAT handling that testing on IP addresses for parts of the RFC1918 
    addresses. <BR>The problem has already been solved, why not reuse? 
    ;-)<BR>g-)<BR><BR>&#304;lker Aktuna (Ko&#231;.net) wrote: 
    <BLOCKQUOTE cite=mid7EB6E3B0D22DF54585D1CEB9642E3198D85C7A@owa.koc.net 
    type="cite">
      <META http-equiv=EXPIRES content=0>
      <META http-equiv=EXPIRESABSOLUTE content="Tue, 01 Jun 1999 12:00:00 GMT">
      <META http-equiv=PRAGMA content=NO-CACHE>
      <META http-equiv=CACHE-CONTROL content=PRIVATE>
      <META http-equiv=CACHE-CONTROL content=NO-CACHE>
      <META content="MSHTML 6.00.2900.2838" name=GENERATOR>
      <DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>Hi,</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>I need to check source ip of a SIP message and also destination IP 
      to which the message will be sent.</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>i.e. I will use mediaproxy only if the one of the ip addresses 
      match 10.0.0.0 / 255.0.0.0</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>is it possible ?</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>Thanks,</FONT></SPAN></DIV>
      <DIV><SPAN class=589102510-20062006><FONT face=Arial color=#0000ff 
      size=2>ilker</FONT></SPAN></DIV><!--445D5241795C--></DIV></BLOCKQUOTE><!--445D5241795C--></DIV>
    <DIV style="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
    <DIV style="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
    <DIV style="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" 
    align=justify></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE>
<!--445D5241795C-->
<br><br><a href="http://387555.sigclick.mailinfo.com/sigclick/0B01060D/07044C00/09080544/0018918210.jpg"><img src="http://387555.signature1.mailinfo.com/confirm2.6/0B01060D/07044C00/09080544/0018918210.jpg" border="0" nosend="1"></a><!--445D5241795C//--></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></BODY></HTML>