[AsteriskBrasil] R2 EBT + Asterisk

Alex Robertson agr.listas em gmail.com
Quarta Agosto 15 12:23:02 BRT 2007


Felipe,

Obrigado por responder.

Já tinha visitado sua página. A moir diferença é nas versões do
unicall e Asterisk (quase tudo!)

Mas o que mais me intrigou foi a configuração do /etc/zaptel.conf
Duas linhas de "span" e a linha do dchan=16.
É assim mesmo. Quando configuro o canal de sinalização 16 o ztcfg reclama.

loadzone=br
defaultzone=br
span=1,0,0,ccs,hdb3
span=1,1,0,cas,hdb3
cas=1-15:1101
dchan=16
cas=17-31:1101

Outra coisa é que o padrão de idle que eu recebo da Embratel é 1001.
Então configurei desta forma.
Também testei com 1101 e não fez diferença.

No unicall.conf não funciona nem para receber chamadas se eu utilizar
protocolvariant=br,20.4
Só consigo receber se estiver br,0,4 ou br,0,8. Neste úlimo caso,
demora um pouco mais para a chamada completar.

Quanto faço ligação (ou tento fazer), o Asterisk envia o primeiro
dígito do número de B, recebe um "5" em resposta, e o Asterisk começa
a enviar a categoria (1) e logo depois o número de A, 7750. Então
recebo desconexão por congestionamento.

Fiquei até meia-noite ontem com a embratel, sem sucesso.

Vejam o trace...


Aug 14 19:06:35 VERBOSE[17069] logger.c:     -- Executing
Dial("SIP/771-0844e490", "unicall/g1/22593606|300|") in new stack
Aug 14 19:06:35 DEBUG[17069] chan_unicall.c: unicall_call called - 'g1/22593606'
Aug 14 19:06:35 DEBUG[17069] chan_unicall.c: unicall_call caller id - '7750'
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Call control(1)
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Make call
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Making
a new call with CRN 32770
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 0001
->      [1/       1/Idle          /Idle         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: Unicall/1 event Dialing
Aug 14 19:06:35 DEBUG[17069] chan_unicall.c: Exception on 13, channel 1
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 1101  [1/      40/Seize         /Idle         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 2 on
->      [2/      40/Group I       /Idle         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /DNIS         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 2 off
->      [2/      40/Group I       /DNIS         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /DNIS         ]
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
Calling party category 0x0
Aug 14 19:06:35 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 1 on
->      [2/      40/Group I       /DNIS         ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /Category     ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 1 off
->      [2/      40/Group I       /Category     ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /Category     ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 7 on
->      [2/      40/Group I       /Category     ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 7 off
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 7 on
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 7 off
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 5 on
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 5 off
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 0 on
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 on  [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 0 off
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 5 off [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 E on
->      [2/      40/Group I       /ANI          ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 4 on  [2/      40/Group I       /End of ANI   ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 E off
->      [2/      40/Group I       /End of ANI   ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
<- 4 off [2/      40/Group I       /End of ANI   ]
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Far
end disconnected(cause=Switching equipment congestion [42]) - state
0x40
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: Unicall/1 event Far end
disconnected
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: CRN 32770 - far
disconnected cause=Switching equipment congestion [42]
Aug 14 19:06:36 DEBUG[17069] chan_unicall.c: needcongestion
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Channel gains
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1
Channel switching
Aug 14 19:06:36 DEBUG[17069] chan_unicall.c: Hangup: channel: 1 index
= 0, normal = 13, callwait = -1, thirdcall = -1
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Call control(6)
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Drop
call(cause=Normal Clearing [16])
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 Clearing fwd
Aug 14 19:06:36 WARNING[17069] chan_unicall.c: MFC/R2 UniCall/1 1001
->      [2/     800/Clear fwd B   /End of ANI   ]
Aug 14 19:06:36 DEBUG[17069] chan_unicall.c: Updated conferencing on
1, with 0 conference users
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1
<- 1001  [1/     800/Clear fwd D   /Idle         ]
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1 Call
disconnected(cause=Switching equipment congestion [42]) - state 0x800
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: Unicall/1 event Drop call
Aug 14 19:06:36 DEBUG[16268] chan_unicall.c: CRN 32770 - Doing a release call
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1 Call control(7)
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1 Release call
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1
Destroying call with CRN 32770
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: Unicall/1 event Release call
Aug 14 19:06:36 DEBUG[16268] chan_unicall.c: CRN 32770 - Call released
Aug 14 19:06:36 WARNING[16268] chan_unicall.c: MFC/R2 UniCall/1
Channel echo cancel
Aug 14 19:06:36 DEBUG[16268] chan_unicall.c: disabled echo
cancellation on channel 1


Sds,

Em 15/08/07, Felipe Neuwald<felipe em neuwald.biz> escreveu:
> Alex, bom dia.
>
> Veja:
> http://ontheroadbrother.blogspot.com/2007/05/asterisk-sinalizao-mfcr2.html
>
> Também estava tendo este problema, até utilizar a solução documentada acima.
>
> Abs,
>
> Felipe Neuwald.
>
> Alex Robertson escreveu:
> > Pessoal,
> >
> > Estou tendo problemas com R2 da EBT. Consigo receber mas não consigo
> > fazer chamadas.
> >
> > Estou com * 1.2.23 e com unicall 0.0.3pre11
> >
> >  Já estou em contato com a ebt no telefone, mas quero tentar resolver
> > daqui também.
> >
> > Por favor, alguém que consiga fazer ligações com R2 poderia me enviar
> > um trace do unicall para comparar com o meu.
> >
> >
> > asterisk -rx "UC debug span X"  #Substitua X pelo canal por onde a ligação sai.
> > tail -f /var/log/asterisk/full | grep unicall
> >
> >
> > Obrigado
> >
>
> _______________________________________________
> Compre uma camiseta da AsteriskBrasil.org!
>             http://www.voipmania.com.br
>                 == VoIPMania.com.br ==
>
> _______________________________________________
> LIsta de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>


-- 
Alex G Robertson


Mais detalhes sobre a lista de discussão AsteriskBrasil