Hi,
I am trying to pass calls between two asterisk servers. I have been succesfully using a provider and a single asterisk server for a while… however I member of staff wants to work from home. So I have built a second asterisk server for them on their linux computer.
I have successfully allowed the home server to make outgoing calls through the office server but when the office server tries to pass calls to the home server is fails:
This is how I have set it up:
Office Server Configs
[code]
In iax.conf - The office server (with a fixed IP address) allows the home to register,
[claire_usa]
type=friend
host=dynamic
username=claire_usa
secret=usahelper
context=internal ; we are going to route claires phones as internal
Extension Config - when someone dial 151 on Office Server it should pass calls to Home Server, but doesn’t
;claire extension routing
exten => 151,1,Dial(IAX2/claire_usa,20,r)
exten => 151,2,VoiceMail(151@internal)
exten => 151,102,VoiceMail(151@internal) ; this is because busy lines goto n+101[/code]
Home Server Configs
[code]iax.conf. Home server registers with office server
register => claire_usa:password@ipaddress
[Server_A]
type=friend
trunk=yes
host=ipaddress
username=claire_usa
secret=usahelper
disallow=all
allow=ulaw
allow=gsm
In Extensions.conf - it sends all calls to office server, everything. Everything in direction works no problem
exten => _.,1,Monitor(wav,${TIMESTAMP}${CALLERIDNUM}-${EXTEN}.wav)
exten => _.,n,Dial(IAX2/Server_A/${EXTEN})
exten => _.,n,Congestion()
exten => _.,n,Busy()[/code]
Am I suppose to register in both direction? I can’t do this as the home server is always changing IP address.
Have I got something wrong with the registering configs? Am I missing some magical setting or password etc?
I am using Asterisk 1.2.x on ubuntu linux on both server,
I would be very gratefull for your comments and help,
Thanks,
James[/b]
