I’m new to Asterisk and I’m trying to set a communication between two Asterisk System (ubuntu based).
When I call #2 from #1 i get this kind of messages:
#1:call rejected no authority found
#2: who was trying to reach 9@
I think (but not sure) the problem is in iax.conf
My current config is following
**** #1 IAX.CONF *****
[togw1]
host=192.168.0.200
type=user
username=togw1
secret=pwdgw1
context=ingresso
[togw2]
type=peer
username=gw2
secret=pwdgw2
host=192.168.1.201
mask=255.255.255.0
context=uscita
**** #1 EXTENSIONS.CONF *****
[ingresso]
exten => 9,1,Dial(SIP/101)
exten => 9,1,hangup
[uscita]
exten => 9,1,Dial(IAX2/togw2/9)
exten => 9,1,hangup
**** #2 IAX.CONF *****
[togw2]
host=192.168.0.201
type=user
username=togw2
secret=pwdgw2
context=ingresso
[togw1]
type=peer
username=gw1
secret=pwdgw1
host=192.168.1.200
mask=255.255.255.0
context=uscita
**** #2 EXTENSIONS.CONF *****
[ingresso]
exten => 9,1,Dial(SIP/103)
exten => 9,1,hangup
[uscita]
exten => 9,1,Dial(IAX2/togw1/9)
exten => 9,1,hangup
Any suggestion?
Thks in advance!