Res: [AsteriskBrasil] MFC/R2 Embratel - Recebe ligação mas nao disca
João Paulo Lenz dos Santos
jp_lenz_santos em yahoo.com.br
Quinta Junho 28 16:32:45 BRT 2007
Vc vai ter que recompilar a libmfcr2, abra o arquivo mfcr2.c e altere o valor da variável:
mfcr2->clear_back_persistence_check
usamos o valor de 4000, mas dependendo o ambiente talvez 2000 ou 3000 funcione.
----- Mensagem original ----
De: gleydson carneiro <gleydson.carneiro em gmail.com>
Para: asteriskbrasil em listas.asteriskbrasil.org
Enviadas: Quinta-feira, 28 de Junho de 2007 12:37:07
Assunto: [AsteriskBrasil] MFC/R2 Embratel - Recebe ligação mas nao disca
Ola amigos,
sou novo na lista, mas ja li muitos arquivos passados para resolver meus problemas.
estou tendo uma grande deficuldade com um problema no MFC/R2,recebo ligacao normal, mas qndo vo fazer qualquer uma recebo um erro de T1_FAIL,
ja mudei o DEFAULT_T1 no mfcr2.c e tudo mais !!! mas nao resolve, ja li muita coisa mas ainda nao consegui achar uma solucao. alguem poderia me ajudar por favor.
segue abaixo os meus arquivos de conf e os logs
------ extensions.conf ------
[r2-embratel]
;Discagem
exten => _XXXXXXXX,1,Dial(UniCall/g1/${EXTEN})
;Desligando
exten => t,1,Hangup()
exten => h,1,Hangup()
;Recebendo Ligacoes
exten => _8080,3,Background(/var/lib/asterisk/sounds/ivr/menu_apresentacao)
exten => _8080,4,Background(/var/lib/asterisk/sounds/ivr/menu_cliente)
exten => _8080,5,Background(/var/lib/asterisk/sounds/ivr/menu_nao_cliente)
;Plano de voz
exten => _8050,1,Dial(SIP/8050,50)
exten => _8051,1,Dial(SIP/8051,50)
exten => _8052,1,Dial(SIP/8052,50)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; IVR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Menu Cliente
exten => 1,1,AGI(dima-test.agi)
exten => 1,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => 1,3,SetVar(testcallerid=${callerid})
exten => 1,4,Background(/var/lib/asterisk/sounds/ivr/menu_suporte)
exten => 1,5,Background(/var/lib/asterisk/sounds/ivr/menu_financeiro)
;Menu não cliente
exten => 2,1,AGI(dima-test.agi)
exten => 2,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => 2,3,SetVar(testcallerid=${callerid})
exten => 2,4,Background(/var/lib/asterisk/sounds/ivr/menu_aguarde_transferindo)
;Suporte
exten => 3,1,AGI(dima-test.agi)
exten => 3,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => 3,3,SetVar(testcallerid=${callerid})
exten => 3,4,Background(/var/lib/asterisk/sounds/ivr/menu_aguarde_transferindo)
;Financeiro
exten => 4,1,AGI(dima-test.agi)
exten => 4,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => 4,3,SetVar(testcallerid=${callerid})
exten => 4,4,Background(/var/lib/asterisk/sounds/ivr/menu_aguarde_transferindo)
;Desligando
exten => #,1,AGI(dima-test.agi)
exten => #,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => #,3,SetVar(testcallerid=${callerid})
exten => #,4,Background(/var/lib/asterisk/sounds/ivr/menu_desligando)
exten => #,5,Hangup()
----- sip.conf -----
[general]
context=r2-embratel
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=br
[8050]
type=friend
username=8050
secret=8050
nat=yes
host=dynamic
insecure=very
disallow=all
allow=g729
[8051]
type=friend
username=8051
secret=8051
nat=yes
host=dynamic
insecure=very
disallow=all
allow=ulaw
allow=alaw
allow=g729
allow=g723.1
[8052]
type=friend
username=8052
secret=8052
nat=yes
host=dynamic
insecure=very
disallow=all
allow=g729
---- zaptel.conf ----
span=1,0,0,cas,hdb3
cas=1-30:1101
loadzone=br
defaultzone=br
---- unical.conf -----
[channels]
loglevel=255
context=r2-embratel
usecallerid=yes
hidecallerid=no
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
relaxdtmf=yes
callgroup=1
pickupgroup=1
immediate=no
callerid=asreceived
musiconhold=default
protocolclass=mfcr2
protocolvariant=br,0,8,4
protocolend=cpe
group=1
channel => 1-30
protocolclass=mfcr2
--------------------------------------- LOGS CLI> ------------------------------------------------
-- Registered SIP '8050' at 201.18.150.214 port 19472 expires 3600
-- Executing Dial("SIP/8050-081c3110", "UniCall/g1/33162112") in new stack
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Call control(1)
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Make call
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Making a new call with CRN 32773
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 0001 -> [1/ 1/Idle /Idle ]
-- Called g1/33162112
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Dialing
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1101 [1/ 40/Seize /Idle ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 3 on -> [2/ 40/Group I /Idle ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 3 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 3 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 3 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 6 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 6 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 2 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:02 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 2 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 2 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 2 off -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Calling party category 0x0
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 on -> [2/ 40/Group I /DNIS ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /Category ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1 off -> [2/ 40/Group I /Category ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /Category ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 8 on -> [2/ 40/Group I /Category ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /ANI ]
Jun 28 12:35:03 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 8 off -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 0 on -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 0 off -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 5 on -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 5 off -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 0 on -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 on [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 0 off -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 5 off [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 E on -> [2/ 40/Group I /ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 4 on [2/ 40/Group I /End of ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 E off -> [2/ 40/Group I /End of ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 4 off [2/ 40/Group I /End of ANI ]
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Far end disconnected(cause=Switching equipment congestion [42]) - state 0x40
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Far end disconnected
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:2930 handle_uc_event: CRN 32773 - far disconnected cause=Switching equipment congestion [42]
-- Channel 0 got hangup
-- UniCall/1-1 is circuit-busy
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Channel gains
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Channel switching
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Call control(6)
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Drop call(cause=Normal Clearing [16])
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Clearing fwd
Jun 28 12:35:04 WARNING[31647]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 1001 -> [2/ 800/Clear fwd B /End of ANI ]
-- Hungup 'UniCall/1-1'
== Everyone is busy/congested at this time (1:0/1/0)
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 <- 1001 [1/ 800/Clear fwd D /Idle ]
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Call disconnected(cause=Switching equipment congestion [42]) - state 0x800
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Drop call
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Call control(7)
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Release call
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Destroying call with CRN 32773
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Release call
-- Unicall/1 released
Jun 28 12:35:05 WARNING[30624]: chan_unicall.c:627 unicall_report: MFC/R2 UniCall/1 Channel echo cancel
-- Executing Hangup("SIP/8050-081c3110", "") in new stack
== Spawn extension (r2-embratel, h, 1) exited non-zero on 'SIP/8050-081c3110'
_______________________________________________
LIsta de discussões AsteriskBrasil.org
AsteriskBrasil em listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
_______________________________________________
Acesse o wiki AsteriskBrasil.org:
http://www.asteriskbrasil.org
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20070628/e494f6a8/attachment-0001.html
Mais detalhes sobre a lista de discussão AsteriskBrasil