<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Mensagem</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff size=2>Opa!
<SPAN class=099280321-14052007>Tudo funcionando aki, com as confs abaixo (exceto
as entradas "username=***")</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2><SPAN class=099280321-14052007></SPAN></FONT></SPAN><SPAN
class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2>Obrigado, gente, tinha algo errado aki no meu firewall (não sei ainda o
que, depois eu descubro).</FONT></SPAN></DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2>Depois de arreganhar meu firewall pra testar o trunk, ainda não
funcionava. </FONT></SPAN></DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN><SPAN class=099280321-14052007></SPAN><FONT
face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007></SPAN></FONT></FONT></FONT><FONT face=Verdana><FONT
size=2><FONT color=#0000ff><SPAN
class=099280321-14052007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007></SPAN></FONT></FONT></FONT><FONT face=Verdana><FONT
size=2><FONT color=#0000ff><SPAN class=099280321-14052007><FONT>Testei um milhao
de confs diferentes. Quase sem querer descobri a solução. A solução foi abolir
as entradas "username" no iax.conf e tudo
funcionou.</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT>Agora, ficou a dúvida: alguém sabe, então, pra
que serve esse "username"?</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT>Exemplo (baseado nos iax.conf
abaixo)</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007><FONT>Dial(iax2/buteka:senha@200.161.93.240/301@fromiax)
<<<< não funciona!!!!!</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><FONT color=#0000ff><SPAN
class=099280321-14052007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN
class=099280321-14052007>Dial(iax2/cargopress:senha@200.161.93.240/301@fromiax) <<<<
funciona!!!!</SPAN></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN
class=099280321-14052007></SPAN></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN class=099280321-14052007>Por
que?</SPAN></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN
class=099280321-14052007></SPAN></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN class=099280321-14052007>Um
abraço!</SPAN></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN
class=099280321-14052007></SPAN></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Verdana><FONT><FONT color=#0000ff size=2><SPAN
class=099280321-14052007><SPAN
class=099280321-14052007>Eric</SPAN></SPAN></FONT></FONT></FONT></DIV>
<DIV><SPAN class=099280321-14052007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>Minha
topologia:</FONT></DIV></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>ramal1 <> asterisk1
<> firewall1 <> internet <> firewall2 <>
asterisk2 <> ramal2</FONT></DIV>
<DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>Tentei criar o trunk
assim:</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>no
asterisk1:</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>iax.conf</FONT></DIV>
<DIV><FONT face="Courier New" size=2>----------------</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT face="Courier New"
size=2>[general]<BR>bindport=4569
</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>bindaddr=192.168.1.32
<BR>bandwidth=low<BR>disallow=lpc10
</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>jitterbuffer=no<BR>forcejitterbuffer=no<BR>tos=ef</FONT></DIV>
<DIV><FONT face="Courier New" size=2>autokill=yes</FONT></DIV>
<DIV><FONT face="Courier New"
size=2><BR> </DIV></FONT></FONT><FONT size=2></DIV></FONT><FONT
size=2></FONT></DIV>
<DIV><FONT face="Courier New"
size=2>[cargopress]<BR>type=friend<BR>username=buteka<BR>secret=senha</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>auth=plaintext<BR>host=200.XXX.XXX.XXX<BR>context=fromiax<BR>qualify=no<BR>trunk=yes<BR>nat=yes<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>extensions.conf</FONT></DIV>
<DIV><FONT face="Courier New" size=2>------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2>[internal]<BR>exten
=>164,1,Dial(SIP/jobson)<BR>exten
=>132,1,Dial(SIP/anderson)<BR>exten
=>131,1,Dial(SIP/eric)<BR>exten
=>100,1,Dial(SIP/buteka)<BR>exten
=>300,1,Dial(iax2/cargopress/301)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>
<DIV>+++++++++++++++++++++++++++++++++++++</FONT><FONT
face="Courier New" color=#0000ff size=2></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>no
asterisk2</FONT></DIV></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>iax.conf</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2><FONT face="Courier New"
color=#000000>-----------------</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT face="Courier New" color=#000000
size=2>[general]</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000 size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#000000
size=2>bindport=4569<BR>bindaddr=192.168.2.6</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000
size=2>bandwidth=low<BR>disallow=lpc10</FONT></DIV>
<DIV><FONT size=2><FONT face="Courier New"
color=#000000>jitterbuffer=no</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face="Courier New"
color=#000000>tos=ef<BR>forcejitterbuffer=no<BR></FONT></FONT><FONT
size=2><FONT color=#000000><FONT
face="Courier New">autokill=yes<BR></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#000000><FONT
face="Courier New"> </DIV></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face="Courier New" color=#000000
size=2>[vianet]<BR>type=friend<BR>username=groo<BR>secret=senha<BR>auth=plaintext<BR>host=200.XXX.XX.XXX</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000
size=2>context=fromiax<BR>qualify=no<BR>trunk=yes<BR>nat=yes</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000></FONT> </DIV>
<DIV><FONT face="Courier New"
color=#000000>extensions.conf</FONT></DIV>
<DIV><FONT face="Courier New"
color=#000000>-----------------</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000></FONT> </DIV>
<DIV><FONT face="Courier New" color=#000000>[fromiax]<BR>exten =>
301,1,Answer()</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000>exten =>
301,2,SayDigits(${EXTEN})</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000>exten =>
301,3,Hangup()<BR></FONT></DIV>
<DIV> </DIV>
<DIV>Se eu discasse 300, à partir do ramal1, deveria atender, falar o
numero do ramal e desligar, certo?</DIV>
<DIV> </DIV>
<DIV>o comando "iax2 show channels" retorna o seguinte:</DIV>
<DIV> </DIV>
<DIV>*CLI> iax2 show
channels<BR>Channel
Peer
Username ID (Lo/Rem) Seq (Tx/Rx)
Lag Jitter JitBuf
Format<BR>(None)
200.XXX.XXX.XXX (None)
00001/00000 00004/00000 00000ms -0001ms
0000ms unknow<BR>1 active IAX channel<BR>*CLI><BR></DIV>
<DIV>Daí eu deduziri que está ok.. porém </DIV>
<DIV> </DIV>
<DIV>*CLI> iax2 show
registry<BR>Host
dnsmgr Username
Perceived
Refresh State<BR>200.161.16.186:4569
N
buteka
<Unregistered>
60 Timeout<BR>*CLI><BR></DIV>
<DIV>Algum erro notório que eu cometi?</DIV>
<DIV>Alguma dica de debug pra eu achar o erro?</DIV>
<DIV> </DIV>
<DIV>Um abraço!!</DIV>
<DIV><BR> </DIV>
<DIV>Eric</DIV></FONT></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>