all you need to do is make the configurations mirror each other.
in the example below, all of the endpoints are SIP, but it doesn't matter if
you move the endpoints to another protocol, like Fxs:
on serverA
extesions.conf:
[phones]
include => localphones
include => to_serverB
[localphones]
exten => _11X,1,NoOp()
exten => _11X,n,Dial(SIP/${EXTEN},30)
exten => _11X,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _11X,n,Hangup()
[to_serverB]
exten => _12X,1,NoOp()
exten => _12X,n,Dial(SIP/serverB/${EXTEN})
exten => _12X,n,Hangup()
[from_serverB]
include => localphones
sip.conf:
register => serverA:secret@<ip_of_serverB>/serverB
[serverB]
type=friend
secret=secret
context=from_serverB
host=dynamic
[sets](!)
type=friend
context=phones
host=dynamic
[110](sets)
[111](sets)
[112](sets)
###############
on serverB
extesions.conf
[phones]
include => localphones
include => to_serverA
[localphones]
exten => _11X,1,NoOp()
exten => _11X,n,Dial(SIP/${EXTEN},30)
exten => _11X,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _11X,n,Hangup()
[to_serverA]
exten => _12X,1,NoOp()
exten => _12X,n,Dial(SIP/serverA/${EXTEN})
exten => _12X,n,Hangup()
[from_serverA]
include => localphones
sip.conf:
register => serverB:secret@<ip_of_serverA>/serverA
[serverA]
type=friend
secret=secret
context=from_serverA
host=dynamic
[sets](!)
type=friend
context=phones
host=dynamic
[120](sets)
[121](sets)
[122](sets)
[123](sets)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com on behalf of matheus coppetti
Sent: Tue 4/27/2010 5:27 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Connect 2 asterisks servers
Hi!
I need some help
Well i have this cenario:
1 ip04 running asterisk [A]
1 pc running asterisk [B]
I nedd to make calls from A to B, and B to A. Via sip
The A-B calls are working. Now I need to configure the dial plan to call B-A
either to sip numbers and Fxs.
Anyone can help me?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3429 bytes
Desc: not available
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20100427/1bedff7b/attachment.bin