[asterisk-users] Best way ro run 2 or more asterisk servers?
Landy Landy
landysaccount at yahoo.com
Tue Dec 15 18:09:24 CST 2009
I'm trying to get two server communicate with each other and call from one to the other but, I'm having a lot of problems.
I tried to create a iax trunk between the two:
At the server:
[client]
type=friend
username=asterisk2
authuser=asterisk2
fromuser=asterisk2
secret=sssssss
auth=md5
context=from_client
;peercontext=from_asterisk
host=172.16.0.11
trunk=yes
qualify=yes
iax2 show peers
Name/Username Host Mask Port Status
client/asterisk 172.16.0.11 (S) 255.255.255.255 4569 (T) (E) OK (3 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
extensions.conf
[to_client]
exten => _3XX,1,Verbose("..... To Asterisk2 Server .....")
exten => _3XX,n,Dial(IAX2/${EXTEN}@client)
exten => _3XX,n,Hangup()
[from_client]
include => local-dial
At the client:
[server]
type=friend
host=172.16.0.3
username=asterisk
authuser=asterisk
fromuser=asterisk
secret=xxxxxxx
context=from_server
trunk=yes
auth=md5
qualify=yes
iax2 show peers
Name/Username Host Mask Port Status
server/asterisk 172.16.0.3 (S) 255.255.255.255 4569 (T) (E) OK (3 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
extensions.conf
[from_server]
include => local-dial
[to_server]
exten => _5XXX,1,Verbose("..... Trying to contact ${EXTEN:1} @ asterisk .....")
exten => _5XXX,n,Dial(IAX2/${EXTEN}@server)
exten => _5XXX,n,Hangup
According to some reading, I do NOT need to register neither one.
When I try to call from one end to the other I get:
[Dec 15 03:06:04] NOTICE[4265]: chan_iax2.c:10338 socket_process: Host 172.16.0.3 failed to authenticate as 300
Please help.
Thanks.
More information about the asterisk-users
mailing list