<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How are you sending calls from your dialplan to your provider?<div><br></div><div>/b</div><div><br><div><html>On Jul 11, 2008, at 1:02 PM, Jair Santos wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"> <div style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">Regarding my previous email, I have now the profile registered but still cannot make PSTN calls from the Phone</font></span></div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span>&nbsp;</div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">sofia status profile doublenat<br>API CALL [sofia(status profile doublenat)] output:<br>=================================================================================================<br>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doublenat<br>Domain Name&nbsp;&nbsp;&nbsp;&nbsp; doublenat<br>DBName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sofia_reg_doublenat<br>Dialplan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XML<br>RTP-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.117<br>Ext-RTP-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stun:stun.freeswitch.org<br>SIP-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.117<br>Ext-SIP-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 24.67.78.200<br>URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="sip:mod_sofia@24.67.78.200:5090">sip:mod_sofia@24.67.78.200:5090</a><br>BIND-URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="sip:mod_sofia@24.67.78.200:5090;maddr=192.168.1.117">sip:mod_sofia@24.67.78.200:5090;maddr=192.168.1.117</a><br>HOLD-MUSIC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local_stream://moh<br>CODECS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PCMU,PCMA,GSM<br>TEL-EVENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 101<br>CNG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13<br>SESSION-TO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>MAX-DIALOG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</font></span></div> <div>&nbsp;</div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">Registrations:<br>=================================================================================================<br>Call-ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MGQ0YmQyYmMxNmNmYTkyYzA4MTVjNTNjMDFkYjM4YzI.<br>User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:1001@24.67.78.200">1001@24.67.78.200</a><br>Contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "FreeSwitch" &lt;<a href="sip:1001@192.168.1.1:23740;rinstance=5ea23586706cd62a">sip:1001@192.168.1.1:23740;rinstance=5ea23586706cd62a</a>>;nat<br>Agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X-Lite release 1100l stamp 47546<br>Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Registered(AUTO-NAT)(unknown) EXP(2008-07-11 12:44:22)</font></span></div> <div>&nbsp;</div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">=================================================================================================<br></font></span></div> <div>&nbsp;</div> <div>&nbsp;</div> <div class="Section1"> <div align="left"><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">Jair Santos</font></span></div><div>&nbsp;<br class="webkit-block-placeholder"></div></div> <blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">  <div></div>  <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b>   freeswitch-users-bounces@lists.freeswitch.org   [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of   </b>Jair Santos<br><b>Sent:</b> Friday, July 11, 2008 9:25 AM<br><b>To:</b>   <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> [Freeswitch-users]   Invalid profile<br><br></font></div>  <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008">Hi,</span></font></div>  <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008"></span></font>&nbsp;</div>  <div><font size="+0"><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">I am trying to register a phone in the following   scenario: </font><p><font face="Tahoma" color="#0000ff" size="2">FS (192.168.0.4) -> NAT (Public   IP 1.2.3.4) -> INTERNET -> NAT (Public IP 5.6.7.8) -> PHONE   (192.168.1.100) </font></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">I   followed the instructions from <a href="http://wiki.freeswitch.org/wiki/General_NAT_example_scenarios">http://wiki.freeswitch.org/wiki/General_NAT_example_scenarios</a>&nbsp;and   have created the profile like:</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&lt;!-- <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a>   --><br>&lt;profile name="external"><br>&nbsp; &lt;!-- This profile is   only for outbound registrations to providers --><br>&nbsp;   &lt;gateways><br>&nbsp;&nbsp;&nbsp; &lt;X-PRE-PROCESS cmd="include"   data="external/*.xml"/><br>&nbsp; &lt;/gateways></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&nbsp; &lt;aliases><br>&nbsp;&nbsp;&nbsp; &lt;alias   name="outbound"/><br>&nbsp; &lt;/aliases></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&nbsp; &lt;domains><br>&nbsp;&nbsp;&nbsp; &lt;domain   name="$${domain}" parse="true"/><br>&nbsp;   &lt;/domains></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&nbsp; &lt;settings><br>&nbsp;&nbsp;&nbsp; &lt;param name="debug"   value="0"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="force-register-domain"   value="$${domain}"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="apply-nat-acl"   value="rfc1918"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="sip-trace"   value="no"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="rfc2833-pt"   value="101"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="sip-port"   value="5090"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="dialplan"   value="XML"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="context"   value="public"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="dtmf-duration"   value="100"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="codec-prefs"   value="$${outbound_codec_prefs}"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="hold-music" value="$${hold_music}"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="use-rtp-timer" value="true"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="rtp-timer-name" value="soft"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="manage-presence" value="false"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="aggressive-nat-detection" value="true"/><br>&nbsp;&nbsp;&nbsp;   &lt;param name="inbound-codec-negotiation"   value="generous"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="nonce-ttl"   value="60"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="auth-calls"   value="false"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-timeout-sec"   value="1800"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-ip"   value="$${local_ip_v4}"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="sip-ip"   value="$${local_ip_v4}"/><br>&nbsp;&nbsp;&nbsp; &lt;param name="ext-rtp-ip"   value="$${external_rtp_ip}"/><br>&nbsp;&nbsp;&nbsp; &lt;param   name="ext-sip-ip" value="$${external_sip_ip}"/><br>&nbsp;&nbsp;&nbsp;   &lt;param name="rtp-timeout-sec" value="300"/><br>&nbsp;&nbsp;&nbsp;   &lt;param name="rtp-hold-timeout-sec" value="1800"/><br>&nbsp;   &lt;/settings><br>&lt;/profile><br></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">In   the phone I am using&nbsp; the {external IP} :5090.&nbsp;&nbsp;I went to the   router and forwarded the 5090 to the machine where FS is   running.</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">The   phone register and I can call internal extensions but I cannot place calls to   PSTN (Call Failed)</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">The   profile is invalid.</font></span></p><p><span class="859531016-11072008">&nbsp;</span><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&nbsp;sofia   status profile doublenat<br>API CALL [sofia(status profile doublenat)]   output:<br>Invalid Profile!<br></font></span></p><font face="Tahoma" color="#0000ff" size="2"></font></span><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">Does   anybody know what I am missing ?</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">thanks</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">Jair   Santos</font></span></p><font face="Tahoma" color="#0000ff" size="2"></font><div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span>&nbsp;<br class="webkit-block-placeholder"></div><div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span>&nbsp;<br class="webkit-block-placeholder"></div><div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">&nbsp;</font></span><br class="webkit-block-placeholder"></div><font face="Tahoma" color="#0000ff" size="2"></font><div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span>&nbsp;<br class="webkit-block-placeholder"></div><div><font face="Tahoma" color="#0000ff" size="2"></font>&nbsp;<br class="webkit-block-placeholder"></div></font></div>  <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008"></span></font>&nbsp;</div>  <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008"></span></font>&nbsp;</div></blockquote></div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>