Thanks Eliot, It works.<br><br><div class="gmail_quote">2009/10/27 Eliot Gable <span dir="ltr">&lt;<a href="mailto:egable%2Bfreeswitch@gmail.com">egable+freeswitch@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Try setting ext-rtp-ip and ext-sip-ip on both profiles.<br>
<div><div></div><div class="h5"><br>
On Tue, Oct 27, 2009 at 4:49 AM, Lei Tang &lt;<a href="mailto:lei.tlfly@gmail.com">lei.tlfly@gmail.com</a>&gt; wrote:<br>
&gt; Hi all, I run FS on a machine with two net interface, each interface has a<br>
&gt; ip addr, one of the them connect to public network(has ip addr A), the<br>
&gt; other  connect to a private network(has ip addr B), FS server as a SIP<br>
&gt; server for public through A, all outbound call will bridge to a softswitch<br>
&gt; in private network through B. here is my sofia config file and diaplan<br>
&gt; config:<br>
&gt;<br>
&gt; sofia internal.xml<br>
&gt; ....<br>
&gt; &lt;param name=&quot;rtp-ip&quot; value=&quot;A&quot;/&gt;<br>
&gt; &lt;param name=&quot;sip-ip&quot; value=&quot;A&quot;/&gt;<br>
&gt;  ....<br>
&gt;<br>
&gt; sofia external.xml<br>
&gt; ....<br>
&gt; &lt;param name=&quot;rtp-ip&quot; value=&quot;B&quot;/&gt;<br>
&gt; &lt;param name=&quot;sip-ip&quot; value=&quot;B&quot;/&gt;<br>
&gt; ....<br>
&gt;<br>
&gt; dialplan<br>
&gt; ......<br>
&gt; &lt;extension name=&quot;OUTBOUND&quot;&gt;<br>
&gt;     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d+)$&quot;&gt;<br>
&gt;         &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&gt;         &lt;action application=&quot;set&quot;<br>
&gt; data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION&quot;/&gt;<br>
&gt;         &lt;action application=&quot;set&quot;<br>
&gt; data=&quot;effective_caller_id_number=xxxxxxx&quot;/&gt;  &lt;!--here change the caller<br>
&gt; number --&gt;<br>
&gt;         &lt;action application=&quot;bridge&quot;<br>
&gt; data=&quot;sofia/external/${destination_number}@xxxxx&quot;/&gt;<br>
&gt;       &lt;/condition&gt;<br>
&gt;     &lt;/extension&gt;<br>
&gt; .....<br>
&gt;<br>
&gt; then call seq is<br>
&gt; sipAgent --&gt; [internal --&gt;(bridge)--&gt;external] --&gt;softswith<br>
&gt;                           FREESWITCH<br>
&gt;<br>
&gt; the question is, when sipAgent make a outbound call, FS can&#39;t recevie the<br>
&gt; caller&#39;s up audio stream, I traced the SIP packets, found that FS has return<br>
&gt; addr B in SDP when ack the invite request from sipAgent, the ack packet is<br>
&gt; ===============<br>
&gt; SIP/2.0 183 Session Progress<br>
&gt; Via: SIP/2.0/UDP<br>
&gt; xxxxx:12208;branch=z9hG4bK-d8754z-dc750d57652c7c51-1---d8754z-;rport=12208<br>
&gt; From: &quot;1000&quot; &lt;sip:xxxx@A&gt;;tag=cb4d3c4e<br>
&gt; To: &quot;65960581&quot; &lt;sip:xxxx@A&gt;;tag=DtvSc0QX01yKN<br>
&gt; Call-ID: ZTI2NmIwZGZiYzlhOGNkNTdiYWUzMzkzZTMwYzgxZjI.<br>
&gt; CSeq: 2 INVITE<br>
&gt; Contact: &lt;sip:xxxxxx@B:5060;transport=udp&gt;<br>
&gt; User-Agent: FreeSWITCH-mod_sofia/1.0.4-14460<br>
&gt; Accept: application/sdp<br>
&gt; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,<br>
&gt; REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
&gt; Supported: timer, precondition, path, replaces<br>
&gt; Allow-Events: talk, presence, dialog, call-info, sla,<br>
&gt; include-session-description, presence.winfo, message-summary, refer<br>
&gt; Content-Type: application/sdp<br>
&gt; Content-Disposition: session<br>
&gt; Content-Length: 245<br>
&gt;<br>
&gt; v=0<br>
&gt; o=FreeSWITCH 1256598185 1256598186 IN IP4 B   ;&gt;&gt;&gt;&gt;wrong this is the ip addr<br>
&gt; of the adapter connect to the private network<br>
&gt; s=FreeSWITCH<br>
&gt; c=IN IP4 B ;&gt;&gt;&gt;&gt;wrong this is the ip addr of the adapter connect to the<br>
&gt; private network<br>
&gt; t=0 0<br>
&gt; m=audio 31066 RTP/AVP 0 101<br>
&gt; a=rtpmap:0 PCMU/8000<br>
&gt; a=rtpmap:101 telephone-event/8000<br>
&gt; a=fmtp:101 0-16<br>
&gt; a=silenceSupp:off - - - -<br>
&gt; a=ptime:20<br>
&gt; ================<br>
&gt; I think FS should return A in SDP, not the external binding addr (B), does<br>
&gt; somebody known how to solve this problem?<br>
&gt;<br>
&gt; --<br>
&gt; Lei.Tang<br>
&gt; <a href="mailto:lei.tlfly@gmail.com">lei.tlfly@gmail.com</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Eliot Gable<br>
<br>
&quot;We do not inherit the Earth from our ancestors: we borrow it from our<br>
children.&quot; ~David Brower<br>
<br>
&quot;I decided the words were too conservative for me. We&#39;re not borrowing<br>
from our children, we&#39;re stealing from them--and it&#39;s not even<br>
considered to be a crime.&quot; ~David Brower<br>
<br>
&quot;Esse oportet ut vivas, non vivere ut edas.&quot; (Thou shouldst eat to<br>
live; not live to eat.) ~Marcus Tullius Cicero<br>
<br>
_______________________________________________<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" 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><br clear="all"><br>-- <br>Lei.Tang<br><a href="mailto:lei.tlfly@gmail.com">lei.tlfly@gmail.com</a><br>