[AsteriskBrasil] E1 - R2 digital da Oi (Brasil Telecom)

Marcelo Busana celobusana em gmail.com
Domingo Março 6 10:55:29 BRT 2011


Olá Pessoal,

Tenho utilizado Asterisk no ultimo ano para fazer disponibilizar alguns
ramais externos, e resolvi tentar instalar um canal E1 da Oi (Brasil
Telecom).

Estou com alguns problemas que não consigo resolver, se alguem já passou por
isso talvez tenha alguma informação.

Atualmente: Elastix 2 com Asterisk 1.6.2.10 + TE110P
Problema:
1. No recebimento da ligação não recebo o número do telefone / ramal
corretamente, sempre vem algo como 8888, sendo que estou ligando no 8600,
posso ligar em qualquer um 8601 8605...
MFC/R2 call offered on chan 31. ANI = 88811111444444444444, DNIS = 8888,
Category = Collect Call
O ANI sempre vem algo parecido com 8888*********** o DNIS sempre 8888

Consigo chamar um ramal SIP (configurando como DDR 8888) mas quando atendo
tenho RUÍDOS ALEATÓRIOS e depois de 1 ou 2 segundos, cai a ligação.

2. Ruídos Aleatórios ao receber a chamada

3. Ao fazer uma chamada o asterisk envia cada digito por vez e aparentemente
excede o tempo da central publica, assim não completa a ligação.
Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Rx << 1 [OFF]
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- Sending DNIS digit 0
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Tx >> 0 [ON]
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- Group A DNIS request handled
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Rx << 1 [ON]
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Tx >> 0 [OFF]
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Rx << 1 [OFF]
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- No more DNIS. Doing nothing, waiting for timeout.
[Mar  6 10:46:51] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- Group A DNIS request handled
[Mar  6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Rx << 1 [ON]
[Mar  6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- MF Rx << 1 [OFF]
[Mar  6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- No more DNIS. Doing nothing, waiting for timeout.
[Mar  6 10:46:52] DEBUG[10072]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 1
- Group A DNIS request handled


Resumindo:
Acredito que eu tenha 2 problemas:
1. Li sobre uma configuração para fazer enviar/receber os digitos em
pacotes, mas não achei isso
2. Deve existir alguma configuração incorreta que esta fazendo não converter
o sinal digital em analogico gerando ruídos.

Agradeceria muito se alguem pudesse me ajudar, ou talvez passar a
configuração que esta utilizando.

Segue abaixo minha configuração atual:
/etc/dahdi/system.conf
span=1,1,0,cas,hdb3
# termtype: te
cas=1-15:1101
cas=17-31:1101
#bchan=1-15,17-31
dchan=16
echocanceller=oslec,1-15,17-31

# Global data

loadzone        = br
defaultzone     = br

/etc/asterisk/chan_dahdi.conf
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300              ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

dtmfmode=rfc2833

;Uncomment these lines if you have problems with the disconection of your
analog lines
;busydetect=yes
;busycount=3
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
;mfcr2_get_ani_first=yes
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_allow_collect_calls=yes
mfcr2_double_answer=no
mfcr2_immediate_accept=no
mfcr2_forced_release=no
mfcr2_charge_calls=yes
language=pt_BR

immediate=no

#cas=1-15,17-31,1101

#include dahdi-channels.conf
#include chan_dahdi_additional.conf

/etc/asterisk/dahdi-channels.conf
; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER) HDB3/
;group=0,11
group=0
context=from-pstn
;switchtype = national
signalling = mfcr2
channel => 1-15,17-31
context = default
group = 63

/etc/asterisk/unicall.conf
[Channels]
;ISS_GHOST_CONTEXT[0:0]
language=en
;context=digital_incoming_0_0
;context=digital-avantel
context=e1-inline
usecallerid=yes
hidecallerid=no
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
relaxdtmf=no
;relaxdtmf=yes
rxgain=0
txgain=0
group=11
callgroup=0
pickupgroup=0
immediate=no
callerid=asreceived
amaflags=default
accountcode=avantel
musiconhold=default
protocolclass=mfcr2
;protocolvariant=mx,0,4,7
protocolvariant=br,20,4
;channel=0-0
channel=1-15
channel=17-31


*LOG RECEBENDO CHAMADA (PARTE)*
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 81111111113111, expected length: 20
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 811111111131111, expected length: 20
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 8111111111311111, expected length: 20
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:44] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 81111111113111111, expected length: 20
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 811111111131111111, expected length: 20
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:45] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 8111111111311111111, expected length: 20
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [ON]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 5 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Getting ANI digit 1
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- ANI so far: 81111111113111111111, expected length: 20
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Done getting ANI!
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- Requesting change to Group II with signal 0x33
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 3 [ON]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 3 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [ON]
MFC/R2 call offered on chan 31. ANI = 81111111113111111111, DNIS = 8888,
Category = Collect Call
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1783 dahdi_r2_on_call_offered:
Accepting MFC/R2 call with charge on chan 31
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 1 [ON]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Rx << 1 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- MF Tx >> 1 [OFF]
[Mar  6 10:54:46] DEBUG[2331]: chan_dahdi.c:1935 dahdi_r2_write_log: Chan 31
- calling timer 28 (r2_answer_delay) callback
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20110306/6015fd43/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil