<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi!<br>
    <br>
    I tried to establish connection between Freeswitch and external
    gateway which is located behind NAT.<br>
    <br>
    NAT-gateway is configured to do ip/port forwarding.<br>
    <br>
    RTP session can't be established. With tcpdump &amp; wireshark <span
      id="result_box" class="short_text" lang="en"><span class="hps">that's
        what I</span> <span class="hps">saw</span></span>:<br>
    <br>
    <small>|Time     | 91.211.XXX.XXX                        |
      192.168.0.100                         |<br>
      |         |                   | 77.246.XXX.XXX    
      |                   <br>
      |8,088    |         INVITE SDP (g711A g711U CN)         
      |                   |SIP From: "9260123069"
      &lt;<a class="moz-txt-link-freetext" href="sip:9260123069@91.211.XXX.XXX">sip:9260123069@91.211.XXX.XXX</a>
      To:&lt;<a class="moz-txt-link-freetext" href="sip:4959899711@77.246.XXX.XXX:5065">sip:4959899711@77.246.XXX.XXX:5065</a><br>
      |         |(5065)   ------------------&gt;  (5065)  
      |                   |<br>
      |8,088    |         INVITE SDP (g711A g711U CN)         
      |                   |SIP From: "9260123069"
      &lt;<a class="moz-txt-link-freetext" href="sip:9260123069@91.211.XXX.XXX">sip:9260123069@91.211.XXX.XXX</a>
      To:&lt;<a class="moz-txt-link-freetext" href="sip:4959899711@77.246.XXX.XXX:5065">sip:4959899711@77.246.XXX.XXX:5065</a><br>
      |         |(5065)   ------------------&gt;  (5065)  
      |                   |<br>
      |8,099    |         100 Trying|                  
      |                   |SIP Status<br>
      |         |(5065)   &lt;------------------  (5065)  
      |                   |<br>
      |8,116    |         200 Ok SDP (g711A)           
      |                   |SIP Status<br>
      |         |(5065)   &lt;------------------  (5065)  
      |                   |<br>
      |8,117    |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |8,117    |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |8,199    |         RTP (g711A)                  
      |                   |RTP Num packets:28  Duration:0.259s
      SSRC:0x76B458<br>
      |         |(16694)  --------------------------------------&gt; 
      (49152)  |<br>
      |8,287    |         RTP (g711A)                  
      |                   |RTP Num packets:860  Duration:17.181s
      SSRC:0xEAC34F46<br>
      |         |(16694)  &lt;------------------  (49152) 
      |                   |<br>
      |8,479    |         RTP (g711A)                  
      |                   |RTP Num packets:1488  Duration:14.900s
      SSRC:0x76B458<br>
      |         |(16694)  ------------------&gt;  (49152) 
      |                   |<br>
      |10,116   |         200 Ok SDP (g711A)           
      |                   |SIP Status<br>
      |         |(5065)   &lt;------------------  (5065)  
      |                   |<br>
      |10,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |10,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |14,116   |         200 Ok SDP (g711A)           
      |                   |SIP Status<br>
      |         |(5065)   &lt;------------------  (5065)  
      |                   |<br>
      |14,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |14,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |22,116   |         200 Ok SDP (g711A)           
      |                   |SIP Status<br>
      |         |(5065)   &lt;------------------  (5065)  
      |                   |<br>
      |22,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |22,116   |         ACK       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |23,420   |         BYE       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |23,420   |         BYE       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |24,421   |         BYE       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
      |24,421   |         BYE       |                  
      |                   |SIP Request<br>
      |         |(5065)   --------------------------------------&gt; 
      (5065)   |<br>
    </small><br>
    Freeswitch answered to local ip-address of a gateway which used in
    sip "contact" header. Is it possible to say Freeswitch to use public
    ip-address which is in the field "from" instead?<br>
    <pre class="moz-signature" cols="72">-- 
Best regards,
Vitaly.
</pre>
  </body>
</html>