<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">parece erro de codec, veja os formatos
      que voce ta mandando e os que eles aceitam, voce pode ver isso no
      debug<br>
      <br>
      Em 22/05/13 10:41, Ronaldo Toledo escreveu:<br>
    </div>
    <blockquote
cite="mid:CANZVRDtJF6MFrquBAbDZ4tUwg76UUvAGW2jebTTyYL0-4HC7sQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:large">Amigos, com
          as respostas recebidas imaginei que fosse uma quest&atilde;o de ir
          atr&aacute;s de uma vari&aacute;vel que, usada no dialplan, contivesse o
          c&oacute;digo de erro sip. Tentei o HANGUPCAUSE (a vers&atilde;o do meu
          asterisk &eacute; 11.3.0) mas ela&nbsp; estava vazia durante a execu&ccedil;&atilde;o da
          extension failed,1 (estou usando call files).<br>
        </div>
        <div class="gmail_default" style="font-size:large">Tentei usar o
          ${HASH(SIP_CAUSE,${CDR(dstchannel)})} e tamb&eacute;m n&atilde;o funcionou.
          Depois de muito pesquisar descobri que elas se aplicam ao
          Hangup que se segue a um&nbsp; Dial. Tive que mudar minha
          estrat&eacute;gia.<br>
        </div>
        <div class="gmail_default" style="font-size:large">Minha
          aplica&ccedil;&atilde;o previa o envio de uma s&eacute;rie de call files ao
          Asterisk.&nbsp; Prossegui com os call files para que fosse feita
          uma conex&atilde;o fantasma&nbsp; s&oacute; para que o Asterisk, ao executar a
          extens&atilde;o failed do contexto especificado, fosse desviado para
          um outro contexto onde seria feita a&nbsp; liga&ccedil;&atilde;o atrav&eacute;s de Dial&nbsp;
          para o n&uacute;mero passado via vari&aacute;vel no call file.<br>
        </div>
        <div class="gmail_default" style="font-size:large">Bem, a&iacute; veio
          o problema maior. Ao executar o
          Dial(SIP/troncomeuprovedor/numero), invariavelmente recebo as
          mensagens <br>
          [May 22 05:21:35] NOTICE[16975][C-00000436]: chan_sip.c:29464
          sip_request_call: Asked to get a channel of unsupported format
          (nothing) while capability is (gsm|ulaw|alaw|h263|testlaw)<br>
          [May 22 05:21:35] WARNING[16975][C-00000436]: app_dial.c:2437
          dial_exec_full: Unable to create channel of type 'SIP' (cause
          58 - Bearer capability not available)<br>
          <br>
        </div>
        <div class="gmail_default" style="font-size:large">
          N&atilde;o consigo passar deste ponto<br>
        </div>
        <div class="gmail_default" style="font-size:large"><br>
        </div>
        <div class="gmail_default" style="font-size:large">Continuo
          pesquisando via Google o que est&aacute; errado&nbsp; mas se algu&eacute;m j&aacute;
          passou por isso ou sabe a raz&atilde;o, por favor, jogue uma luz no
          assunto.<br>
          <br>
          <br>
        </div>
        <div class="gmail_default" style="font-size:large"><br>
          <br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">Em 21 de maio de 2013 21:59, Ronaldo
          Toledo <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rtmorais@gmail.com" target="_blank">rtmorais@gmail.com</a>&gt;</span>
          escreveu:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_default" style="font-size:large">Fernando
                e Rafael, muito obrigado pelas respostas.<br>
              </div>
              <div class="gmail_default" style="font-size:large">Liguei
                o debug(deveria ter feito isto antes, n&eacute;?) e voil&aacute;: o
                tronco responde 503 (Service Unavailable).<br>
              </div>
              <div class="gmail_default" style="font-size:large">Mais
                uma vez, muito obrigado.<br>
              </div>
              <div class="gmail_default" style="font-size:large">Ronaldo
                Toledo.<br>
                <br>
              </div>
              <div class="gmail_default" style="font-size:large">
                <br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">Em 21 de maio de 2013 21:51,
                Fernando - NextBilling IP Solutions <span dir="ltr">&lt;<a
                    moz-do-not-send="true"
                    href="mailto:fernando@nextbilling.com.br"
                    target="_blank">fernando@nextbilling.com.br</a>&gt;</span>
                escreveu:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div link="#0563C1" vlink="#954F72" lang="PT-BR">
                        <div>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ronaldo.</span></p>
                          <p class="MsoNormal">
                            <span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Nesses
                              casos, geralmente o retorno &eacute; feito pelo
                              seu tronco SIP, ou seja, o Asterisk vai
                              agir de acordo com o retorno que seu
                              tronco SIP informar.</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">J&aacute;
                              vi casos em que troncos SIP retornam SIP
                              Reason 503 para n&uacute;meros inv&aacute;lidos, e j&aacute; vi
                              casos em que o tronco SIP retorna SIP 404
                              para para n&uacute;meros inv&aacute;lidos.</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Eu
                              sugiro a voc&ecirc; analisar o siptrace do
                              retorno do seu Tronco quando ligar para
                              esses n&uacute;meros, pode ser um bom ponto de
                              partida para analisar o que ele realmente
                              retorna.</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Crusando
                              essa informa&ccedil;&atilde;o com o ISDN Code de cada
                              retorno, seria mais f&aacute;cil para voc&ecirc; ter um
                              ponto de partida.</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Sip
                              set debug peer NAME_DO_PEER ou sip set
                              debug IP IP_DO_PEER</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Atenciosamente,</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"><b><span
