<div>On a similar setup I ran into the same problem. </div><div><br></div><div>I fixed it changing the ACL used </div><div><br></div><div>I will send the setting later as I&#39;m not home now.</div><div><br></div><div>Joel. </div><div><br></div><div><br><div class="gmail_quote"><div>On Thu, Apr 20, 2017 at 08:59 Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>It should already be doing that in that setup.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 10:49 AM, Andrew Paul <span>&lt;<a href="mailto:andrew.paul85@gmail.com" target="_blank">andrew.paul85@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Brian for the quick response. Yes <span style="font-size:12.8px">192.168.0.132 is opensips and FS is </span><span style="font-size:12.8px">192.168.0.173. The EIP of FS instance is<font color="#000000"> </font></span><font color="#444444"><span style="font-size:12.8px"> 54.81.198.142. I turned off the aggressive NAT to false , but unfortunately same result.</span></font><div><font color="#444444"><span style="font-size:12.8px"><br></span></font></div><div><font color="#444444"><span style="font-size:12.8px"> Do we have any settings for forcing the SDP to extern-rtp-ip ?. Just wondering how it worked for the contact address but not the SDP. </span></font><div><font color="#444444"><span style="font-size:12.8px"><br></span></font></div><div><font color="#444444"><div><span style="font-size:12.8px"><a href="mailto:freeswitch@testenv100.aws.piba.net" target="_blank">freeswitch@testenv100.aws.piba.net</a>&gt; sofia status profile internal  </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">=================================================================================================</span></div><div><span style="font-size:12.8px">Name                    internal</span></div><div><span style="font-size:12.8px">Domain Name             N/A</span></div><div><span style="font-size:12.8px">Auto-NAT                false</span></div><div><span style="font-size:12.8px">DBName                  sofia_reg_internal</span></div><div><span style="font-size:12.8px">Pres Hosts              192.168.0.173,192.168.0.173</span></div><div><span style="font-size:12.8px">Dialplan                XML</span></div><div><span style="font-size:12.8px">Context                 lvcall_bridge</span></div><div><span style="font-size:12.8px">Challenge Realm         auto_from</span></div><div><span style="font-size:12.8px">RTP-IP                  192.168.0.173</span></div><div><span style="font-size:12.8px">Ext-RTP-IP              54.81.198.142</span></div><div><span style="font-size:12.8px">SIP-IP                  192.168.0.173</span></div><div><span style="font-size:12.8px">Ext-SIP-IP              54.81.198.142</span></div><div><span style="font-size:12.8px">URL                     <a href="http://sip:mod_sofia@54.81.198.142:5060" target="_blank">sip:mod_sofia@54.81.198.142:5060</a></span></div><div><span style="font-size:12.8px">BIND-URL                <a href="mailto:sip%3Amod_sofia@54.81.198.142" target="_blank">sip:mod_sofia@54.81.198.142</a>:5060;maddr=192.168.0.173;transport=udp,tcp</span></div><div><span style="font-size:12.8px">HOLD-MUSIC              local_stream://moh</span></div><div><span style="font-size:12.8px">OUTBOUND-PROXY          N/A</span></div><div><span style="font-size:12.8px">CODECS IN               PCMU</span></div><div><span style="font-size:12.8px">CODECS OUT              PCMU</span></div><div><span style="font-size:12.8px">TEL-EVENT               101</span></div><div><span style="font-size:12.8px">DTMF-MODE               rfc2833</span></div><div><span style="font-size:12.8px">CNG                     0</span></div><div><span style="font-size:12.8px">SESSION-TO              0</span></div><div><span style="font-size:12.8px">MAX-DIALOG              0</span></div><div><span style="font-size:12.8px">NOMEDIA                 false</span></div><div><span style="font-size:12.8px">LATE-NEG                true</span></div><div><span style="font-size:12.8px">PROXY-MEDIA             false</span></div><div><span style="font-size:12.8px">ZRTP-PASSTHRU           true</span></div><div><span style="font-size:12.8px">AGGRESSIVENAT           false</span></div><div><span style="font-size:12.8px">CALLS-IN                1</span></div><div><span style="font-size:12.8px">FAILED-CALLS-IN         0</span></div><div><span style="font-size:12.8px">CALLS-OUT               0</span></div><div><span style="font-size:12.8px">FAILED-CALLS-OUT        0</span></div><div><span style="font-size:12.8px">REGISTRATIONS           0</span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards</div><span class="m_2728186651351411553HOEnZb"><font color="#888888"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Andrew</div></font></span></font></div><div><font color="#444444"><span style="font-size:12.8px"><br></span></font></div></div></div><div class="m_2728186651351411553HOEnZb"><div class="m_2728186651351411553h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 7:17 PM, Brian West <span>&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12.8px">We receive an invite from 192.168.0.132 with a public IP in the SDP, I&#39;m going to assume thats via OpenSIPS? 192.168.0.173 is FS, </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Try turning aggressive nat detection off, you should NEVER need that except in some weird extreme cases.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">/b</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font color="#cc0000"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_2728186651351411553m_68701040789166180h5">On Thu, Apr 20, 2017 at 8:08 AM, Andrew Paul <span>&lt;<a href="mailto:andrew.paul85@gmail.com" target="_blank">andrew.paul85@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_2728186651351411553m_68701040789166180h5"><div>Hi all,<div><br></div><div>we have FREESWITCH behind opensips and freeswitch is running in AWS. Both Opensips and Freeswitch is in same network + Softphone SDP have public IP address. </div><div><br></div><div>SOFTPHONE --&gt; OPENSIPS --&gt; ( profile : internal)  FREESWITCH  ( external) --&gt; CARRIER --&gt; CUSTOMER </div><div><br></div><div>Freeswitch is action as mediaserver here , I can see the extern-rtp-ip is setting on the calls to CARRIER, But when freeswitch 200Ok to Opensips, it is not putting external IP. It is setting the freeswitch local ip. </div><div><br></div><div>I have followed the instruction in <a href="https://freeswitch.org/confluence/display/FREESWITCH/Amazon+EC2" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Amazon+EC2</a> , but not sure why FS is not setting external IP for internal profile. </div><div><br></div><div>Is there any way to force the EIP ( public IP ) to SDP to opensips?. I can see the Contact address have Public IP but not the SDP Connection IP. </div><div><br></div><div>Internal.xml</div><div><br></div><div><div>  <font color="#cc0000">&lt;param name=&quot;inbound-zrtp-passthru&quot; value=&quot;false&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;disable-register&quot; value=&quot;true&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;auth-calls&quot; value=&quot;$${internal_auth_calls}&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;inbound-reg-force-matching-username&quot; value=&quot;true&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;auth-all-packets&quot; value=&quot;false&quot;/&gt;</font></div><div><font color="#cc0000"><br></font></div><div><font color="#cc0000">    &lt;param name=&quot;sip-ip&quot; value=&quot;192.168.0.173&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;rtp-ip&quot; value=&quot;192.168.0.173&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;ext-sip-ip&quot; value=&quot;54.81.198.142&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;54.81.198.142&quot;/&gt;</font></div><div><font color="#cc0000">    &lt;param name=&quot;aggressive-nat-detection&quot; value=&quot;true&quot;/&gt;</font></div></div><div><br></div><div><br></div><div><div>send 1379 bytes to udp/[192.168.0.132]:5060 at 08:53:33.106380:</div><div>   ------------------------------------------------------------------------</div><div>   <font color="#6aa84f">SIP/2.0 200 OK</font></div><div><font color="#6aa84f">   Via: SIP/2.0/UDP 192.168.0.132:5060;branch=z9hG4bKe04b.c7469955.0;rport=5060</font></div><div><font color="#6aa84f">   Via: SIP/2.0/UDP 182.75.26.194:58618;rport=58618;received=182.75.26.194;branch=z9hG4bK-524287-1---8cfb5fbe8c5d0f23</font></div><div><font color="#6aa84f">   Record-Route: &lt;sip:192.168.0.132;r2=on;lr;ftag=7325490b;vsf=AAAAAH1uFG18am1hcXBAIRUIFgwREU0YRxoMAAoOQRtBDlQZcmFuc3BvcnQ9VURQ;did=ad3.3f713b01&gt;</font></div><div><font color="#6aa84f">   Record-Route: &lt;sip:54.175.200.193:5060;r2=on;lr;ftag=7325490b;vsf=AAAAAH1uFG18am1hcXBAIRUIFgwREU0YRxoMAAoOQRtBDlQZcmFuc3BvcnQ9VURQ;did=ad3.3f713b01&gt;</font></div><div><font color="#6aa84f">   From: &quot;<a href="tel:(415)%20483-9556" value="+14154839556" target="_blank">14154839556</a>&quot; &lt;<a href="mailto:sip%3A14154839556@calldirect.piba.com" target="_blank">sip:14154839556@calldirect.piba.com</a>&gt;;tag=7325490b</font></div><div><font color="#6aa84f">   To: &lt;<a href="mailto:sip%3A14154839556@calldirect.piba.com" target="_blank">sip:14154839556@calldirect.piba.com</a>;transport=UDP&gt;;tag=7Ury0X9HXp68j</font></div><div><font color="#6aa84f">   Call-ID: 7sgGUmlws7Bg64kCbksywQ..</font></div><div><font color="#6aa84f">   CSeq: 2 INVITE</font></div><div><font color="#ff0000">   Contact: &lt;<a href="mailto:sip%3A14154839556@54.81.198." target="_blank">sip:14154839556@54.81.198.</a>142:5060;transport=udp&gt;</font></div><div><font color="#6aa84f">   User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bit</font></div><div><font color="#6aa84f">   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY</font></div><div><font color="#6aa84f">   Supported: path, replaces</font></div><div><font color="#6aa84f">   Allow-Events: talk, hold, conference, refer</font></div><div><font color="#6aa84f">   Content-Type: application/sdp</font></div><div><font color="#6aa84f">   Content-Disposition: session</font></div><div><font color="#6aa84f">   Content-Length: 222</font></div><div><font color="#6aa84f">   Remote-Party-ID: &quot;Outbound Call&quot; &lt;<a href="mailto:sip%3A14154839556@calldirect.piba.com" target="_blank">sip:14154839556@calldirect.piba.com</a>&gt;;party=calling;privacy=off;screen=no</font></div><div><font color="#6aa84f"><br></font></div><div><font color="#6aa84f">   v=0</font></div><div><font color="#6aa84f">   </font><font color="#ff0000">o=FreeSWITCH 1492664761 1492664762 IN IP4 192.168.0.173</font></div><div><font color="#6aa84f">   s=FreeSWITCH</font></div><div><font color="#ff0000">   c=IN IP4 192.168.0.173</font></div><div><font color="#6aa84f">   t=0 0</font></div><div><font color="#6aa84f">   m=audio 28052 RTP/AVP 0 101</font></div><div><font color="#6aa84f">   a=rtpmap:0 PCMU/8000</font></div><div><font color="#6aa84f">   a=rtpmap:101 telephone-event/8000</font></div><div><font color="#6aa84f">   a=fmtp:101 0-16</font></div></div><div><br></div><div><br></div><div>Attaching the logs for reference. </div><div><br></div><div>Regards</div><span class="m_2728186651351411553m_68701040789166180m_316895188640276477HOEnZb"><font color="#888888"><div><br></div><div>Andrew </div><div><br></div></font></span></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_2728186651351411553m_68701040789166180m_316895188640276477gmail_signature" data-smartmail="gmail_signature"><div><div class="m_2728186651351411553m_68701040789166180m_316895188640276477gmail_signature" data-smartmail="gmail_signature"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><b style="font-family:monospace,monospace;font-size:small"><i>Twitter: @FreeSWITCH , @briankwest</i></b></p><p><font size="2" face="monospace, monospace"><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> <br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font size="2" face="monospace, monospace"><a href="https://freeswitch.com/appointment" target="_blank">Book a phone call (CST)</a><br><br>Allison prompts for FreeSWITCH:</font></p><table cellspacing="0" cellpadding="0" style="font-size:12.8px"><tbody><tr><td valign="baseline"><p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p></td></tr></tbody></table><p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report them </span><a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! | Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b><a href="tel:(918)%20420-9001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:(918)%20420-9002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest<br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_2728186651351411553gmail_signature" data-smartmail="gmail_signature"><div><div class="m_2728186651351411553gmail_signature" data-smartmail="gmail_signature"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><b style="font-family:monospace,monospace;font-size:small"><i>Twitter: @FreeSWITCH , @briankwest</i></b></p><p><font size="2" face="monospace, monospace"><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> <br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font size="2" face="monospace, monospace"><a href="https://freeswitch.com/appointment" target="_blank">Book a phone call (CST)</a><br><br>Allison prompts for FreeSWITCH:</font></p><table cellspacing="0" cellpadding="0" style="font-size:12.8px"><tbody><tr><td valign="baseline"><p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p></td></tr></tbody></table><p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report them </span><a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! | Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest<br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></div>