Interconecting 2 asterisks with IAX

hello i’m interconecting 2 asterisks with iax, this is my configuration:

sip users <–SIP–> asterisk1 <–IAX2–> asterisk2 <–SIP–> sip users
100-199 201.231.23.195 201.234.135.7 200-299

The configuration in for making calls from 100 to 200 is:

In asterisk1:

iax.conf:
register => 600:600@201.234.135.7
[600]
username=600
secret=600
type=friend
auth=plaintext
context=default
host=201.234.135.7
trunk=yes

extensions.conf:

exten => _2XX,1,Dial(IAX2/600/${EXTEN},20,r)
exten => _2XX,103,Hangup()

In asterisk 2:

iax.conf:
[600]
username=600
secret=600
type=friend
auth=plaintext
context=default
host=dynamic
trunk=yes

extensions.conf
exten=> _2XX,1,Dial(SIP/${EXTEN},20,r)
exten=> _2XX,103,hangup()

*I only show the configuration for making calls from 1XX to 2XX!!!

That works, but if I don’t put in iax.conf of asterisk1
register => 600:600@201.234.135.7
it’s the same, i try with iax2 show peers in both asterisks but it’s allways empty (with or without “register => 600:600@201.234.135.7”)

I think something is wrong, can you help me??

Hi,

Are your Internet addresses fixed or dynamic?

I see in Asterisk 1 a static IP and in asterisk 2 host=dynamic

sorry posted twice