IAX2 and RealTime, Authentification error

Hello,

I use two server : asterisk 13.9.x
I want to redirect a call from the server 1 to server 2.
I use iax2 for redirection.

When configurations are in “iax.conf” it’s OK :

[general]
register =>asterisk1:123@adr1

[asterisk2]
type=peer
context=default
qualify=yes
host=adr1
secret=123

[general]
register => asterisk2:123@adr2

[asterisk1]
type=peer
context=default
qualify=yes
host=adr2
secret=123

but if I use ReelTime, registration is not done

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK    
   Timestamp: 00012ms  SCall: 04462  DCall: 14499 adr2:4569
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: REGREJ 
   Timestamp: 00010ms  SCall: 04462  DCall: 14499 adr2:4569
   CAUSE           : Registration Refused
   CAUSE CODE      : 29

[general]
rtcachefriends=yes
register => asterisk1:123@adr1 
> INSERT INTO iax (name,type,context,qualify,host,secret) VALUES ('asterisk2','peer','default','yes','adr1 ','123');

[general]
rtcachefriends=yes
register => asterisk2:123@adr2
> INSERT INTO iax (name,type,context,qualify,host,secret) VALUES ('asterisk1','peer','default','yes','adr2 ','123');

Odbc working properly (sip is ok), I added the line
“iaxpeers => odbc,asterisk,iax”

Did I miss anything?

Thank you.