<!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><!-- Converted from text/plain format -->
<P><FONT size=2>Hi ,<BR><BR>I am strugling to make two phones to make calls. I 
'll appreciate information about the configs that I am listing below. 
<BR><BR><STRONG>1s phone</STRONG> - Is an internat phone(behind NAT). This one 
was working before. It was able to make calls to PSTN and to another 
&nbsp;extension.<BR><BR>The config is like<BR><BR>Sip server address: 
192.168.1.117<BR>Sip user id : 1000<BR><BR><STRONG>2nd phone</STRONG> - It is 
external the of the Network.<BR><BR><BR>The config is like :<BR>Username : 
1001<BR>Domain 24.67.78.200:5060<BR><BR><BR>Both are registering in FS. I cannot 
call between them.<BR><BR><STRONG>When I try to make PSTN&nbsp; calls using 
external phone&nbsp; I get .<BR></STRONG><BR><BR>2008-07-15 10:45:34 [NOTICE] 
switch_channel.c:533 switch_channel_set_name() New Channel 
sofia/internal2/1001@24.67.78.200:5060 
[58e39d4a-e78f-4c96-8f43-3e969704d9e1]<BR>2008-07-15 10:45:34 [INFO] 
mod_dialplan_xml.c:222 dialplan_hunt() Processing 
FreeSwitch-&gt;12508606894@public<BR>2008-07-15 10:45:34 [ERR] mod_sofia.c:1713 
sofia_outgoing_channel() Invalid Gateway<BR>2008-07-15 10:45:34 [NOTICE] 
mod_sofia.c:1904 sofia_outgoing_channel() Close Channel N/A 
[CS_NEW]<BR>2008-07-15 10:45:34 [ERR] switch_ivr_originate.c:823 
switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: 
[INVALID_NUMBER_FORMAT]<BR>2008-07-15 10:45:34 [INFO] mod_dptools.c:1797 
audio_bridge_function() Originate Failed.&nbsp; Cause: 
INVALID_NUMBER_FORMAT<BR>2008-07-15 10:45:34 [NOTICE] mod_dptools.c:1824 
audio_bridge_function() Hangup sofia/internal2/1001@24.67.78.200:5060 
[CS_EXECUTE] [INVALID_NUMBER_FORMAT]<BR>2008-07-15 10:45:34 [NOTICE] 
switch_core_session.c:753 switch_core_session_thread() Session 17 
(sofia/internal2/1001@24.67.78.200:5060) Ended<BR>2008-07-15 10:45:34 [NOTICE] 
switch_core_session.c:755 switch_core_session_thread() Close Channel 
sofia/internal2/1001@24.67.78.200:5060 [CS_HANGUP]<BR><BR><BR><FONT 
size=3><STRONG>Please check the settings that I 
have.<BR></STRONG><BR></FONT><STRONG>On 
/conf/dialplan/extensions</STRONG><BR></FONT><FONT size=2>teste.xml</P>
<P><FONT face=Tahoma color=#0000ff></FONT><FONT face=Tahoma 
color=#0000ff></FONT><BR>&lt;extension name="teste"&gt;<BR>&nbsp;&nbsp; 
&lt;condition field="destination_number" 
expression="^(\d+)$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--- The % 
behind the username tells FS to lookup the user in it's local sip_registration 
database --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
application="bridge" data="sofia/gateway/inphonex/$0"/&gt;<BR>&nbsp;&nbsp; 
&lt;/condition&gt;<BR>&nbsp;&lt;/extension&gt;<BR><BR><BR><STRONG>On 
conf/sip_profiles</STRONG></FONT></P>
<P><FONT size=2><STRONG>internal2.xml</STRONG></FONT></P>
<P><FONT size=2><BR><BR>&lt;!-- <A 
href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</A> 
--&gt;<BR>&lt;profile name="internal2"&gt;<BR>&nbsp; &lt;!-- This profile is 
only for outbound registrations to providers --&gt;<BR>&nbsp; 
&lt;gateways&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;X-PRE-PROCESS cmd="include" 
data="external/*.xml"/&gt;<BR>&nbsp; &lt;/gateways&gt;<BR><BR>&nbsp; 
&lt;aliases&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;alias name="internal2"/&gt;<BR>&nbsp; 
&lt;/aliases&gt;<BR><BR>&nbsp; &lt;domains&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;domain 
name="$${domain}" parse="true"/&gt;<BR>&nbsp; &lt;/domains&gt;<BR><BR>&nbsp; 
&lt;settings&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="debug" 
value="0"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-trace" 
value="no"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rfc2833-pt" 
value="101"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-port" 
value="5060"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="dialplan" 
value="XML"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="context" 
value="public"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="dtmf-duration" 
value="100"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="codec-prefs" 
value="$${outbound_codec_prefs}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="hold-music" value="$${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="use-rtp-timer" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="rtp-timer-name" value="soft"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="manage-presence" value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="aggressive-nat-detection" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;param name="inbound-codec-negotiation" 
value="generous"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="nonce-ttl" 
value="60"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="auth-calls" 
value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-timeout-sec" 
value="1800"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-ip" 
value="$${local_ip_v4}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-ip" 
value="$${local_ip_v4}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="ext-rtp-ip" 
value="24.67.78.200"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="ext-sip-ip" 
value="24.67.78.200"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-timeout-sec" 
value="300"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-hold-timeout-sec" 
value="1800"/&gt;<BR>&nbsp; &lt;/settings&gt;<BR>&lt;/profile&gt;<BR></P></FONT>
<DIV><FONT size=2><STRONG>doublenat.xml</STRONG></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff>&lt;!-- <A 
href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</A> 
--&gt;<BR>&lt;profile name="doublenat"&gt;<BR>&nbsp; &lt;!-- This profile is 
only for outbound registrations to providers --&gt;<BR>&nbsp; 
&lt;gateways&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;X-PRE-PROCESS cmd="include" 
data="external/*.xml"/&gt;<BR>&nbsp; &lt;/gateways&gt;</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff>&nbsp; 
&lt;aliases&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;alias name="doublenat"/&gt;<BR>&nbsp; 
&lt;/aliases&gt;</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff>&nbsp; 
&lt;domains&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;domain name="$${domain}" 
parse="true"/&gt;<BR>&nbsp; &lt;/domains&gt;</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff>&nbsp; 
&lt;settings&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="debug" 
value="0"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="force-register-domain" 
value="$${domain}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="apply-nat-acl" 
value="rfc1918"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-trace" 
value="no"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rfc2833-pt" 
value="101"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-port" 
value="5090"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="dialplan" 
value="XML"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="context" 
value="public"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="dtmf-duration" 
value="100"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="codec-prefs" 
value="$${outbound_codec_prefs}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="hold-music" value="$${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="use-rtp-timer" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="rtp-timer-name" value="soft"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="manage-presence" value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="aggressive-nat-detection" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;param name="inbound-codec-negotiation" 
value="generous"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="nonce-ttl" 
value="60"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="auth-calls" 
value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-timeout-sec" 
value="1800"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="rtp-ip" 
value="$${local_ip_v4}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="sip-ip" 
value="$${local_ip_v4}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="ext-rtp-ip" 
value="$${external_rtp_ip}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param 
name="ext-sip-ip" value="$${external_sip_ip}"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;param name="rtp-timeout-sec" value="300"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;param name="rtp-hold-timeout-sec" value="1800"/&gt;<BR>&nbsp; 
&lt;/settings&gt;<BR>&lt;/profile&gt;<BR></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma color=#0000ff></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Tahoma><STRONG>On 
/conf/directory/default<BR></STRONG></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Tahoma>inphonex.xml</DIV></FONT>
<P><FONT face=Tahoma color=#0000ff>&lt;include&gt;<BR>&nbsp;&nbsp; &lt;user 
id="inphonex"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;gateways&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateway 
name="inphonex"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="username" 
value="3462101"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="realm" 
value="sip.varphonex.com"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="password" 
value="606545"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="proxy" 
value="sip.varphonex.com"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="register" 
value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="expire-seconds" 
value="3600"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/gateway&gt;<BR>&lt;/gateways&gt;<BR>&lt;params&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;param name="password" value="606545"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/params&gt;<BR>&nbsp;&nbsp; 
&lt;/user&gt;<BR>&lt;/include&gt;<BR></FONT><BR><FONT face=Tahoma 
color=#0000ff>Thank you </FONT></P>
<P><FONT face=Tahoma color=#0000ff>Jair santos</FONT></P></FONT></BODY></HTML>