<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Where did you put it in the dialplan? At the bottom? You'll wanna put it before the transfer to enum otherwise you'll always get NO ROUTE<div><br></div><div>Location Location Location.. that's what they tell me.</div><div><br></div><div>/b</div><div><br><div><html>On Jul 11, 2008, at 1:35 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="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">I am getting "call failed not found" and a voice message saying "The person you are calling is not available".</font></span></div> <div><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span> </div> <div><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">It seems that this error is coming from the provider but the other phone (inside the NAT) can make the calls.</font></span></div> <div><font face="Tahoma" color="#0000ff" size="2"></font> </div> <div class="Section1"> <div align="left"><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">I can call the inside the NAT phone from outside.</font></span></div> <div align="left"><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span> </div> <div align="left"><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">I cannot call the outside phone from the one inside the NAT. I get a busy signal.</font></span></div><p class="MsoNormal"><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">thanks</font></span></p><p class="MsoNormal"><span class="562123118-11072008"><font face="Tahoma" color="#0000ff" size="2">Jair</font></span></p></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>Brian West<br><b>Sent:</b> Friday, July 11, 2008 11:30 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> Re: [Freeswitch-users] Invalid profile<br><br></font></div>That should work what kind of error are you seeing..... <div><br></div> <div>/b</div> <div><br> <div>On Jul 11, 2008, at 1:24 PM, Jair Santos wrote:<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><font face="Tahoma" color="#0000ff" size="2"><span class="687212118-11072008">I have the following dialplan defined. It works from a phone inside the network. </span></font></div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="687212118-11072008"></span></font> </div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="687212118-11072008"><extension name="teste"><br> <condition field="destination_number" expression="^(\d+)$"><br> <!--- The % behind the username tells FS to lookup the user in it's local sip_registration database --><br> <action application="bridge" data="sofia/gateway/inphonex/$0"/><br> </condition><br> </extension><br></span></font></div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="687212118-11072008"></span></font> </div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="687212118-11072008">and the following gateway in the directory</span></font></div> <div> </div> <div> </div> <div class="Section1"> <div align="left"><font face="Tahoma" color="#0000ff" size="2"><include><br> <user id="inphonex"><br> <gateways><br> <gateway name="inphonex"><br> <param name="username" value="3462101"/><br> <param name="realm" value="sip.varphonex.com"/><br> <param name="password" value="60654<span class="687212118-11072008">6</span>"/><br> <param name="proxy" value="sip.varphonex.com"/><br> <param name="register" value="true"/><br> <param name="expire-seconds" value="3600"/><br> </gateway><br></gateways><br><params><br> <param name="password" value="60654<span class="687212118-11072008">6</span>"/><br> </params><br> </user><br></include><br></font></div> <div><font face="Tahoma" color="#0000ff" size="2"></font><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> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Brian West<br><b>Sent:</b> Friday, July 11, 2008 11:17 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> Re: [Freeswitch-users] Invalid profile<br><br></font></div>How are you sending calls from your dialplan to your provider? <div><br></div> <div>/b</div> <div><br> <div>On Jul 11, 2008, at 1:02 PM, Jair Santos wrote:<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> </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 doublenat<br>Domain Name doublenat<br>DBName sofia_reg_doublenat<br>Dialplan XML<br>RTP-IP 192.168.1.117<br>Ext-RTP-IP stun:stun.freeswitch.org<br>SIP-IP 192.168.1.117<br>Ext-SIP-IP 24.67.78.200<br>URL <a href="sip:mod_sofia@24.67.78.200:5090">sip:mod_sofia@24.67.78.200:5090</a><br>BIND-URL <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 local_stream://moh<br>CODECS PCMU,PCMA,GSM<br>TEL-EVENT 101<br>CNG 13<br>SESSION-TO 0<br>MAX-DIALOG 0</font></span></div> <div> </div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">Registrations:<br>=================================================================================================<br>Call-ID MGQ0YmQyYmMxNmNmYTkyYzA4MTVjNTNjMDFkYjM4YzI.<br>User <a href="mailto:1001@24.67.78.200">1001@24.67.78.200</a><br>Contact "FreeSwitch" <<a href="sip:1001@192.168.1.1:23740;rinstance=5ea23586706cd62a">sip:1001@192.168.1.1:23740;rinstance=5ea23586706cd62a</a>>;nat<br>Agent X-Lite release 1100l stamp 47546<br>Status Registered(AUTO-NAT)(unknown) EXP(2008-07-11 12:44:22)</font></span></div> <div> </div> <div><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">=================================================================================================<br></font></span></div> <div> </div> <div> </div> <div class="Section1"> <div align="left"><span class="125180118-11072008"><font face="Tahoma" color="#0000ff" size="2">Jair Santos</font></span></div> <div><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> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<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> </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> and have created the profile like:</font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"><!-- <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --><br><profile name="external"><br> <!-- This profile is only for outbound registrations to providers --><br> <gateways><br> <X-PRE-PROCESS cmd="include" data="external/*.xml"/><br> </gateways></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"> <aliases><br> <alias name="outbound"/><br> </aliases></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"> <domains><br> <domain name="$${domain}" parse="true"/><br> </domains></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"> <settings><br> <param name="debug" value="0"/><br> <param name="force-register-domain" value="$${domain}"/><br> <param name="apply-nat-acl" value="rfc1918"/><br> <param name="sip-trace" value="no"/><br> <param name="rfc2833-pt" value="101"/><br> <param name="sip-port" value="5090"/><br> <param name="dialplan" value="XML"/><br> <param name="context" value="public"/><br> <param name="dtmf-duration" value="100"/><br> <param name="codec-prefs" value="$${outbound_codec_prefs}"/><br> <param name="hold-music" value="$${hold_music}"/><br> <param name="use-rtp-timer" value="true"/><br> <param name="rtp-timer-name" value="soft"/><br> <param name="manage-presence" value="false"/><br> <param name="aggressive-nat-detection" value="true"/><br> <param name="inbound-codec-negotiation" value="generous"/><br> <param name="nonce-ttl" value="60"/><br> <param name="auth-calls" value="false"/><br> <param name="rtp-timeout-sec" value="1800"/><br> <param name="rtp-ip" value="$${local_ip_v4}"/><br> <param name="sip-ip" value="$${local_ip_v4}"/><br> <param name="ext-rtp-ip" value="$${external_rtp_ip}"/><br> <param name="ext-sip-ip" value="$${external_sip_ip}"/><br> <param name="rtp-timeout-sec" value="300"/><br> <param name="rtp-hold-timeout-sec" value="1800"/><br> </settings><br></profile><br></font></span></p><p><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2">In the phone I am using the {external IP} :5090. 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"> </span><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"> 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><br class="webkit-block-placeholder"> </div> <div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"></font></span><br class="webkit-block-placeholder"> </div> <div><span class="859531016-11072008"><font face="Tahoma" color="#0000ff" size="2"></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><br class="webkit-block-placeholder"> </div> <div><font face="Tahoma" color="#0000ff" size="2"></font><br class="webkit-block-placeholder"> </div></font></div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008"></span></font> </div> <div><font face="Tahoma" color="#0000ff" size="2"><span class="859531016-11072008"></span></font> </div></blockquote></div>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div><br> <div apple-content-edited="true"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; 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></blockquote></div>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><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="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; 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></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>