IAX trunk two Asterisk

Home » Asterisk Users » IAX trunk two Asterisk
Asterisk Users No Comments

Hello,

maybe is a stupid question but I’d like know if I’m doing some mistake on
IAX trunk configuration.

I have two Asterisk (1.6.2.14) with this configuration:

A (iax.conf)

register => serverb:password@192.168.142.246

[servera]
type=friend
host=dynamic
trunk=yes
secret=password
context=phones
deny=0.0.0.0/0.0.0.0
permit=192.168.142.246/255.255.255.255
qualify=yes

B (iax.conf)

register => servera:password@192.168.159.4

[serverb]
type=friend
host=dynamic
trunk=yes
secret=password
context=phones
deny=0.0.0.0/0.0.0.0
permit=192.168.159.4/255.255.255.255
qualify=yes

The password it’s the same on two server.

If i use two differents passwords (one for servera and one for serverb), the
trunk don’t work (Call rejected No authority found)

On the iax.conf general I have:

calltokenoptional=0.0.0.0/0.0.0.0

Am I doing wrong something?

Thank you for support

Best Regards.

– Bakko