Landy Landy
2009-Dec-15 01:16 UTC
[asterisk-users] Best way ro run 2 or more asterisk servers?
Hello List. I have a question regarding connecting two asterisk servers. I'm trying to learn how asterisk comunicates from server to server. I already have a server running smoothly now, I'm installing another one to test it along side the actual one. I would like to run different scenarios: 1. Have one of the boxes at a different location outside the LAN and have them communicate. 2. Have both boxes on the same physical location with different extensions, for ei. have box 1 serve exts 100 - 200 and box 2 serve exts 300 - 600 and iax2. Box 1 would be connected to a pstn line and box 2 connected to a voip provider. Now, do I need to configure dundi or just have the register option on both boxes? Thanks in advanced for your help.
Landy Landy
2009-Dec-16 00:09 UTC
[asterisk-users] Best way ro run 2 or more asterisk servers?
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.
Landy Landy
2009-Dec-16 06:40 UTC
[asterisk-users] Best way ro run 2 or more asterisk servers?
> Date: Wednesday, December 16, 2009, 1:26 AM > trust both the side giving IP address > in the sip.confI did this in the iax.conf file [client] type=friend username=asterisk2 authuser=asterisk2 fromuser=asterisk2 secret=sssssss auth=md5 context=from_client host=172.16.0.11 trunk=yes qualify=yes for both the client and server do I need it also in the sip.conf?
Lenz Emilitri
2009-Dec-16 07:49 UTC
[asterisk-users] Best way ro run 2 or more asterisk servers?
See if you find this tutorial on IAX peering useful: http://astrecipes.net/index.php?n=204 Thanks l. 2009/12/15 Landy Landy <landysaccount at yahoo.com>> Hello List. > > I have a question regarding connecting two asterisk servers. I'm trying to > learn how asterisk comunicates from server to server. I already have a > server running smoothly now, I'm installing another one to test it along > side the actual one. > > I would like to run different scenarios: > > 1. Have one of the boxes at a different location outside the LAN and have > them communicate. > > 2. Have both boxes on the same physical location with different extensions, > for ei. have box 1 serve exts 100 - 200 and box 2 serve exts 300 - 600 and > iax2. Box 1 would be connected to a pstn line and box 2 connected to a voip > provider. > > Now, do I need to configure dundi or just have the register option on both > boxes? > > Thanks in advanced for your help. > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Loway - home of QueueMetrics - http://queuemetrics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091216/96787a43/attachment.htm