Iax trunk freepbx/asterisk

Hi all.

I am having some problems connecting 2 server:

  • 1 just asterisk
  • 1 with freepbx (asterisknow)

I created a iax trunk with freepbx, and I can call to asterisk server’s extentions
but I can not call from asterisk to freepbx…

I get this error:

Call rejected by FREEPBX_IP: No authority found
– Hungup ‘IAX2/678-783’

My iax.conf is:

register=> 567:password@freepbx_serverIP

[678]
type=friend
host=dynamic
;trunk=yes
secret=1234
;quelify=yes

extensions.conf

exten=>_1XX,1,Dial(IAX2/678/${EXTEN})

On the freepbx server I created a IAX extension 567
and then created an iax trunk where put user 678 and password in PEER details
the iax_additiona.conf is:

[567]
deny=
secret=password
transfer=no
context=from-internal
host=dynamic
type=friend
port=4569
qualify=yes
allow=all
dial=IAX2/567
accountcode=
mailbox=567@device
permit=0.0.0.0/0.0.0.0
callerid=device <567>
setvar=REALCALLERIDNUM=567

[to-aster]
username=678
type=friend
secret=1234
host=asterisk_IP
context=from-trunk-iax2-to-aster

What can be wrong? or what is best way to connect my asterisk server to the freepbx(asterisknow)

thanks

Hi,
It’s better to establish a iax trunk between two servers.
If you are insteresting,we can chat by email.
My email: michaelbryant81@gmail.com