It should already be doing that in that setup._________________________________________________________________________On Thu, Apr 20, 2017 at 10:49 AM, Andrew Paul <andrew.paul85@gmail.com> wrote:Thanks Brian for the quick response. Yes 192.168.0.132 is opensips and FS is 192.168.0.173. The EIP of FS instance is 54.81.198.142. I turned off the aggressive NAT to false , but unfortunately same result.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.freeswitch@testenv100.aws.piba.net> sofia status profile internal=================================================================================================Name internalDomain Name N/AAuto-NAT falseDBName sofia_reg_internalPres Hosts 192.168.0.173,192.168.0.173Dialplan XMLContext lvcall_bridgeChallenge Realm auto_fromRTP-IP 192.168.0.173Ext-RTP-IP 54.81.198.142SIP-IP 192.168.0.173Ext-SIP-IP 54.81.198.142BIND-URL sip:mod_sofia@54.81.198.142:5060;maddr=192.168.0.173;transport=udp,tcpHOLD-MUSIC local_stream://mohOUTBOUND-PROXY N/ACODECS IN PCMUCODECS OUT PCMUTEL-EVENT 101DTMF-MODE rfc2833CNG 0SESSION-TO 0MAX-DIALOG 0NOMEDIA falseLATE-NEG truePROXY-MEDIA falseZRTP-PASSTHRU trueAGGRESSIVENAT falseCALLS-IN 1FAILED-CALLS-IN 0CALLS-OUT 0FAILED-CALLS-OUT 0REGISTRATIONS 0RegardsAndrewOn Thu, Apr 20, 2017 at 7:17 PM, Brian West <brian@freeswitch.org> wrote:We receive an invite from 192.168.0.132 with a public IP in the SDP, I'm going to assume thats via OpenSIPS? 192.168.0.173 is FS,Try turning aggressive nat detection off, you should NEVER need that except in some weird extreme cases./bOn Thu, Apr 20, 2017 at 8:08 AM, Andrew Paul <andrew.paul85@gmail.com> wrote:_________________________________________________________________________Hi all,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.SOFTPHONE --> OPENSIPS --> ( profile : internal) FREESWITCH ( external) --> CARRIER --> CUSTOMERFreeswitch 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.I have followed the instruction in https://freeswitch.org/confluence/display/FREESWITCH/Amazon+EC2 , but not sure why FS is not setting external IP for internal profile.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.Internal.xml<param name="inbound-zrtp-passthru" value="false"/><param name="nonce-ttl" value="60"/><param name="disable-register" value="true"/><param name="auth-calls" value="$${internal_auth_calls}"/><param name="inbound-reg-force-matching-username" value="true"/><param name="auth-all-packets" value="false"/><param name="sip-ip" value="192.168.0.173"/><param name="rtp-ip" value="192.168.0.173"/><param name="ext-sip-ip" value="54.81.198.142"/><param name="ext-rtp-ip" value="54.81.198.142"/><param name="aggressive-nat-detection" value="true"/>send 1379 bytes to udp/[192.168.0.132]:5060 at 08:53:33.106380:------------------------------------------------------------------------SIP/2.0 200 OKVia: SIP/2.0/UDP 192.168.0.132:5060;branch=z9hG4bKe04b.c7469955.0;rport=5060Via: SIP/2.0/UDP 182.75.26.194:58618;rport=58618;received=182.75.26.194;branch=z9hG4bK-524287-1---8cfb5fbe8c5d0f23Record-Route: <sip:192.168.0.132;r2=on;lr;ftag=7325490b;vsf=AAAAAH1uFG18am1hcXBAIRUIFgwREU0YRxoMAAoOQRtBDlQZcmFuc3BvcnQ9VURQ;did=ad3.3f713b01>Record-Route: <sip:54.175.200.193:5060;r2=on;lr;ftag=7325490b;vsf=AAAAAH1uFG18am1hcXBAIRUIFgwREU0YRxoMAAoOQRtBDlQZcmFuc3BvcnQ9VURQ;did=ad3.3f713b01>From: "14154839556" <sip:14154839556@calldirect.piba.com>;tag=7325490bTo: <sip:14154839556@calldirect.piba.com;transport=UDP>;tag=7Ury0X9HXp68jCall-ID: 7sgGUmlws7Bg64kCbksywQ..CSeq: 2 INVITEContact: <sip:14154839556@54.81.198.142:5060;transport=udp>User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bitAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFYSupported: path, replacesAllow-Events: talk, hold, conference, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 222Remote-Party-ID: "Outbound Call" <sip:14154839556@calldirect.piba.com>;party=calling;privacy=off;screen=nov=0o=FreeSWITCH 1492664761 1492664762 IN IP4 192.168.0.173s=FreeSWITCHc=IN IP4 192.168.0.173t=0 0m=audio 28052 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16Attaching the logs for reference.RegardsAndrew
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org--Brian West
brian@freeswitch.orgTwitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.comBook a phone call (CST)
Allison prompts for FreeSWITCH:
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
Skype:briankwest
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org--Brian West
brian@freeswitch.orgTwitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.comBook a phone call (CST)
Allison prompts for FreeSWITCH:
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
Skype:briankwest
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org