<div dir="ltr">Thanks Tom<br><br> I'm going to try that.<br> Regards<br><br> Nuno<br><br><div class="gmail_quote">2008/8/29 Tom Moore <span dir="ltr"><<a href="mailto:tommym2006@gmail.com">tommym2006@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Easy.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Just create a peer in each office that connects to the
other, basic example on server 1.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span></span><font color="#0000ff" size="2" face="Arial"><span>iax.conf</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><span><font color="#0000ff" size="2" face="Arial">[office2]</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">type=friend</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">host=office2</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">disallow=all</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">allow=ulaw</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"> context=internal_office_dialing</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">username=office1</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">secret=mypassword</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">trunk=yes</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span></span><font face="Arial"><font color="#0000ff"><font size="2">C<span>reate a peer on the office2 server to point back at
office1 in the same way.</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span>extensions.conf on
office1.</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span>exten =>
_2XX,1,Dial(IAX2/office2/${EXTEN})</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span></span></font></font></font> </div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><font color="#0000ff" size="2" face="Arial"><span>This
is a simple setup where office1 has the 1XX extension block and office2 has the
2XX block.</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div><font color="#0000ff" size="2" face="Arial"><span>Tom</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><br></div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Nuno
Marques<br><b>Sent:</b> Friday, August 29, 2008 11:36 AM<br><b>To:</b>
<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br><b>Subject:</b> [asterisk-users] Connecting
two asterisks via IAX<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>
<div dir="ltr">
<div class="gmail_quote">Hi,<br>
<div dir="ltr"><br> I need to connect 2 asterisks in 2 different
countries (A and B) for one company so it's possible to make connections between
the 2 offices.<br> For connectivity reasons (NAT traversal) i want
to connect the 2 asterisk with IAX so that when a user on office A connects via
SIP to user on office B the call is going trought IAX channel.<br>
Can anyone give me an ideia how to accomplish this?<br> <br><br>the
schema:<br><br>
(via
SIP)
(via
IAX)
(via SIP)<br>Office A <-------------> Asterisk A
<-------------------> Asterisk B <-----------------> Office
B<br><br><br> Thanks in
advance,<br><br>
Nuno<br><br></div></div><br></div></div></div></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>