Trunking between Two Server through IAX

Hi,

I am trying to connect two server through IAX Trunking. But, Unable to success. Please help me

Let me explain the thing which I did.

I have done the IAX.conf changes in Server A

[general]
autokill=yes

register => toronto:welcome@192.140.30.3

[osaka]
type=friend
host=dynamic
trunk=yes
secret=welcome
context=incoming_osaka

I have done the follwoing things on server B

[general]
autokill=yes

register => osaka:welcome@192.140.30.4

[toronto]
type=friend
host=dynamic
trunk=yes
secret=welcome
context=incoming_toronto

I am getting the following error on Asterisk console…

Host dnsmgr Username Perceived Refresh State
192.140.30.3:4569 N toronto 60 Rejected

Host dnsmgr Username Perceived Refresh State
192.140.30.4:4569 N osaka 60 Rejected

I don’t know what is the mistake I did.

If someone guide me than it would be the best or show me the correct configuration for the IAX Trunking between 2 Asterisk server.

Thanks in advance.

Regards,

Ketan

Hi Ketan,
try without using the register statements. It will work