<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><param name="inbound-proxy-media" value="true"/><br class=""><param name="local-network-acl" value="localnet.auto"/><br class=""><param name="ext-rtp-ip" value="$${external_rtp_ip}"/><br class=""><param name="ext-sip-ip" value="$${external_sip_ip}"/><br class=""></blockquote><br class=""></div><div class="">These are not channel variables but profile params. So they have to be set on the profile configuration file under sip_profiles.</div><div class=""><br class=""></div><div class="">And for your case, if all your traffic is internal on this profile, remove the last 2 params (ext-sip-ip and est-rtp-ip) as freeswitch use them to set the public ip on the contact and SDP if your server is nated.</div><div class=""><br class=""></div><div class="">Best Regards,<br class="">-- <br class="">Vallimamod Abdullah<br class="">SIP Solutions<br class=""><a href="mailto:vma@sip.solutions" class="">vma@sip.solutions</a><br class=""><a href="http://linkedin.com/in/vallimamod" class="">linkedin.com/in/vallimamod</a><br class=""></div><div class=""><div class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">.</div></div></div></div></div></div>
</div><div class=""><br class="webkit-block-placeholder"></div><div class=""><br class=""></div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On 24 May 2018, at 22:43, M Yudkowsky <<a href="mailto:speech@pobox.com" class="">speech@pobox.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Comrades!<br class=""><br class="">I'm using FreeSWITCH (FS) as a proxy between an internal server that makes calls and an external SIP provider. The internal server is a speech recognition server that has a telephony component to originate and terminate calls.<br class=""><br class="">Here's the sequence of messages between the internal server (IS) and FS:<br class=""><br class="">Starting the call, we see:<br class=""><br class="">IS (internal IP) == INVITE ==> FS (internal IP)<br class="">IS (internal IP) <== 100 == FS (internal IP)<br class="">IS (internal IP) <== 183 == FS (internal IP)<br class=""><br class=""> FS gets a connection to SIP provider, and the internal call continues:<br class=""><br class="">IS (internal IP) <== 200 OK == FS (internal IP)<br class=""><br class=""> But the 200 OK from FS contains, in the Contact field, the *external* IP address:<br class=""> Contact: <<a href="sip:xxxxx@" class="">sip:xxxxx@</a>(external IP):5060;transport=udp><br class=""> As a result, the IS sends a response to the *external* IP address:<br class=""><br class="">IS (external IP) == ACK ==> FS (external IP)<br class=""><br class=""> FS resends several 200's, which IS properly ignores.<br class=""> Eventually FS gives up on hearing from IS and sends a <br class=""> BYE with a Reason of 408 ACK Timeout.<br class=""><br class=""><br class="">I'm not clear which server is to "blame," if either. FS has "inbound-proxy-media" set to true in (my-dialplan).xml, and I would therefore expect that the Contact field would treat internal servers as internal and use internal IP addresses exclusively. Or is FS correct? Is the problem that IS attempting to do NAT based on the Contact and making an error? (I tried disabling IS's NAT, and almost certainly did it correctly, but that does not seem to help.)<br class=""><br class="">Variables set in (my_dialplan).xml:<br class=""><br class=""><param name="inbound-proxy-media" value="true"/><br class=""><param name="local-network-acl" value="localnet.auto"/><br class=""><param name="ext-rtp-ip" value="$${external_rtp_ip}"/><br class=""><param name="ext-sip-ip" value="$${external_sip_ip}"/><br class=""><br class="">And the next two were added on in an attempt to fix this, but failed to do so:<br class=""><br class=""><param name="aggressive-nat-detection" value="true"/><br class=""><param name="NDLB-force-rport" value="true"/><br class=""><br class="">So, any ideas?<br class=""><br class="">-- <br class=""> Moshe Yudkowsky<br class=""> Disaggregate Corporation<br class=""> 2952 W Fargo<br class=""> Chicago, IL 60645 USA<br class=""><br class=""> +1 773 764 8727<br class=""> <a href="mailto:speech@pobox.com" class="">speech@pobox.com</a><br class=""><br class=""> <a href="http://www.disaggregate.com/" class="">http://www.Disaggregate.com</a><br class=""> <a href="http://www.pebbleandavalanche.com/" class="">http://www.PebbleAndAvalanche.com</a><br class=""></div></div></blockquote></div></div></div><br class=""></body></html>