<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=493530317-29082008><FONT face=Arial
color=#0000ff size=2>Easy.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=493530317-29082008><FONT face=Arial
color=#0000ff size=2>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 class=493530317-29082008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=493530317-29082008></SPAN><FONT face=Arial color=#0000ff
size=2><SPAN class=493530317-29082008>iax.conf</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>[office2]</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>type=friend</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>host=office2</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>disallow=all</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>allow=ulaw</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2> context=internal_office_dialing</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>username=office1</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>secret=mypassword</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2>trunk=yes</FONT></SPAN></DIV>
<DIV><SPAN class=493530317-29082008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=493530317-29082008></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2>C<SPAN
class=493530317-29082008>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
class=493530317-29082008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=493530317-29082008>extensions.conf on
office1.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=493530317-29082008>exten =>
_2XX,1,Dial(IAX2/office2/${EXTEN})</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=493530317-29082008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=493530317-29082008>This
is a simple setup where office1 has the 1XX extension block and office2 has the
2XX block.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=493530317-29082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=493530317-29082008>Tom</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=493530317-29082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Nuno
Marques<BR><B>Sent:</B> Friday, August 29, 2008 11:36 AM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Connecting
two asterisks via IAX<BR></FONT><BR></DIV>
<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></BODY></HTML>