IAX2 Trunk between Asterisks

Hi all,

I’ m having problems try to to call from an Asterisk server to anther Asterisk server.

I have the two Asterisks correctly registered, but when I try to call I always have “Everyone is busy/congested at this time” message.

 Configuration of Server A:
 iax.conf

[general]

requirecalltoken=no
maxcallnumbers=16382
calltokenoptional=0.0.0.0/0.0.0.0

bindport=4569
bindaddr=0.0.0.0

delayreject=yes
srvlookup=yes
bandwidth=low

disallow = all
allow = alaw:20
allow = ulaw:20
allow = gsm:20

jitterbuffer=no
forcejitterbuffer=no

register => PBXManolo:123456@XXXXXXXXX.com

autokill=yes

; TRUNK

[PBXManolo]
type=friend
secret=123456
host=XXXXXX.com
dtmfmode=rfc2833
canreinvite=no
insecure=port,invite
context=casa
nat=force_rport,comedia

;***********
extension.conf

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no

[casa]
exten => _4XXXX,1,NoOp()
exten => _4XXXX,n,Dial(IAX2/PBXManolo/${EXTEN:1},20)
exten => _4XXXX,n,HangUp()

Configuration of Server B:

iax.conf
[general]

bindport=4569
bindaddr=0.0.0.0

delayreject=yes
srvlookup=yes
language=en
bandwidth=low
disallow = all
allow = ulaw:20
allow = alaw:20
allow = gsm:20
jitterbuffer=no
forcejitterbuffer=no
autokill=yes

[PBXManolo]
type=peer
secret=123456
defaultuser=PBXManolo
host=dynamic
dtmfmode=rfc2833
canreinvite=no
insecure=port,invite
context=incaming
trunk=yes

extension.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no

[incaming]
exten => 2001,1,Dial(SIP/TelephonePrueba,20)
same => n,Hangup()

;*****************
Information form the Asterisk CLI when Server A call to 2001 extension of Server B.

– Accepting AUTHENTICATED call from 79.157.55.6:
> requested format = alaw,
> requested prefs = (),
> actual format = alaw,
> host prefs = (alaw|ulaw|gsm),
> priority = mine
– Executing [42001@casa:1] NoOp(“IAX2/PCHorus-389”, “”) in new stack
– Executing [42001@casa:2] Dial(“IAX2/PCHorus-389”, “IAX2/PBXManolo/2001,20”) in new stack
– Called IAX2/PBXManolo/2001
– Hungup ‘IAX2/PBXManolo-998’
== Everyone is busy/congested at this time (1:0/0/1)
– Auto fallthrough, channel ‘IAX2/PCHorus-389’ status is ‘CHANUNAVAIL’
– Hungup ‘IAX2/PCHorus-389’

Server A*CLI> iax2 show peer PBXManolo

  • Name : PBXManolo
    Description :
    Secret :
    Context : casa
    Parking lot :
    Mailbox :
    Dynamic : No
    Callnum limit: 0
    Calltoken req: No
    Trunk : No
    Encryption : No
    Callerid : “” <>
    Expire : -1
    ACL : No
    Addr->IP : 84.XXX.XXXX.XXXX Port 4569
    Defaddr->IP : 0.0.0.0 Port 0
    Username :
    Codecs : (gsm|ulaw|alaw)
    Codec Order : (alaw|ulaw|gsm)
    Status : Unmonitored
    Qualify : every 60000ms when OK, every 10000ms when UNREACHABLE (sample smoothing Off)

Some sugestion or data that I can show your to solve the issue?

Thanks in advance,

Manolo Q.