style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Fernando
                                da Silva Santos</span></b></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">CEO</span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">
                              &#8211; Chief Executive Officer</span></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">NextBilling
                                IP Solutions</span></b></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">&nbsp;</span></b></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">SP:
                              </span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a
                                moz-do-not-send="true"
                                href="tel:%2B55%20%2811%29%203522-9200"
                                value="+551135229200" target="_blank">+55
                                (11) 3522-9200</a></span></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">RJ:
                              </span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a
                                moz-do-not-send="true"
                                href="tel:%2B55%20%2821%29%204063-8854"
                                value="+552140638854" target="_blank">+55
                                (21) 4063-8854</a></span></p>
                          <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">Tollfree:</span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496">
                              0800 580-9200</span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#2f5496"><a
                                moz-do-not-send="true"
                                href="http://www.nextbilling.com.br/"
                                target="_blank"><span
                                  style="color:#0563c1">http://www.nextbilling.com.br</span></a></span></p>
                          <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span></p>
                          <p class="MsoNormal"
                            style="margin-left:35.4pt"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">De:</span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">
                              <a moz-do-not-send="true"
                                href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org"
                                target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>
                              [mailto:<a moz-do-not-send="true"
                                href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org"
                                target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>]
                              <b>Em nome de </b>Ronaldo Toledo<br>
                              <b>Enviada em:</b> ter&ccedil;a-feira, 21 de maio
                              de 2013 20:20<br>
                              <b>Para:</b> Alexandre Keller<br>
                              <b>Assunto:</b> [AsteriskBrasil] Asterisk
                              n&atilde;o detecta atendimento pela operadora</span></p>
                          <div>
                            <div>
                              <p class="MsoNormal"
                                style="margin-left:35.4pt">
                                &nbsp;</p>
                              <div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-right:0cm;margin-bottom:18.0pt;margin-left:35.4pt"><span
                                      style="font-size:18.0pt">Ol&aacute;.</span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-right:0cm;margin-bottom:18.0pt;margin-left:35.4pt">
                                    <span style="font-size:18.0pt">Estou
                                      com um problema que j&aacute; pesquisei
                                      aqui e ali: Tento ligar via tronco
                                      SIP para uma s&eacute;rie de n&uacute;meros de
                                      telefones e a coisa vai bem at&eacute;
                                      que encontro pela frente n&uacute;meros
                                      de telefones como <a
                                        moz-do-not-send="true"
                                        href="tel:%2851%2932216470"
                                        value="+15132216470"
                                        target="_blank">(51)32216470</a>
                                      E <a moz-do-not-send="true"
                                        href="tel:%2851%2932254067"
                                        value="+15132254067"
                                        target="_blank">(51)32254067</a>.&nbsp;
                                      O asterisk assume um comportamento
                                      err&aacute;tico para eles, ora d&aacute; como
                                      ocupado(reason 8), ora d&aacute; que n&atilde;o
                                      atendeu(reason 3). Se fa&ccedil;o a
                                      liga&ccedil;&atilde;o por meio de tel fixo ou
                                      celular, o atendimento &eacute; feito
                                      pela operadora que sugere que o
                                      n&uacute;mero n&atilde;o &eacute; v&aacute;lido.</span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-right:0cm;margin-bottom:18.0pt;margin-left:35.4pt"><span
                                      style="font-size:18.0pt">Por que o
                                      Asterisk n&atilde;o identifica o
                                      atendimento pela operadora? Algu&eacute;m
                                      j&aacute; passou por este problema usando
                                      SIP?</span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-right:0cm;margin-bottom:18.0pt;margin-left:35.4pt"><span
                                      style="font-size:18.0pt">Existe
                                      ocorr&ecirc;ncias reportando problemas
                                      de atendimento com placas digium,
                                      digivoice etc..... mas n&atilde;o com
                                      SIP.<br>
                                      <br>
                                    </span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-left:35.4pt"><span
                                      style="font-size:18.0pt">Ronaldo
                                      Toledo Morais.</span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"
                                    style="margin-left:35.4pt">
                                    <span style="font-size:18.0pt">&nbsp;</span></p>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  _______________________________________________<br>
                  KHOMP: completa linha de placas externas FXO, FXS, GSM
                  e E1;<br>
                  Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e
                  SS7;<br>
                  Intercomunicadores para acesso remoto via rede IP.
                  Conhe&ccedil;a em <a moz-do-not-send="true"
                    href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.<br>
                  _______________________________________________<br>
                  ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para
                  R2, ISDN e SS7.<br>
                  Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>
                  Channel Bank &#8211; Appliance Asterisk - Acesse <a
                    moz-do-not-send="true"
                    href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.<br>
                  _______________________________________________<br>
                  Para remover seu email desta lista, basta enviar um
                  email em branco para <a moz-do-not-send="true"
                    href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                    target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a em <a class="moz-txt-link-abbreviated" href="http://www.Khomp.com">www.Khomp.com</a>.
_______________________________________________
ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank &#8211; Appliance Asterisk - Acesse <a class="moz-txt-link-abbreviated" href="http://www.aligera.com.br">www.aligera.com.br</a>.
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>