Easy.
Just create a peer in each office that connects to the other, basic example
on server 1.
iax.conf
[office2]
type=friend
host=office2
disallow=all
allow=ulaw
context=internal_office_dialing
username=office1
secret=mypassword
trunk=yes
Create a peer on the office2 server to point back at office1 in the same
way.
extensions.conf on office1.
exten => _2XX,1,Dial(IAX2/office2/${EXTEN})
This is a simple setup where office1 has the 1XX extension block and office2
has the 2XX block.
Tom
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Nuno Marques
Sent: Friday, August 29, 2008 11:36 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Connecting two asterisks via IAX
Hi,
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.
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.
Can anyone give me an ideia how to accomplish this?
the schema:
(via SIP) (via IAX)
(via SIP)
Office A <-------------> Asterisk A <-------------------> Asterisk B
<-----------------> Office B
Thanks in advance,
Nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080829/46ad6cae/attachment.htm