[AsteriskBrasil] Problemas com CAS - E1

Felipe Louback louback em gmail.com
Quinta Junho 22 09:16:31 BRT 2006


Caros,

Estou tentando utilizar CAS numa placa E1, mas estou com sérios problemas.
Quando ligo da PSTN e peço o asterisk para atender a chamada, tudo
ocorre sem problemas. Quando ligo do X-lite com destino a PSTN, o
telefone na PSTN toca, mas assim que tiro ele do gancho a ligação cai.
Eis um log da chamada do X-lite para o ramal 4535:

Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Call control(1)
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Make call
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Making
a new call with CRN 32771
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 0001
->      [1/       1/Idle          /Idle         ]
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: Unicall/1 event Dialing
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1101  [1/      40/Seize         /Idle         ]
Jun 22 08:59:14 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 4 on
->      [2/      40/Group I       /Idle         ]

Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 on  [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 4 off
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 off [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 5 on
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 on  [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 5 off
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 off [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 3 on
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 on  [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 3 off
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 off [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 5 on
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
5 on  [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 5 off
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
5 off [2/      40/Group I       /DNIS         ]
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Calling
party category 0x0
Jun 22 08:59:15 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 1 on
->      [2/      40/Group I       /DNIS         ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
3 on  [2/      40/Group I       /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 1 off
->      [2/      40/Group I       /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
3 off [2/      40/Group I       /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 1 on
->      [2/      40/Group I       /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 on  [2/      40/Group II      /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 1 off
->      [2/      40/Group II      /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1 off [2/      40/Group II      /Category     ]
Jun 22 08:59:16 WARNING[7757] chan_unicall.c: Unicall/1 event Alerting
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
0101  [1/     200/Await answer  /Category     ]
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: Unicall/1 event Connected
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Channel
echo cancel
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1      <-
1101  [1/     400/Answered      /Category     ]
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Far end
disconnected(cause=Normal Clearing [16]) - state 0x400
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: Unicall/1 event Far end
disconnected
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: CRN 32771 - far
disconnected cause=Normal Clearing [16]
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Channel gains
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Channel switching
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Call control(6)
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Drop
call(cause=Normal Clearing [16])
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 Clearing fwd
Jun 22 08:59:23 WARNING[7757] chan_unicall.c: MFC/R2 UniCall/1 1001
->      [1/     800/Clear back    /Category     ]
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1      <-
1001  [1/     800/Clear fwd D   /Idle         ]
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1 Call
disconnected(cause=Normal Clearing [16]) - state 0x800
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: Unicall/1 event Drop call
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1 Call control(7)
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1 Release call
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1
Destroying call with CRN 32771
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: Unicall/1 event Release call
Jun 22 08:59:23 WARNING[6916] chan_unicall.c: MFC/R2 UniCall/1 Channel
echo cancel

============================================
/etc/zaptel.conf:
============================================
loadzone=br
defaultzone=br
span=1,2,0,cas,hdb3
cas=1-15:1101
cas=17-31:1101

============================================
/etc/asterisk/unicall.conf
============================================
loglevel=1023
protocolclass=mfcr2

protocolvariant=br,20,4

group = 1
callerid=asreceived
context=sv10-incoming
channel => 1-15
;skip time slot 16
channel => 17-31

============================================
extensions.conf
============================================
[to-pstn]
;Ligacoes Locais - PABX
exten => _XXXXXXXX,1,Dial(Unicall/g1/0${EXTEN},20)
exten => _XXXXXXXX,n,Hangup

;Ligacoes para Ramais
exten => _XXXX,1,Dial(Unicall/g1/${EXTEN},20,tT)
exten => _XXXX,n,Hangup


Alguém tem alguma dica? Já li várias listas de discussão, mas parece
que a maioria das pessoas utiliza ISDN.

Estamos fazendo testes com CAS pois nao precisa de licensa.

ps: Nosso PABX é um MD110 da Ericsson.

Obrigado!

Felipe Louback

-- 
Mestrando - Departamento de Engenharia Elétrica
Grupo de Pesquisa em Engenharia da Computação e Telecomunicações
Universidade Federal de Minas Gerais - Brasil

"Vinde a mim vós todos que estai cansados e aflitos, e eu vos aliviarei."
Mateus 11:28


Mais detalhes sobre a lista de discussão AsteriskBrasil