<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I’m experiencing a NAT traversal problem connecting some softphones to a FreeSWITCH server.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>At office the softphone registers with TLS-NAT, while at home it registers with TLS and actually it’s unreacheable (it can place calls but it cannot receive them), even if the registration parameters (sofia status profile internal reg) contain both the public (IP: x.y.z.w) and the private (Contact: "user" <sip:1010@192.168.1.100:6010;transport=TLS;line=3c4e8d673906c5d>) IP addresses. In both cases the softphone is behind a router, the server is behind a firewall and runs the ddclient service (there is a DynDNS name assigned to it).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Am I missing some configuration detail at server side?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>At the moment I’ve modified the default configuration files in the following way.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The following lines in vars.xml:<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>were substituted with:<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="domain=myhost.dyndns-server.com"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:myhost.dyndns-server.com"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><X-PRE-PROCESS cmd="set" data="external_sip_ip=host:myhost.dyndns-server.com"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>The following lines in sip_profiles/internal.xml:<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><param name="ext-rtp-ip" value="auto-nat"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><param name="ext-sip-ip" value="auto-nat"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>were substituted with:<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><param name="ext-rtp-ip" value="host:myhost.dyndns-server.com"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><param name="ext-sip-ip" value="host:myhost.dyndns-server.com"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>and I’ve also added the line:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New"'><param name="sip-force-contact" value="NDLB-connectile-dysfunction"/><o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>but I actually don’t understand what it means (I’ve found it in some posts about NAT traversal in FreeSWITCH).<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>Thanks in advance.<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>Carmelo</span><span lang=EN-US> </span><o:p></o:p></p></div></body></html>