Hi,
I’m running two Asterisk-servers in the same network (1.4.19 + VoiceOne 0.6.1; fixed IPs) and want to route certain calls from Alice to Bob using IAX. I followed the wiki instructions to set up the servers: http://www.voip-info.org/wiki/view/Asterisk±+dual+servers
Here’s my configuration:
Server A (User)
iax.conf
[obelix]
type = peer
host = obelix
auth = md5
secret = secretword ;redundant when already embedded in Dial string
username = asterisk ;redundant when already embedded in Dial string
permit = 0.0.0.0/0.0.0.0
extensions.conf
##########
[office_obelix]
exten = _6XX,1,Dial(IAX2/asterisk:secretword@obelix/${EXTEN:1},30,r)
exten = _6XX,2,Congestion
Server B (Peer)
iax.conf
[asterisk]
type = user
auth = md5
host = asterisk
username = asterisk
secret = secretword
context = all
permit = 0.0.0.0/0.0.0.0
extensions.conf
##########
[40]
exten = 40,hint,SIP/40
exten = 40,1,AGI(dial.php|entity=151&group=2&extension=40)
Both servers work so far for themselves, I can place calls between the attached phones.
When trying to call from A to B, both consoles don’t show an error, but the phone immediately says “Error on dialing” and I can’t connect.
Do you have any idea how to fix that?
Thanks in advance.