<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>estou com problemas para interligar dois
asterisks..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-- o registro é efetuado nos 2 servidores:
Registered IAX2 to 'ip', who sees us as IP with no messages waiting</FONT></DIV>
<DIV><FONT face=Arial size=2>-- usando IAX2 show peers, estão ok!</FONT></DIV>
<DIV><FONT face=Arial size=2>-- 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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>******************************************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2> -- Registered IAX2 to '208.109.250.105', who
sees us as 200.146.205.77:4569 with no messages waiting</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> -- Executing [7999@default:1]
Dial("SIP/7000-b7e0ff08", "<A
href="mailto:IAX2/server2/6999@default|45|r">IAX2/server2/6999@default|45|r</A>")
in new stack<BR> -- Called <A
href="mailto:interlink/6999@default">interlink/6999@default</A><BR>
-- IAX2/92.242.140.6:4569-10486 is circuit-busy<BR>[Aug 6 15:55:51]
NOTICE[3807]: chan_iax2.c:3108 __auto_congest: Auto-congesting call due to slow
response<BR> -- Hungup
'IAX2/92.242.140.6:4569-10486'<BR> == Everyone is busy/congested at this
time (1:0/1/0)<BR> -- Executing [6999@default:2]
Hangup("SIP/7000-b7e0ff08", "") in new stack<BR> == Spawn extension
(default, 6999, 2) exited non-zero on 'SIP/7000-b7e0ff08'</FONT></DIV>
<DIV><FONT face=Arial
size=2>******************************************************************************************************************************<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Server 1 </FONT></DIV>
<DIV><FONT face=Arial
size=2>####################################################################</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"iax.conf"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>[general]</FONT></DIV>
<DIV> register =>
username:secret@ipserver2</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[server1]</FONT></DIV>
<DIV><FONT face=Arial size=2> type=friend</FONT></DIV>
<DIV><FONT face=Arial size=2> user=meuusuario</FONT></DIV>
<DIV><FONT face=Arial size=2> secret=minhasenha</FONT></DIV>
<DIV><FONT face=Arial size=2> context=default</FONT></DIV>
<DIV><FONT face=Arial size=2> qualify=yes</FONT></DIV>
<DIV><FONT face=Arial size=2> host=dynamic</FONT></DIV>
<DIV><FONT face=Arial size=2> nat=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"sip.conf"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[6000]</FONT></DIV>
<DIV><FONT face=Arial size=2> type=friend</FONT></DIV>
<DIV><FONT face=Arial size=2> user=meuusuario</FONT></DIV>
<DIV><FONT face=Arial size=2> secret=minhasenha</FONT></DIV>
<DIV><FONT face=Arial size=2> context=default</FONT></DIV>
<DIV><FONT face=Arial size=2> host=dynamic</FONT></DIV>
<DIV><FONT face=Arial size=2> qualify=yes</FONT></DIV>
<DIV><FONT face=Arial size=2> disallow=all</FONT></DIV>
<DIV><FONT face=Arial size=2> allow=g729</FONT></DIV>
<DIV><FONT face=Arial size=2> allow=ulaw</FONT></DIV>
<DIV><FONT face=Arial size=2> nat=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"extensions.conf"</FONT></DIV>
<DIV><FONT face=Arial size=2>[default]</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _7XXX,1, dial( <A
href="mailto:IAX2/server1/${EXTEN}@default">IAX2/server1/${EXTEN}@default</A>,
45, r )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _7XXX,2,
hangup</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _6XXX,1, dial(
SIP/${EXTEN},45,r )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _6</FONT><FONT
face=Arial size=2>XXX,2, hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[iax-in]</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => s,1, dial(
SIP/${EXTEN}, 45, R )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => s,2,
hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Server 2 </FONT></DIV>
<DIV><FONT face=Arial
size=2>####################################################################</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"iax.conf"</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>[general]</FONT></DIV>
<DIV> register =>
username:secret@ipserver1</DIV></FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[server2]</FONT></DIV>
<DIV><FONT face=Arial size=2> type=friend</FONT></DIV>
<DIV><FONT face=Arial size=2> user=meuusuario</FONT></DIV>
<DIV><FONT face=Arial size=2> secret=minhasenha</FONT></DIV>
<DIV><FONT face=Arial size=2> context=default</FONT></DIV>
<DIV><FONT face=Arial size=2> qualify=yes</FONT></DIV>
<DIV><FONT face=Arial size=2> host=dynamic</FONT></DIV>
<DIV><FONT face=Arial size=2> nat=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"sip.conf"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[7000]</FONT></DIV>
<DIV><FONT face=Arial size=2> type=friend</FONT></DIV>
<DIV><FONT face=Arial size=2> user=meuusuario</FONT></DIV>
<DIV><FONT face=Arial size=2> secret=minhasenha</FONT></DIV>
<DIV><FONT face=Arial size=2> context=default</FONT></DIV>
<DIV><FONT face=Arial size=2> host=dynamic</FONT></DIV>
<DIV><FONT face=Arial size=2> qualify=yes</FONT></DIV>
<DIV><FONT face=Arial size=2> disallow=all</FONT></DIV>
<DIV><FONT face=Arial size=2> allow=g729</FONT></DIV>
<DIV><FONT face=Arial size=2> allow=ulaw</FONT></DIV>
<DIV><FONT face=Arial size=2> nat=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"extensions.conf"</FONT></DIV>
<DIV><FONT face=Arial size=2>[default]</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _6XXX,1, dial( <A
href="mailto:IAX2/server1/$%7BEXTEN%7D@default">IAX2/server1/${EXTEN}@default</A>,
45, r )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _6XXX,2,
hangup</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _7XXX,1, dial(
SIP/${EXTEN},45,r )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => _7</FONT><FONT
face=Arial size=2>XXX,2, hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[iax-in]</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => s,1, dial(
SIP/${EXTEN}, 45, R )</FONT></DIV>
<DIV><FONT face=Arial size=2> exten => s,2,
hangup</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>