<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Bom, n&atilde;o tenho experi&ecirc;ncia em usar hardware da Digium p/ sinaliza&ccedil;&atilde;o
    R2. Por isso n&atilde;o posso lhe ajudar.&nbsp; <br>
    Sugiro usar p/ R2 Hardware da Digivoice ou khomp, que ja possuem o
    R2 nativo e n&atilde;o precisa ser emulado, como no caso da Digum.<br>
    Sempre usei hardware da Digivoice p/ R2 e ainda n&atilde;o tive problemas.&nbsp;
    Por&eacute;m todos falam mto bem da Khomp tbm.<br>
    Abs...<br>
    <blockquote
      cite="mid:AANLkTim2N1R_u9e=Q7wwxEvvaegwtWi2d_P69+=RVH6d@mail.gmail.com"
      type="cite">Ol&aacute; Pessoal,
      <div><br>
      </div>
      <div>Tenho utilizado Asterisk no ultimo ano para fazer
        disponibilizar alguns ramais externos, e resolvi tentar instalar
        um canal E1 da Oi (Brasil Telecom).</div>
      <div><br>
      </div>
      <div>Estou com alguns problemas que n&atilde;o consigo resolver, se
        alguem j&aacute; passou por isso talvez tenha alguma informa&ccedil;&atilde;o.</div>
      <div><br>
      </div>
      <div>Atualmente: Elastix 2 com Asterisk 1.6.2.10 + TE110P&nbsp;<br>
        Problema:<br>
        1. No recebimento da liga&ccedil;&atilde;o n&atilde;o recebo o n&uacute;mero do telefone /
        ramal corretamente, sempre vem algo como 8888, sendo que estou
        ligando no 8600, posso ligar em qualquer um 8601 8605...</div>
      <div>MFC/R2 call offered on chan 31. ANI = 88811111444444444444,
        DNIS = 8888, Category = Collect Call</div>
      <div>O ANI sempre vem algo parecido com 8888*********** o DNIS
        sempre 8888<br>
      </div>
      <div><br>
        Consigo chamar um ramal SIP (configurando como DDR 8888) mas
        quando atendo tenho RU&Iacute;DOS ALEAT&Oacute;RIOS e depois de 1 ou 2
        segundos, cai a liga&ccedil;&atilde;o.<br>
        <br>
      </div>
      <div>2. Ru&iacute;dos Aleat&oacute;rios ao receber a chamada&nbsp;</div>
      <div><br>
      </div>
      <div>3. Ao fazer uma chamada o asterisk envia cada digito por vez
        e aparentemente excede o tempo da central publica, assim n&atilde;o
        completa a liga&ccedil;&atilde;o.</div>
      <div>
        <div>Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - Sending DNIS digit 0</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Tx &gt;&gt; 0 [ON]</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - Group A DNIS request handled</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Tx &gt;&gt; 0 [OFF]</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - No more DNIS. Doing nothing,
          waiting for timeout.</div>
        <div>[Mar &nbsp;6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - Group A DNIS request handled</div>
        <div>[Mar &nbsp;6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - No more DNIS. Doing nothing,
          waiting for timeout.</div>
        <div>[Mar &nbsp;6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 1 - Group A DNIS request handled</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Resumindo:</div>
      <div>Acredito que eu tenha 2 problemas:<br>
        1. Li sobre uma configura&ccedil;&atilde;o para fazer enviar/receber os
        digitos em pacotes, mas n&atilde;o achei isso<br>
        2. Deve existir alguma configura&ccedil;&atilde;o incorreta que esta fazendo
        n&atilde;o converter o sinal digital em analogico gerando ru&iacute;dos.</div>
      <div><br>
      </div>
      <div>Agradeceria muito se alguem pudesse me ajudar, ou talvez
        passar a configura&ccedil;&atilde;o que esta utilizando.</div>
      <div><br>
      </div>
      <div>Segue abaixo minha configura&ccedil;&atilde;o atual:</div>
      <div>/etc/dahdi/system.conf<br>
        <div>span=1,1,0,cas,hdb3</div>
        <div># termtype: te</div>
        <div>cas=1-15:1101</div>
        <div>cas=17-31:1101</div>
        <div>#bchan=1-15,17-31</div>
        <div>dchan=16</div>
        <div>echocanceller=oslec,1-15,17-31</div>
        <div><br>
        </div>
        <div># Global data</div>
        <div><br>
        </div>
        <div>loadzone &nbsp; &nbsp; &nbsp; &nbsp;= br</div>
        <div>defaultzone &nbsp; &nbsp; = br</div>
      </div>
      <div><br>
      </div>
      <div>/etc/asterisk/chan_dahdi.conf<br>
        <div>[trunkgroups]</div>
        <div><br>
        </div>
        <div>[channels]</div>
        <div>context=from-pstn</div>
        <div>signalling=fxs_ks</div>
        <div>rxwink=300 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Atlas seems to use long (250ms)
          winks</div>
        <div>usecallerid=yes</div>
        <div>
          hidecallerid=no</div>
        <div>callwaiting=yes</div>
        <div>usecallingpres=yes</div>
        <div>callwaitingcallerid=yes</div>
        <div>threewaycalling=yes</div>
        <div>transfer=yes</div>
        <div>canpark=yes</div>
        <div>cancallforward=yes</div>
        <div>callreturn=yes</div>
        <div>echocancel=yes</div>
        <div>echocancelwhenbridged=no</div>
        <div>faxdetect=incoming</div>
        <div>echotraining=800</div>
        <div>rxgain=0.0</div>
        <div>txgain=0.0</div>
        <div>callgroup=1</div>
        <div>pickupgroup=1</div>
        <div><br>
        </div>
        <div>
          dtmfmode=rfc2833</div>
        <div><br>
        </div>
        <div>;Uncomment these lines if you have problems with the
          disconection of your analog lines</div>
        <div>;busydetect=yes</div>
        <div>;busycount=3</div>
        <div>signalling=mfcr2</div>
        <div>mfcr2_variant=br</div>
        <div>mfcr2_get_ani_first=no</div>
        <div>;mfcr2_get_ani_first=yes</div>
        <div>mfcr2_max_ani=20</div>
        <div>mfcr2_max_dnis=4</div>
        <div>mfcr2_category=national_subscriber</div>
        <div>mfcr2_logdir=span1</div>
        <div>mfcr2_logging=all</div>
        <div>mfcr2_mfback_timeout=-1</div>
        <div>mfcr2_metering_pulse_timeout=-1</div>
        <div>mfcr2_allow_collect_calls=yes</div>
        <div>mfcr2_double_answer=no</div>
        <div>mfcr2_immediate_accept=no</div>
        <div>mfcr2_forced_release=no</div>
        <div>
          mfcr2_charge_calls=yes</div>
        <div>language=pt_BR</div>
        <div><br>
        </div>
        <div>immediate=no</div>
        <div><br>
        </div>
        <div>#cas=1-15,17-31,1101</div>
        <div><br>
        </div>
        <div>#include dahdi-channels.conf</div>
        <div>#include chan_dahdi_additional.conf</div>
      </div>
      <div><br>
      </div>
      <div>/etc/asterisk/dahdi-channels.conf</div>
      <div>
        <div>; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0"
          (MASTER) HDB3/</div>
        <div>;group=0,11</div>
        <div>group=0</div>
        <div>context=from-pstn</div>
        <div>;switchtype = national</div>
        <div>signalling = mfcr2</div>
        <div>channel =&gt; 1-15,17-31</div>
        <div>context = default</div>
        <div>group = 63</div>
      </div>
      <div><br>
      </div>
      <div>/etc/asterisk/unicall.conf</div>
      <div>
        <div>[Channels]</div>
        <div>;ISS_GHOST_CONTEXT[0:0]</div>
        <div>language=en</div>
        <div>;context=digital_incoming_0_0</div>
        <div>;context=digital-avantel</div>
        <div>context=e1-inline</div>
        <div>usecallerid=yes</div>
        <div>hidecallerid=no</div>
        <div>callwaitingcallerid=yes</div>
        <div>threewaycalling=yes</div>
        <div>transfer=yes</div>
        <div>cancallforward=yes</div>
        <div>callreturn=yes</div>
        <div>echocancel=yes</div>
        <div>echocancelwhenbridged=no</div>
        <div>echotraining=800</div>
        <div>relaxdtmf=no</div>
        <div>
          ;relaxdtmf=yes</div>
        <div>rxgain=0</div>
        <div>txgain=0</div>
        <div>group=11</div>
        <div>callgroup=0</div>
        <div>pickupgroup=0</div>
        <div>immediate=no</div>
        <div>callerid=asreceived</div>
        <div>amaflags=default</div>
        <div>accountcode=avantel</div>
        <div>musiconhold=default</div>
        <div>protocolclass=mfcr2</div>
        <div>;protocolvariant=mx,0,4,7</div>
        <div>protocolvariant=br,20,4</div>
        <div>;channel=0-0</div>
        <div>channel=1-15</div>
        <div>channel=17-31</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><b>LOG RECEBENDO CHAMADA (PARTE)</b><br>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 81111111113111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 811111111131111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 8111111111311111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 81111111113111111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 811111111131111111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far: 8111111111311111111,
          expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [ON]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 5 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Getting ANI digit 1</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - ANI so far:
          81111111113111111111, expected length: 20</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Done getting ANI!</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - Requesting change to Group II
          with signal 0x33</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 3 [ON]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 3 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [ON]</div>
        <div>MFC/R2 call offered on chan 31. ANI = 81111111113111111111,
          DNIS = 8888, Category = Collect Call</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1783
          dahdi_r2_on_call_offered: Accepting MFC/R2 call with charge on
          chan 31</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 1 [ON]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Rx &lt;&lt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - MF Tx &gt;&gt; 1 [OFF]</div>
        <div>[Mar &nbsp;6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935
          dahdi_r2_write_log: Chan 31 - calling timer 28
          (r2_answer_delay) callback</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte t&eacute;cnico local qualificado e gratuito 
Conhe&ccedil;a a linha completa de produtos KHOMP em <a class="moz-txt-link-abbreviated" href="http://www.khomp.com.br">www.khomp.com.br</a>
_______________________________________________
Headsets Plantronics com o melhor pre&ccedil;o do Brasil.
Acesse agora <a class="moz-txt-link-abbreviated" href="http://www.voipmania.com.br">www.voipmania.com.br</a>
VOIPMANIA STORE
________
Lista de discuss&otilde;es AsteriskBrasil.org
<a class="moz-txt-link-abbreviated" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a>
<a class="moz-txt-link-freetext" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</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>