<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY
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>
<P class=MsoNormal><FONT face=Tahoma color=#0000ff
size=2></FONT> </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
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <B>On Behalf Of
</B>Brian West<BR><B>Sent:</B> Friday, July 11, 2008 11:17 AM<BR><B>To:</B>
freeswitch-users@lists.freeswitch.org<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>
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> </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>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="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></BODY></HTML>