IAX issues (Call rejected by "remote IP")

Hi all!

My IAX2 trunk is not working fine. I cant make outgoing calls, but Incoming calls are working perfect…

SIDE A !!

IAX.CONF

[asterisco2]
context=from-internal
secret=admin
type=friend

[Asterisk]     
host=IP SIDE B
username=asterisco1
secret=admin 
type=friend     
insecure=very
allow=all        
auth=md5
context=from-internal    
trunk=yes
EXTENSIONS.CONF

[from-internal]
exten => _5802,1,Dial(IAX2/${EXTEN}@Asterisk)
exten => _5805,1,Dial(SIP/5805,20)

SIDE B !!

[asterisco1]
context=from-internal
secret=admin
type=friend

[Asterisk]
host=IP SIDE A
username=asterisco2
secret=admin
type=friend
insecure=very
allow=all
auth=md5
context=from-internal
trunk=yes

If I call from side A to side B I see this:

-- Executing [5802@from-internal:1] Dial("SIP/5805-081e8a50", "IAX2/5802@Asterisk") in new stack
    -- Called 5802@Asterisk
[Jun 24 08:47:32] WARNING[25346]: chan_iax2.c:7823 socket_process: Call rejected by --IP SIDE B--: No authority found
    -- Hungup 'IAX2/Asterisk-16384'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/5805-081e8a50' status is 'CHANUNAVAIL'

Why?

thanks in advance!

it was my mistake…

I’m sorry, I didn’t see it before…

exten => _5802,1,Dial(IAX2/Asterisk/${EXTEN})