<div class="gmail_quote"><div>&lt;profile name=&quot;external&quot;&gt;</div><div>  &lt;gateways&gt;</div><div>    &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;external/*.xml&quot;/&gt;</div><div>  &lt;/gateways&gt;</div>

<div><br></div><div>
  &lt;aliases&gt;</div><div>    &lt;!--                                                                                                                                                            </div><div>    &lt;alias name=&quot;outbound&quot;/&gt;                                                                                                                                        </div>


<div>    &lt;alias name=&quot;nat&quot;/&gt;                                                                                                                                             </div><div>    --&gt;</div><div>  &lt;/aliases&gt;</div>


<div><br></div><div>  &lt;domains&gt;</div><div>    &lt;domain name=&quot;all&quot; alias=&quot;false&quot; parse=&quot;true&quot;/&gt;</div><div>  &lt;/domains&gt;</div><div><br></div><div>  &lt;settings&gt;</div><div>    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;</div>


<div>    &lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;</div><div>    &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;</div><div>    &lt;param name=&quot;sip-port&quot; value=&quot;$${external_sip_port}&quot;/&gt;</div>


<div>    &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div><div>    &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>    &lt;param name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;</div>


<div>    &lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;</div><div>    &lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${outbound_codec_prefs}&quot;/&gt;</div><div>


    &lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;</div><div>    &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;</div><div>    &lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;</div>


<div>    &lt;param name=&quot;manage-presence&quot; value=&quot;false&quot;/&gt;</div><div>    &lt;!--&lt;param name=&quot;aggressive-nat-detection&quot; value=&quot;true&quot;/&gt;--&gt;</div><div>    &lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;</div>


<div>    &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;</div><div>    &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;</div><div>    &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;</div>


<div>    &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;</div><div>    &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;auto-nat&quot;/&gt;</div><div>    &lt;param name=&quot;ext-sip-ip&quot; value=&quot;auto-nat&quot;/&gt;</div>


<div>    &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;</div><div>    &lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;</div><div>    &lt;param name=&quot;tls&quot; value=&quot;$${external_ssl_enable}&quot;/&gt;</div>


<div>    &lt;param name=&quot;tls-bind-params&quot; value=&quot;transport=tls&quot;/&gt;</div><div>    &lt;param name=&quot;tls-sip-port&quot; value=&quot;$${external_tls_port}&quot;/&gt;</div><div>    &lt;param name=&quot;tls-cert-dir&quot; value=&quot;$${external_ssl_dir}&quot;/&gt;</div>


<div>    &lt;param name=&quot;tls-version&quot; value=&quot;$${sip_tls_version}&quot;/&gt;</div><div><br></div><div>  &lt;/settings&gt;</div><div>&lt;/profile&gt;</div><div class="im"><div><br></div><br>Thank you,<br>Bryan Lemon<br>

<a href="tel:%28302%29%20648-2747" value="+13026482747" target="_blank">(302) 648-2747</a><br>
<br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Tue, Aug 16, 2011 at 13:03, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bryan,<br>
        Can you provide the sofia profile xml?<br>
<br>
/b<br>
<div><br>
On Aug 16, 2011, at 8:46 AM, Bryan Lemon wrote:<br>
<br>
&gt;&gt; From what I am seeing, freeswitch is not honoring the ext-*-ip variables in<br>
&gt; the invite messages. Using the following command entered on<br>
&gt; fs_cli: originate<br>
&gt; {origination_caller_id_name=&#39;Something.com&#39;,origination_caller_id_number=5555551212,userid=7,rowid=ROWID,phonenumber=5555551212,initial=2,prompt=0,thankyou=0,whattosay=&#39;&#39;,ignore_early_media=true}sofia/gateway/didforsale/15555551212<br>



&gt; &amp;javascript(somejavascript.js), the invite message is below. Shouldn&#39;t the<br>
&gt; instances of 10.0.10.144 be replaced with the ext-*-ip of 204.111.*.*? This<br>
&gt; is causing the rtp packets to be sent to the incorrect location, and<br>
&gt; resulting in 1-way audio.<br>
&gt;<br>
&gt;<br>
&gt; send 1089 bytes to udp/[209.216.*.*]:5060 at 05:56:00.276988:<br>
&gt;   ------------------------------------------------------------------------<br>
</div>&gt;   INVITE sip:<a href="tel:13044150838" value="+13044150838" target="_blank">13044150838</a>&lt;<a href="https://www.google.com/voice/m/caller?number=+13044150838" target="_blank">https://www.google.com/voice/m/caller?number=+13044150838</a>&gt;@209.216.*.*<br>



<div><div></div><div>&gt; SIP/2.0<br>
&gt;   Via: SIP/2.0/UDP 10.0.10.144:5080;rport;branch=z9hG4bKH0e2DU1Bc2KgD<br>
&gt;   Max-Forwards: 69<br>
&gt;   From: &quot;SomeName&quot; &lt;sip:bryan_bryanlemon_com@209.216.<br>
&gt; *.*;transport=udp&gt;;tag=HpU27XSQHmX1g<br>
&gt;   To: &lt;sip:15555551212@209.216.*.*&gt;<br>
&gt;   Call-ID: 425293d9-426f-122f-8fb5-f04da2846e9a<br>
&gt;   CSeq: 16401016 INVITE<br>
&gt;   Contact: &lt;sip:gw+didforsale@204.111.*.*:5080;transport=udp;gw=didforsale&gt;<br>
&gt;   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-decfdbb 2011-08-11 14-15-26<br>
&gt; -0500<br>
&gt;   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,<br>
&gt; REGISTER, REFER, NOTIFY<br>
&gt;   Supported: timer, precondition, path, replaces<br>
&gt;   Allow-Events: talk, hold, refer<br>
&gt;   Content-Type: application/sdp<br>
&gt;   Content-Disposition: session<br>
&gt;   Content-Length: 203<br>
&gt;   X-FS-Support: update_display<br>
&gt;   Remote-Party-ID: &quot;SomeName&quot; &lt;<a href="mailto:sip%3A15555551212@10.0.10.144" target="_blank">sip:15555551212@10.0.10.144</a><br>
&gt;&gt; ;party=calling;screen=yes;privacy=off<br>
&gt;<br>
&gt;   v=0<br>
&gt;   o=FreeSWITCH 1313441448 1313441449 IN IP4 10.0.10.144<br>
&gt;   s=FreeSWITCH<br>
&gt;   c=IN IP4 10.0.10.144<br>
&gt;   t=0 0<br>
&gt;   m=audio 32712 RTP/AVP 8 0 3 101 13<br>
&gt;   a=rtpmap:101 telephone-event/8000<br>
&gt;   a=fmtp:101 0-16<br>
&gt;   a=ptime:20<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; sofia status profile internal<br>
&gt; =================================================================================================<br>
&gt; Name              internal<br>
&gt; Domain Name       N/A<br>
&gt; Auto-NAT          true<br>
&gt; DBName            sofia_reg_internal<br>
&gt; Pres Hosts        10.0.10.144,10.0.10.144<br>
&gt; Dialplan          XML<br>
&gt; Context           public<br>
&gt; Challenge Realm   auto_from<br>
&gt; RTP-IP            10.0.10.144<br>
&gt; Ext-RTP-IP        204.111.*.*<br>
&gt; SIP-IP            10.0.10.144<br>
&gt; Ext-SIP-IP        204.111.*.*<br>
&gt; URL               <a href="http://sip:mod_sofia@10.0.10.144:5060" target="_blank">sip:mod_sofia@10.0.10.144:5060</a><br>
&gt; BIND-URL          <a href="http://sip:mod_sofia@10.0.10.144:5060" target="_blank">sip:mod_sofia@10.0.10.144:5060</a><br>
&gt;<br>
&gt;<br>
&gt; freeswitch@internal&gt; sofia status profile external<br>
&gt; =================================================================================================<br>
&gt; Name              external<br>
&gt; Domain Name       N/A<br>
&gt; Auto-NAT          true<br>
&gt; DBName            sofia_reg_external<br>
&gt; Pres Hosts<br>
&gt; Dialplan          XML<br>
&gt; Context           public<br>
&gt; Challenge Realm   auto_to<br>
&gt; RTP-IP            10.0.10.144<br>
&gt; Ext-RTP-IP        204.111.*.*<br>
&gt; SIP-IP            10.0.10.144<br>
&gt; Ext-SIP-IP        204.111.*.*<br>
&gt; URL               <a href="http://sip:mod_sofia@10.0.10.144:5080" target="_blank">sip:mod_sofia@10.0.10.144:5080</a><br>
&gt; BIND-URL          <a href="http://sip:mod_sofia@10.0.10.144:5080" target="_blank">sip:mod_sofia@10.0.10.144:5080</a><br>
&gt;<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Bryan Lemon<br>
</div></div>&gt; <a href="tel:%28302%29%20648-2747" value="+13026482747" target="_blank">(302) 648-2747</a> &lt;<a href="https://www.google.com/voice/m/caller?number=+13026482747" target="_blank">https://www.google.com/voice/m/caller?number=+13026482747</a>&gt;<br>



&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
</div></div></div><br>