Several iax2 conexions problems

Hi,

I have a voip provider connect to a server A on iax2, i can call and recibe calls without problems (Asterisk 1.2.4) then i have another server B that I want to conect to the first one (Asterisk 1.2) to call and recieve from PSTN throw iax2 too.

serverB <==iax2/friend==> server A <==iax2/user,peer==> VOIP prov

my problem are, only can dial outside thow server A, but i cant recieve the call from server A, the error describ at the end.

my configs are:

Server A
iax
;;;;;; PRov conexion
[rodrigo]
type=peer
host=ipProv
secret=secret1
qualify=yes

[gonzalo]
type=user
secret=secret1
context=entrada
host=dynamic
qualify=yes

;;;; conection between servers

[hermes]
type=friend
secret=123
context=salida
host=172.31.1.65
qualify=yes

extension.conf

[salida]
exten => _XXX,1,Dial(SIP/${EXTEN},20)
exten => _XXXXXXX,1,Dial(IAX2/rodrigo/*2302${EXTEN})

[entrada]
exten => _024382298,1,Dial(IAX2/hermes/100,60)

the server B have amportal install, but the iax_addtional.conf is:

[hermes]
type=friend
secret=123
qualify=yes
host=172.31.1.201
context=from-pstn

the sip_add.conf is:

OUT_1 = IAX2/hermes

exten => _${DIAL_OUT_1}.,1,Macro(dialout,1,${EXTEN})

the error it’s weird…

Feb 20 12:33:14 NOTICE[13238]: chan_iax2.c:7189 socket_read: Host IPPROV failed to authenticate as hermes
Tx-Frame Retry[000] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
Timestamp: 00024ms SCall: 00003 DCall: 00001 [IPPROV:4569]
CAUSE : No authority found
CAUSE CODE : 50

why uses IPPROV?? it should be use the server B IP (172.31.1.65). so obviosly doesnt work!!!
can you help me?? thanks!!!

What does ipProv resolve to on the server?