[AsteriskBrasil] interligar servidores

Sebastiao Rocha sebastiaorocha em interlinksistemas.com.br
Quarta Agosto 6 16:03:43 BRT 2008


estou com problemas para interligar dois asterisks..

fiz o seguinte, um servidor possui ramais 7xxx o outro ramais 6xxx e quero permitir ligações de um server pro outro, então tentei interligar os servidores com o plano de discagem e ramais conforme exemplo abaixo.

-- o registro é efetuado nos 2 servidores: Registered IAX2 to 'ip', who sees us as IP with no messages waiting
-- usando IAX2 show peers, estão ok!
-- ao ligar pro outro server, a ligação não é estabelecida, aparentemente por demorar demais a resposta, no entanto tenho 35ms entre os servers. Segue o log e config samples.

******************************************************************************************************************************
 -- Registered IAX2 to '208.109.250.105', who sees us as 200.146.205.77:4569 with no messages waiting

    -- Executing [7999 em default:1] Dial("SIP/7000-b7e0ff08", "IAX2/server2/6999 em default|45|r") in new stack
    -- Called interlink/6999 em default
    -- IAX2/92.242.140.6:4569-10486 is circuit-busy
[Aug  6 15:55:51] NOTICE[3807]: chan_iax2.c:3108 __auto_congest: Auto-congesting call due to slow response
    -- Hungup 'IAX2/92.242.140.6:4569-10486'
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [6999 em default:2] Hangup("SIP/7000-b7e0ff08", "") in new stack
  == Spawn extension (default, 6999, 2) exited non-zero on 'SIP/7000-b7e0ff08'
******************************************************************************************************************************


Server 1 
####################################################################

"iax.conf"

[general]
    register => username:secret em ipserver2

[server1]
    type=friend
    user=meuusuario
    secret=minhasenha
    context=default
    qualify=yes
    host=dynamic
    nat=no

"sip.conf"

[6000]
    type=friend
    user=meuusuario
    secret=minhasenha
    context=default
    host=dynamic
    qualify=yes
    disallow=all
    allow=g729
    allow=ulaw
    nat=no


"extensions.conf"
[default]
    exten => _7XXX,1, dial( IAX2/server1/${EXTEN}@default, 45, r )
    exten => _7XXX,2, hangup
    
    exten => _6XXX,1, dial( SIP/${EXTEN},45,r )
    exten => _6XXX,2, hangup

[iax-in]
    exten => s,1, dial( SIP/${EXTEN}, 45, R )
    exten => s,2, hangup


Server 2 
####################################################################

"iax.conf"
[general]
    register => username:secret em ipserver1

[server2]
    type=friend
    user=meuusuario
    secret=minhasenha
    context=default
    qualify=yes
    host=dynamic
    nat=no

"sip.conf"

[7000]
    type=friend
    user=meuusuario
    secret=minhasenha
    context=default
    host=dynamic
    qualify=yes
    disallow=all
    allow=g729
    allow=ulaw
    nat=no


"extensions.conf"
[default]
    exten => _6XXX,1, dial( IAX2/server1/${EXTEN}@default, 45, r )
    exten => _6XXX,2, hangup
    
    exten => _7XXX,1, dial( SIP/${EXTEN},45,r )
    exten => _7XXX,2, hangup

[iax-in]
    exten => s,1, dial( SIP/${EXTEN}, 45, R )
    exten => s,2, hangup

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20080806/b2133a95/attachment-0001.htm 


More information about the AsteriskBrasil mailing list