<div>Hi, Brad:</div>
<div>This is Dan Lan. Thanks I got it working. Yes, I have to use "bridge" to connect to Sofia external trunk.</div>
<div>I will put my configuration here for mail list archive purpose, so other people can refer to this in the future.</div>
<div>1. First, make an extension profile in the dialplan\public folder as following.</div>
<div>2. This dialplan will recognize the incoming IP trunk and bridge the call to second IP trunk</div>
<div>3. The reason I disable DTMF, is that I hear 2 DTMF tone (maybe one in-band, one RFC2833) so I disable one, and it works for me.</div>
<div> </div>
<div><include><br> <extension name="trunkin_to_trunkout"><br> <condition field="network_addr" expression="^xxx\.xxx\.xxx\.xxx$"/> <-- The first Trunk's IP address --><br>
<condition field="destination_number" expression="^(\d+)$"><br> <action application = "set" data="dtmf_type=none"/></div>
<div> <action application="bridge" data="<a href="mailto:sofia/external/$1@xxx.xxx.xxx.xxx%22/">sofia/external/$1@xxx.xxx.xxx.xxx"/</a>> </div>
<div><-- The second Trunk's IP address --></div>
<div> </condition><br> </extension><br></include></div>
<div class="gmail_quote">On Tue, Aug 30, 2011 at 4:10 PM, Brad Mina <span dir="ltr"><<a href="mailto:brad@tech21.com">brad@tech21.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">1. Username and password are manditory in the XML - you don't have to put anything that makes sense, just fill it in with your DID or something and keep register=false and those details will never do anything.<br>
<br>2. bridge would be the proper tool, you might have to mess around with proxy media or make sure proxy_media is off to ensure the data is coming from you directly and not negotiated between providers.<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div class="h5">On Tue, Aug 30, 2011 at 3:57 PM, Dan Lan <span dir="ltr"><<a href="mailto:danlanweb@gmail.com" target="_blank">danlanweb@gmail.com</a>></span> wrote:<br></div></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">
<div>Hi, </div>
<div> </div>
<div>I want to use FS to accept call from SIP_TrunkA and terminate to SIP_TrunkB</div>
<div>Both SIP trunks are using IP authentication, no need for username and password.</div>
<div> </div>
<div>for incoming call (SIP_TrunkA), I have add the IP address of SIP_TrunkA in to acl.conf.xml </div>
<div>
<div><span style="FONT-FAMILY: Arial"><span><node type="allow" cidr="xxx.xxx.xxx.xxx/32"/></span></span></div>
<div><span style="FONT-FAMILY: Arial"><span></span></span> </div>
<div><span style="FONT-FAMILY: Arial"><span>I understand the incoming call will go to the public context, so I think I need to do something here. </span></span></div>
<div><span style="FONT-FAMILY: Arial"><span></span></span> </div>
<div><span style="FONT-FAMILY: Arial"><span>I dont know what to do next.</span></span></div>
<div><span style="FONT-FAMILY: Arial"><span>1. I try to establish a gateway for SIP_TrunkB for my outgoing call, but sofia require me to have the username and password for the trunk. I dont know where to add the SIP_TrunkB in freeswitch, since the provider of SIP_TrunkB only need to recoginize my FS IP address.</span></span></div>
<div><span style="FONT-FAMILY: Arial"><span>2. After I establish SIP_TrunkB, how should I do on public dialplan to route the call from SIP_TrunkA to SIP_TrunkB? should I use "transfer" or "bridge", could I make a dialplan that can route all the call from IP address of A to IP address of B?</span></span></div>
<div><span style="FONT-FAMILY: Arial"><span></span></span> </div>
<div><span style="FONT-FAMILY: Arial"><span>Sorry for the newbie question, I try to look up on wiki but only got partial information for me.</span></span></div>
<div><span style="FONT-FAMILY: Arial"><span></span></span> </div>
<div><span style="FONT-FAMILY: Arial"><span>Any help and any directions or hints are appreciated</span></span></div>
<div><span style="FONT-FAMILY: Arial"><span></span></span> </div><font color="#888888">
<div><span style="FONT-FAMILY: Arial"><span>Dan Lan</span></span></div></font></div><br><br></div></div>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><br></blockquote></div><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><br></blockquote></div><br>