Olá Pessoal,<br><br>galera, eu estou conseguindo fazer ligações com a minha E1 utilizando R2 Digital da Brasiltelecom, porém, não consigo receber ligações. Estou utilizando o testcall da libunicall para fazer depuração do que está acontecendo aqui. Vejam o que acontece quando eu faço uma ligação da PSTN para o número da E1:
<br><br>Main thread<br>MFC/R2 Chan 2: <- 0001 [1/ 1/Idle /Idle ]<br>MFC/R2 Chan 2: Detected<br>MFC/R2 Chan 2: Making a new call with CRN 32769<br>MFC/R2 Chan 2: 1101 -> [2/ 2/Idle /Idle ]
<br>Chan 2: -- Detected on channel 0, CRN 32769<br>Chan 2: -- Detected on channel 0, CRN 32769<br>Main thread<br>MFC/R2 Chan 2: <- 8 on [2/ 2/Seize ack /Seize ack ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Seize ack /Seize ack ]
<br>MFC/R2 Chan 2: <- 8 off [2/ 2/Group A /Category req ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /Category req ]<br>MFC/R2 Chan 2: <- 2 on [2/ 2/Group A /Category req ]
<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /Category req ]<br>MFC/R2 Chan 2: <- 2 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 6 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 6 off [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 1 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 1 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 9 on [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 9 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 1 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 1 off [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 6 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 6 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 4 on [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 4 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 2 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 2 off [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 2 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 2 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 0 on [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 0 off [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: <- 8 on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: 5 on -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- 8 off [2/ 2/Group A /ANI request ]
<br>MFC/R2 Chan 2: 5 off -> [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: <- F on [2/ 2/Group A /ANI request ]<br>MFC/R2 Chan 2: R2 prot. err. [2/ 2/Group A /ANI request ] cause 32772 - Unexpected MF6 signal
<br>MFC/R2 Chan 2: 1001 -> [1/ 1/Idle /Idle ]<br>Chan 2: -- Protocol failure on channel 0, cause (32772) Unexpected MF6 signal<br>Chan 2: -- Protocol failure on channel 0, cause (32772) Unexpected MF6 signal
<br>Main thread<br><br><br>Como podem observar, recebo um protocol failure on channel 0, cause 32772 - unexpected mf6 signal. O que é que pode ser isso? Eu estou conseguindo fazer ligações na boa com este circuito. Vejam:
<br><br>Chan 1: Initiating call<br>MFC/R2 Chan 1: Call control(1)<br>MFC/R2 Chan 1: Make call<br>MFC/R2 Chan 1: Making a new call with CRN 32769<br>MFC/R2 Chan 1: 0001 -> [1/ 1/Idle /Idle ]
<br>Chan 1: -- Dialing on channel 0<br>Chan 1: -- Dialing on channel 0<br>MFC/R2 Chan 1: <- 1101 [1/ 40/Seize /Idle ]<br>MFC/R2 Chan 1: 9 on -> [2/ 40/Group I /Idle ]
<br>MFC/R2 Chan 1: <- 5 on [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 9 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 5 off [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: Calling party category 0x0<br>MFC/R2 Chan 1: 1 on -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /Category ]<br>MFC/R2 Chan 1: 1 off -> [2/ 40/Group I /Category ]
<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /Category ]<br>MFC/R2 Chan 1: 1 on -> [2/ 40/Group I /Category ]<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: 1 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 6 on -> [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 6 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: 4 on -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 4 off -> [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 2 on -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: 2 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 2 on -> [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 2 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: 0 on -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 0 off -> [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 8 on -> [2/ 40/Group I /DNIS ]<br>Main thread<br>MFC/R2 Chan 1: <- 3 on [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: 8 off -> [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: <- 3 off [2/ 40/Group I /DNIS ]<br>MFC/R2 Chan 1: 1 on -> [2/ 40/Group I /DNIS ]
<br>MFC/R2 Chan 1: <- 1 on [2/ 40/Group II /Category ]<br>MFC/R2 Chan 1: 1 off -> [2/ 40/Group II /Category ]<br>MFC/R2 Chan 1: <- 1 off [2/ 40/Group II /Category ]
<br>Chan 1: -- Alerting on channel 0<br>Chan 1: -- Alerting on channel 0<br>MFC/R2 Chan 1: <- 0101 [1/ 200/Await answer /Category ]<br>Chan 1: -- Connected on channel 0<br>Chan 1: -- Connected on channel 0
<br>Chan 1: -- '*00000001*32148200*91642208*#'<br>Main thread<br>MFC/R2 Chan 1: <- 1101 [1/ 400/Answered /Category ]<br>MFC/R2 Chan 1: Far end disconnected(cause=Normal Clearing [16]) - state 0x400
<br><br><br>E aí, alguém pode ajudar? Tô pensando em jogar a toalha branca pro alto... <br><br>Valeu! Joca Loco.<br><br><div><span class="gmail_quote">Em 04/05/07, <b class="gmail_sendername">Leandro Augusto</b> <<a href="mailto:leandro.augusto@gmail.com">
leandro.augusto@gmail.com</a>> escreveu:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Olá Joca,<br><br><br>A E1 não atende utilizando o "s", como nas linhas analógicas, e sim pelo número chamado.
<br><br>Ex: Se se número for (11) 3900-5000, configure o contexto de chamadas recebidas conforme abaixo:
<br><br><br>[e1-inline]<br><br>exten => 5000,1,Answer<br>exten => 5000,2,Dial(SIP/21,50)<br>
exten => 5000,3,Hangup<br><br>Normalmente a operadora envia somente os últimos 4 dígitos, cheque isso na console quando estiver recebendo uma ligação. Fazendo assim você pode configurar também os ramais DDRs.<br><br>exten => _50XX,1,Answer
<br>exten => _50XX,2,Dial(SIP/${EXTEN})<br>
exten => _50XX,3,Hangup<br><br><br>Att,<br><br><b>--</b>
<br><b>Leandro Augusto</b>
<br><b>Analista de TI</b>
<br><b>Canal Telecom</b>
<br><b>55 (48) 3952-3000</b>
<br><b><a href="mailto:leandro@canaltelecom.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">leandro@canaltelecom.com.br</a><br><a href="http://www.canaltelecom.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.canaltelecom.com.br</a><br></b><br><br><div><span class="gmail_quote">2007/5/4, Joca Loco <
<a href="mailto:jocalocobr@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jocalocobr@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_112580b4500bba61_1">Galera, até agora, muito obrigado a quem já me auxiliou a resolver o problema do E1 da BrasilTelecom.
<br><br>Eu já estou conseguindo fazer ligações de boa pelo E1, só tem mais alguns problemas:<br><br>1. Eu consigo fazer chamadas, mas não consigo receber chamadas.
<br><br>Vejam o meu unicall.conf:<br><br>x:/etc/asterisk# cat unicall.conf<br>[channels]<br><br>context=e1-inline<br>usecallerid=yes<br>hidecallerid=no<br>threewaycalling=yes<br>transfer=yes<br>cancallforward=yes<br>callreturn=yes
<br>echocancel=yes<br>echocancelwhenbridged=yes<br>rxgain=0.0<br>txgain=0.0<br>relaxdtmf=yes<br>callgroup=1<br>pickupgroup=1<br>immediate=no<br>callerid=asreceived<br>musiconhold=default<br>protocolclass=mfcr2<br>protocolvariant=br,20,4
<br>protocolend=cpe<br>group=1<br>channel => 1-15<br>protocolclass=mfcr2<br><br>E agora meu extensions.conf:<br><br>[e1-inline]<br>exten => s,1,Ringing<br>exten => s,2,Answer<br>exten => s,3,Dial(SIP/21,50)<br>
exten => s,4,Hangup<br><br>Porém, quando efetuo uma chamada para o tronco do E1, vejam o que acontece:<br><br>[2007-05-04 11:17:11] NOTICE[3048]: chan_unicall.c:2599 handle_uc_event: Unicall/7 event Detected<br>[2007-05-04 11:17:12] NOTICE[3048]: chan_unicall.c:2599 handle_uc_event: Unicall/7 event Protocol failure
<br>[2007-05-04 11:17:12] ERROR[3048]: chan_unicall.c:2603 handle_uc_event: Unicall/7 protocol error. Cause 32772<br><br>Vocês sabem o que pode estar acontecendo?<br><br>Valeu!! Abraços, Joca Loco.<br><br><br>
<br></span></div>----------------------------------------<br>Estação VoIP 2006<br>5 e 6 Dezembro<br>Curitiba PR<br><a href="http://www.estacaovoip.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.estacaovoip.com.br
</a><br><br>_______________________________________________<br>LIsta de discussões AsteriskBrasil.org<br><a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
AsteriskBrasil@listas.asteriskbrasil.org
</a><br><a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
<br><br>_______________________________________________<br>Acesse o wiki AsteriskBrasil.org:<br><a href="http://www.asteriskbrasil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.asteriskbrasil.org
</a><br></blockquote></div><br>
<br>----------------------------------------<br>Estação VoIP 2006<br>5 e 6 Dezembro<br>Curitiba PR<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.estacaovoip.com.br" target="_blank">http://www.estacaovoip.com.br
</a><br><br>_______________________________________________<br>LIsta de discussões AsteriskBrasil.org<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
<br><br>_______________________________________________<br>Acesse o wiki AsteriskBrasil.org:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.asteriskbrasil.org" target="_blank">http://www.asteriskbrasil.org
</a><br></blockquote></div><br>