Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-20 Por tôpico Matheus Cucoloto
2010/4/19 thiago fernandes tfernand...@gmail.com:
 Eu conheço bem as configurações de centrais NEC. Qual é o modelo da central
 NEC que vc está tendo problema?


 2010/4/19 André M. magro...@gmail.com

 Ve se na NEC está ativado o bloqueio de ligações a cobrar, pode ser
 isso...

 ___

Bom dia.

O diretor da empresa que me contratou ameaçou cancelar o contrato com
o tecnico do PABX e ele fez a coisa acontecer! (Acredita???)

Mas ele(o técnico) não quis me dizer o que ele fez de tanto no NEC.

Bom, as configurações que eu estava usando estão OK era alguma feature
no NEC que tava travando as ligações.

Valeu pela ajuda de todos.

-- 
---
Matheus Cucoloto
Unix Expertise
Voip Expertise
___
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte técnico local qualificado e gratuito 
Conheça a linha completa de produtos KHOMP em www.khomp.com.br
___
A Redfone é líder no fornecimento de bridges TDMoE - E1
- Valor similar ao de placas E1 PCI;
- Não há problemas de compatibilidade com barramento PCI;
- Possibilitam a construção de soluções de alta disponibilidade(dois servidores 
compartilham o mesmo E1)
Conheça mais sobre este produto em www.red-fone.com
___


Lista de discussões AsteriskBrasil.org
AsteriskBrasil@listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil


Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-19 Por tôpico Glauber
Cara faz um teste, lá no chan_dahdi.conf muda nas duas span o parametro :
mfcr2_double_answer=no, mas coloca este parametro nas duas span.



Att
Glauber

-Original Message-
From: asteriskbrasil-boun...@listas.asteriskbrasil.org
[mailto:asteriskbrasil-boun...@listas.asteriskbrasil.org] On Behalf Of
Matheus Cucoloto
Sent: sábado, 17 de abril de 2010 15:49
To: asteriskbrasil@listas.asteriskbrasil.org
Subject: Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

Ainda sem solução, o tecnico do NEC disse que do lado dele ta tudo certo,,,


Vejam só

[r...@mxfone-acim pabx]# cat chan-32-forward-1-20100417152932.call
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - Call started at Sat Apr
17 15:29:32 2010 on chan 32 [openr2 version 1.3.0, revision exported]
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - Outgoing call
proceeding: ANI=4321038100, DNIS=9610, Category=National Subscriber
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - CAS Tx  [SEIZE] 0x00
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - CAS Raw Tx  0x01
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - scheduled timer id
2 (r2_seize)
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Bits changed from
0x08 to 0x0C
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - CAS Rx  [SEIZE ACK]
0x0C [15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 2 [15:29:32:602] [Thread: 3072650128] [Chan 32] - M -
timer id 2 found, cancelling it now [15:29:32:602] [Thread: 3072650128]
[Chan 32] - M - MFC/R2 call acknowledge!
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 9
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - MF Tx  9 [ON]
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - Attempting to cancel
timer timer 0 [15:29:32:961] [Thread: 3072650128] [Chan 32] - M - Cannot
cancel timer 0 [15:29:32:961] [Thread: 3072650128] [Chan 32] - M - MF Tx 
9 [OFF] [15:29:33:161] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 6
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - MF Tx  6 [ON]
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request
handled [15:29:33:301] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:33:301] [Thread: 3072650128] [Chan 32] - M - Attempting to cancel
timer timer 0 [15:29:33:301] [Thread: 3072650128] [Chan 32] - M - Cannot
cancel timer 0 [15:29:33:301] [Thread: 3072650128] [Chan 32] - M - MF Tx 
6 [OFF] [15:29:33:481] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 1
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - MF Tx  1 [ON]
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request
handled [15:29:33:621] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:33:621] [Thread: 3072650128] [Chan 32] - M - Attempting to cancel
timer timer 0 [15:29:33:621] [Thread: 3072650128] [Chan 32] - M - Cannot
cancel timer 0 [15:29:33:621] [Thread: 3072650128] [Chan 32] - M - MF Tx 
1 [OFF] [15:29:33:801] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 0
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - MF Tx  0 [ON]
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request
handled [15:29:34:301] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:34:301] [Thread: 3072650128] [Chan 32] - M - Attempting to cancel
timer timer 0 [15:29:34:301] [Thread: 3072650128] [Chan 32] - M - Cannot
cancel timer 0 [15:29:34:301] [Thread: 3072650128] [Chan 32] - M - MF Tx 
0 [OFF] [15:29:34:461] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:34:461] [Thread: 3072650128] [Chan 32] - M - Sending category
National Subscriber [15:29:34:461] [Thread: 3072650128] [Chan 32] - M - MF
Tx  1 [ON] [15:29:34:581] [Thread: 3072650128] [Chan 32] - M - MF Rx  5
[ON] [15:29:34:581] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0 [15:29:34:581] [Thread: 3072650128] [Chan 32] - M -
Cannot cancel timer 0 [15:29:34:581] [Thread: 3072650128] [Chan 32] - M - MF
Tx  1 [OFF] [15:29:34:741] [Thread: 3072650128] [Chan 32] - M - MF Rx  5
[OFF] [15:29:34:741] [Thread: 3072650128] [Chan 32] - M - Sending ANI digit
4 [15:29:34:741] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [ON]
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - Attempting to cancel
timer timer 0 [15:29:34:881] [Thread: 3072650128] [Chan 32] - M - Cannot
cancel timer 0 [15:29:34:881] [Thread: 3072650128] [Chan 32] - M - MF Tx 
4 [OFF] [15:29:35:081] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:35:081] [Thread: 3072650128] [Chan 32] - M - Sending ANI digit 4
[15:29:35:081] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [ON]
[15:29:35:241] [Thread: 3072650128] [Chan 32] - M - MF Rx  5

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-19 Por tôpico André M .
Ve se na NEC está ativado o bloqueio de ligações a cobrar, pode ser isso...
___
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte técnico local qualificado e gratuito 
Conheça a linha completa de produtos KHOMP em www.khomp.com.br
___
A Redfone é líder no fornecimento de bridges TDMoE - E1
- Valor similar ao de placas E1 PCI;
- Não há problemas de compatibilidade com barramento PCI;
- Possibilitam a construção de soluções de alta disponibilidade(dois servidores 
compartilham o mesmo E1)
Conheça mais sobre este produto em www.red-fone.com
___


Lista de discussões AsteriskBrasil.org
AsteriskBrasil@listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-19 Por tôpico thiago fernandes
Eu conheço bem as configurações de centrais NEC. Qual é o modelo da central
NEC que vc está tendo problema?


2010/4/19 André M. magro...@gmail.com

 Ve se na NEC está ativado o bloqueio de ligações a cobrar, pode ser isso...

 ___
 KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.
 - Hardware com alta disponibilidade de recursos e qualidade KHOMP
 - Suporte técnico local qualificado e gratuito
 Conheça a linha completa de produtos KHOMP em www.khomp.com.br
 ___
 A Redfone é líder no fornecimento de bridges TDMoE - E1
 - Valor similar ao de placas E1 PCI;
 - Não há problemas de compatibilidade com barramento PCI;
 - Possibilitam a construção de soluções de alta disponibilidade(dois
 servidores compartilham o mesmo E1)
 Conheça mais sobre este produto em www.red-fone.com
 ___


 Lista de discussões AsteriskBrasil.org
 AsteriskBrasil@listas.asteriskbrasil.org
 http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

___
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte técnico local qualificado e gratuito 
Conheça a linha completa de produtos KHOMP em www.khomp.com.br
___
A Redfone é líder no fornecimento de bridges TDMoE - E1
- Valor similar ao de placas E1 PCI;
- Não há problemas de compatibilidade com barramento PCI;
- Possibilitam a construção de soluções de alta disponibilidade(dois servidores 
compartilham o mesmo E1)
Conheça mais sobre este produto em www.red-fone.com
___


Lista de discussões AsteriskBrasil.org
AsteriskBrasil@listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-17 Por tôpico Glauber
Cara ve se a central tem bloqueio de ligaçào a cobrar, se tiver faz um teste
tirando o bloqueio.


Att
Glauber

-Original Message-
From: asteriskbrasil-boun...@listas.asteriskbrasil.org
[mailto:asteriskbrasil-boun...@listas.asteriskbrasil.org] On Behalf Of
Matheus Cucoloto
Sent: sábado, 17 de abril de 2010 09:37
To: asteriskbrasil
Subject: [AsteriskBrasil] OpenR2+Asterisk+Nec

Bom dia galéra.

Fiquei a semana inteira tentando entender aonde esta a falha mas não
encontrei, chegou a hora de perguntar.

Verifiquei ja aterramento e parametros de clock porem ainda não encontrei a
solução.

Em um ambiente tenho E1 da GVT R2 ligado ao asterisk, e o asterisk ligado a
um PABX NEC também em R2.

Estou usando placa da sangoma com 2 E1 (primeira vez que estou usando essa
marca).

O que acontece é que a ligação recebida entra no asterisk pela GVT e é
encaminhada para o PABX, quando a ligação é atendida da 1 segundo e a
ligação cai.

Se eu pego a ligação e ao invez de jogar para o PABX eu jogo para um ramal
SIP a ligação acontece sem nenhum problema.

Se alguem tiver alguma ideia...

Veja os logs do console:

New MFC/R2 call detected on chan 1.
MFC/R2 call offered on chan 1. ANI = 4399216100, DNIS = 9624, Category =
National Subscriber
MFC/R2 call has been accepted on backward channel 1
-- Executing [9...@default:1] NoOp(DAHDI/1-1, --- NOVA LIGACAO EXTERNA
ENTRANDO --) in new stack
-- Executing [9...@default:2] NoOp(DAHDI/1-1, --- DE 4399216100 PARA
9624 --) in new stack
-- Executing [9...@default:3] Dial(DAHDI/1-1,
DAHDI/g1/9624,40,TtWwRr) in new stack
-- Called g1/9624

voip*CLI

MFC/R2 call has been accepted on forward channel 32
   -- DAHDI/32-1 is ringing
MFC/R2 call has been answered on channel 32
   -- DAHDI/32-1 answered DAHDI/1-1
Chan 32 - Far end disconnected. Reason: Normal Clearing
MFC/R2 call disconnected on channel 32
   -- Hungup 'DAHDI/32-1'
 == Spawn extension (default, 9624, 3) exited non-zero on 'DAHDI/1-1'
   -- Hungup 'DAHDI/1-1'

Veja minhas conf:

[r...@voip ~]# cat /etc/dahdi/system.conf loadzone=br defaultzone=br

#Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1
span=1,0,1,cas,hdb3
cas=1-15:1101
cas=17-31:1101

#Sangoma A102 port 2 [slot:0 bus:48 span:2] wanpipe2
span=2,0,1,cas,hdb3
cas=32-46:1101
cas=48-62:1101


[r...@voip~]# cat /etc/wanpipe/wanpipe1.conf | grep -v ^#

[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 0
PCIBUS  = 48
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= NCRC4
FE_LINE = 1
TE_CLOCK= NORMAL
TE_REF_CLOCK= 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 1
TDMV_DCHAN  = 0
TDMV_HW_DTMF= NO
TDMV_HW_FAX_DETECT = NO

[w1g1]
ACTIVE_CH   = ALL
TDMV_HWEC   = YES


[r...@voip ~]# cat /etc/wanpipe/wanpipe2.conf | grep -v ^#

[devices]
wanpipe2 = WAN_AFT_TE1, Comment

[interfaces]
w2g1 = wanpipe2, , TDM_VOICE, Comment

[wanpipe2]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 0
PCIBUS  = 48
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= NCRC4
FE_LINE = 2
TE_CLOCK= MASTER
TE_REF_CLOCK= 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 2
TDMV_DCHAN  = 0
TDMV_HW_DTMF= NO
TDMV_HW_FAX_DETECT = NO

[w2g1]
ACTIVE_CH   = ALL
TDMV_HWEC   = YES

[r...@voip ~]# cat /etc/asterisk/chan_dahdi.conf | grep -v ^#

[channels]

;Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1 GVT
group=0
callgroup=0
pickupgroup=0
rxgain=0.0
txgain=0.0

;Configuracao para MFC/R2
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_call_files=yes
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_allow_collect_calls=no
mfcr2_double_answer=yes
mfcr2_immediate_accept=no
mfcr2_forced_release=no
mfcr2_charge_calls=yes
;mfcr2_advanced_protocol_file=/etc/r2proto.conf

context=contexto-pstn
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=incoming
channel = 1-15
channel = 17-31


;Sangoma A102 port 2 [slot:0 bus:48 span:2] wanpipe2 PABX
group=1
callgroup=1
pickupgroup=1
rxgain=0.0
txgain=0.0

;Configuracao para MFC/R2
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_call_files=yes
mfcr2_logging=all

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-17 Por tôpico Wagner Oliveira
Matheus,
Olha aqui:   
Chan 32 - Far end disconnected. Reason: Normal Clearing
MFC/R2 call disconnected on channel 32
O NEC atende e manda desconectar em modo normal instantaneamente. 
Vc esta com problema de tempo no NEC. Veja os CIC no NEC se estão alinhados com 
o asterisk se sim, veja pq o NEC esta mandando desconectar logo após o 
atendimento.

 
Wagner de Oliveira
Gateway - The gateway to the Brazil West Center Zone  
GSM, PDH, SDH, WDM, DWDM, SWITCH and much more...
waga...@yahoo.com
 






From: Matheus Cucoloto matheuscucol...@gmail.com
To: asteriskbrasil asteriskbrasil@listas.asteriskbrasil.org
Sent: Sat, April 17, 2010 9:37:09 AM
Subject: [AsteriskBrasil] OpenR2+Asterisk+Nec

Bom dia galéra.

Fiquei a semana inteira tentando entender aonde esta a falha mas não
encontrei, chegou a hora de perguntar.

Verifiquei ja aterramento e parametros de clock porem ainda não
encontrei a solução.

Em um ambiente tenho E1 da GVT R2 ligado ao asterisk, e o asterisk
ligado a um PABX NEC também em R2.

Estou usando placa da sangoma com 2 E1 (primeira vez que estou usando
essa marca).

O que acontece é que a ligação recebida entra no asterisk pela GVT e é
encaminhada para o PABX, quando a ligação é atendida da 1 segundo e a
ligação cai.

Se eu pego a ligação e ao invez de jogar para o PABX eu jogo para um
ramal SIP a ligação acontece sem nenhum problema.

Se alguem tiver alguma ideia...

Veja os logs do console:

New MFC/R2 call detected on chan 1.
MFC/R2 call offered on chan 1. ANI = 4399216100, DNIS = 9624, Category
= National Subscriber
MFC/R2 call has been accepted on backward channel 1
-- Executing [9...@default:1] NoOp(DAHDI/1-1, --- NOVA LIGACAO
EXTERNA ENTRANDO --) in new stack
-- Executing [9...@default:2] NoOp(DAHDI/1-1, --- DE 4399216100
PARA 9624 --) in new stack
-- Executing [9...@default:3] Dial(DAHDI/1-1,
DAHDI/g1/9624,40,TtWwRr) in new stack
-- Called g1/9624

voip*CLI

MFC/R2 call has been accepted on forward channel 32
   -- DAHDI/32-1 is ringing
MFC/R2 call has been answered on channel 32
   -- DAHDI/32-1 answered DAHDI/1-1
Chan 32 - Far end disconnected. Reason: Normal Clearing
MFC/R2 call disconnected on channel 32
   -- Hungup 'DAHDI/32-1'
== Spawn extension (default, 9624, 3) exited non-zero on 'DAHDI/1-1'
   -- Hungup 'DAHDI/1-1'

Veja minhas conf:

[r...@voip ~]# cat /etc/dahdi/system.conf
loadzone=br
defaultzone=br

#Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1
span=1,0,1,cas,hdb3
cas=1-15:1101
cas=17-31:1101

#Sangoma A102 port 2 [slot:0 bus:48 span:2] wanpipe2
span=2,0,1,cas,hdb3
cas=32-46:1101
cas=48-62:1101


[r...@voip~]# cat /etc/wanpipe/wanpipe1.conf | grep -v ^#

[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 0
PCIBUS  = 48
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= NCRC4
FE_LINE = 1
TE_CLOCK= NORMAL
TE_REF_CLOCK= 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 1
TDMV_DCHAN  = 0
TDMV_HW_DTMF= NO
TDMV_HW_FAX_DETECT = NO

[w1g1]
ACTIVE_CH   = ALL
TDMV_HWEC   = YES


[r...@voip ~]# cat /etc/wanpipe/wanpipe2.conf | grep -v ^#

[devices]
wanpipe2 = WAN_AFT_TE1, Comment

[interfaces]
w2g1 = wanpipe2, , TDM_VOICE, Comment

[wanpipe2]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 0
PCIBUS  = 48
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= NCRC4
FE_LINE = 2
TE_CLOCK= MASTER
TE_REF_CLOCK= 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 2
TDMV_DCHAN  = 0
TDMV_HW_DTMF= NO
TDMV_HW_FAX_DETECT = NO

[w2g1]
ACTIVE_CH   = ALL
TDMV_HWEC   = YES

[r...@voip ~]# cat /etc/asterisk/chan_dahdi.conf | grep -v ^#

[channels]

;Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1 GVT
group=0
callgroup=0
pickupgroup=0
rxgain=0.0
txgain=0.0

;Configuracao para MFC/R2
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_call_files=yes
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_allow_collect_calls=no
mfcr2_double_answer=yes
mfcr2_immediate_accept=no
mfcr2_forced_release=no
mfcr2_charge_calls=yes
;mfcr2_advanced_protocol_file=/etc/r2proto.conf

context=contexto-pstn
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=incoming
channel = 1-15

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-17 Por tôpico Matheus Cucoloto
Valeu pessoal.

Ja acionei o tecnico do PABX para verificar isso, hoje a tarde vamos
ter atividade, vou reportar vocês as alterações.

2010/4/17 Wagner Oliveira waga...@yahoo.com:
 Matheus,
 Olha aqui:
 Chan 32 - Far end disconnected. Reason: Normal Clearing
 MFC/R2 call disconnected on channel 32
 O NEC atende e manda desconectar em modo normal instantaneamente.
 Vc esta com problema de tempo no NEC. Veja os CIC no NEC se estão alinhados
 com o asterisk se sim, veja pq o NEC esta mandando desconectar logo após o
 atendimento.

 Wagner de Oliveira
 Gateway - The gateway to the Brazil West Center Zone
 GSM, PDH, SDH, WDM, DWDM, SWITCH and much more...
 waga...@yahoo.com



 
 From: Matheus Cucoloto matheuscucol...@gmail.com
 To: asteriskbrasil asteriskbrasil@listas.asteriskbrasil.org
 Sent: Sat, April 17, 2010 9:37:09 AM
 Subject: [AsteriskBrasil] OpenR2+Asterisk+Nec

 Bom dia galéra.

 Fiquei a semana inteira tentando entender aonde esta a falha mas não
 encontrei, chegou a hora de perguntar.

 Verifiquei ja aterramento e parametros de clock porem ainda não
 encontrei a solução.

 Em um ambiente tenho E1 da GVT R2 ligado ao asterisk, e o asterisk
 ligado a um PABX NEC também em R2.

 Estou usando placa da sangoma com 2 E1 (primeira vez que estou usando
 essa marca).

 O que acontece é que a ligação recebida entra no asterisk pela GVT e é
 encaminhada para o PABX, quando a ligação é atendida da 1 segundo e a
 ligação cai.

 Se eu pego a ligação e ao invez de jogar para o PABX eu jogo para um
 ramal SIP a ligação acontece sem nenhum problema.

 Se alguem tiver alguma ideia...

 Veja os logs do console:

 New MFC/R2 call detected on chan 1.
 MFC/R2 call offered on chan 1. ANI = 4399216100, DNIS = 9624, Category
 = National Subscriber
 MFC/R2 call has been accepted on backward channel 1
 -- Executing [9...@default:1] NoOp(DAHDI/1-1, --- NOVA LIGACAO
 EXTERNA ENTRANDO --) in new stack
 -- Executing [9...@default:2] NoOp(DAHDI/1-1, --- DE 4399216100
 PARA 9624 --) in new stack
 -- Executing [9...@default:3] Dial(DAHDI/1-1,
 DAHDI/g1/9624,40,TtWwRr) in new stack
 -- Called g1/9624

 voip*CLI

 MFC/R2 call has been accepted on forward channel 32
   -- DAHDI/32-1 is ringing
 MFC/R2 call has been answered on channel 32
   -- DAHDI/32-1 answered DAHDI/1-1
 Chan 32 - Far end disconnected. Reason: Normal Clearing
 MFC/R2 call disconnected on channel 32
   -- Hungup 'DAHDI/32-1'
 == Spawn extension (default, 9624, 3) exited non-zero on 'DAHDI/1-1'
   -- Hungup 'DAHDI/1-1'

 Veja minhas conf:

 [r...@voip ~]# cat /etc/dahdi/system.conf
 loadzone=br
 defaultzone=br

 #Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1
 span=1,0,1,cas,hdb3
 cas=1-15:1101
 cas=17-31:1101

 #Sangoma A102 port 2 [slot:0 bus:48 span:2] wanpipe2
 span=2,0,1,cas,hdb3
 cas=32-46:1101
 cas=48-62:1101


 [r...@voip~]# cat /etc/wanpipe/wanpipe1.conf | grep -v ^#

 [devices]
 wanpipe1 = WAN_AFT_TE1, Comment

 [interfaces]
 w1g1 = wanpipe1, , TDM_VOICE, Comment

 [wanpipe1]
 CARD_TYPE      = AFT
 S514CPU        = A
 CommPort        = PRI
 AUTO_PCISLOT    = NO
 PCISLOT        = 0
 PCIBUS          = 48
 FE_MEDIA        = E1
 FE_LCODE        = HDB3
 FE_FRAME        = NCRC4
 FE_LINE        = 1
 TE_CLOCK        = NORMAL
 TE_REF_CLOCK    = 0
 TE_SIG_MODE    = CAS
 TE_HIGHIMPEDANCE        = NO
 LBO            = 120OH
 FE_TXTRISTATE  = NO
 MTU            = 1500
 UDPPORT        = 9000
 TTL            = 255
 IGNORE_FRONT_END = NO
 TDMV_SPAN      = 1
 TDMV_DCHAN      = 0
 TDMV_HW_DTMF    = NO
 TDMV_HW_FAX_DETECT = NO

 [w1g1]
 ACTIVE_CH      = ALL
 TDMV_HWEC      = YES


 [r...@voip ~]# cat /etc/wanpipe/wanpipe2.conf | grep -v ^#

 [devices]
 wanpipe2 = WAN_AFT_TE1, Comment

 [interfaces]
 w2g1 = wanpipe2, , TDM_VOICE, Comment

 [wanpipe2]
 CARD_TYPE      = AFT
 S514CPU        = A
 CommPort        = PRI
 AUTO_PCISLOT    = NO
 PCISLOT        = 0
 PCIBUS          = 48
 FE_MEDIA        = E1
 FE_LCODE        = HDB3
 FE_FRAME        = NCRC4
 FE_LINE        = 2
 TE_CLOCK        = MASTER
 TE_REF_CLOCK    = 0
 TE_SIG_MODE    = CAS
 TE_HIGHIMPEDANCE        = NO
 LBO            = 120OH
 FE_TXTRISTATE  = NO
 MTU            = 1500
 UDPPORT        = 9000
 TTL            = 255
 IGNORE_FRONT_END = NO
 TDMV_SPAN      = 2
 TDMV_DCHAN      = 0
 TDMV_HW_DTMF    = NO
 TDMV_HW_FAX_DETECT = NO

 [w2g1]
 ACTIVE_CH      = ALL
 TDMV_HWEC      = YES

 [r...@voip ~]# cat /etc/asterisk/chan_dahdi.conf | grep -v ^#

 [channels]

 ;Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1 GVT
 group=0
 callgroup=0
 pickupgroup=0
 rxgain=0.0
 txgain=0.0

 ;Configuracao para MFC/R2
 signalling=mfcr2
 mfcr2_variant=br
 mfcr2_get_ani_first=no
 mfcr2_max_ani=20
 mfcr2_max_dnis=4
 mfcr2_category=national_subscriber
 mfcr2_logdir=span1
 mfcr2_call_files=yes
 mfcr2_logging=all
 mfcr2_mfback_timeout=-1
 mfcr2_metering_pulse_timeout=-1
 mfcr2_allow_collect_calls=no
 mfcr2_double_answer=yes
 mfcr2_immediate_accept=no
 mfcr2_forced_release=no
 mfcr2_charge_calls=yes
 

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-17 Por tôpico Matheus Cucoloto
É para rir ou para chorar???

http://lists.digium.com/pipermail/asterisk-r2/2008-October/62.html



2010/4/17 Matheus Cucoloto matheuscucol...@gmail.com:
 Valeu pessoal.

 Ja acionei o tecnico do PABX para verificar isso, hoje a tarde vamos
 ter atividade, vou reportar vocês as alterações.

 2010/4/17 Wagner Oliveira waga...@yahoo.com:
 Matheus,
 Olha aqui:
 Chan 32 - Far end disconnected. Reason: Normal Clearing
 MFC/R2 call disconnected on channel 32
 O NEC atende e manda desconectar em modo normal instantaneamente.
 Vc esta com problema de tempo no NEC. Veja os CIC no NEC se estão alinhados
 com o asterisk se sim, veja pq o NEC esta mandando desconectar logo após o
 atendimento.

 Wagner de Oliveira
 Gateway - The gateway to the Brazil West Center Zone
 GSM, PDH, SDH, WDM, DWDM, SWITCH and much more...
 waga...@yahoo.com



 
 From: Matheus Cucoloto matheuscucol...@gmail.com
 To: asteriskbrasil asteriskbrasil@listas.asteriskbrasil.org
 Sent: Sat, April 17, 2010 9:37:09 AM
 Subject: [AsteriskBrasil] OpenR2+Asterisk+Nec

 Bom dia galéra.

 Fiquei a semana inteira tentando entender aonde esta a falha mas não
 encontrei, chegou a hora de perguntar.

 Verifiquei ja aterramento e parametros de clock porem ainda não
 encontrei a solução.

 Em um ambiente tenho E1 da GVT R2 ligado ao asterisk, e o asterisk
 ligado a um PABX NEC também em R2.

 Estou usando placa da sangoma com 2 E1 (primeira vez que estou usando
 essa marca).

 O que acontece é que a ligação recebida entra no asterisk pela GVT e é
 encaminhada para o PABX, quando a ligação é atendida da 1 segundo e a
 ligação cai.

 Se eu pego a ligação e ao invez de jogar para o PABX eu jogo para um
 ramal SIP a ligação acontece sem nenhum problema.

 Se alguem tiver alguma ideia...

 Veja os logs do console:

 New MFC/R2 call detected on chan 1.
 MFC/R2 call offered on chan 1. ANI = 4399216100, DNIS = 9624, Category
 = National Subscriber
 MFC/R2 call has been accepted on backward channel 1
 -- Executing [9...@default:1] NoOp(DAHDI/1-1, --- NOVA LIGACAO
 EXTERNA ENTRANDO --) in new stack
 -- Executing [9...@default:2] NoOp(DAHDI/1-1, --- DE 4399216100
 PARA 9624 --) in new stack
 -- Executing [9...@default:3] Dial(DAHDI/1-1,
 DAHDI/g1/9624,40,TtWwRr) in new stack
 -- Called g1/9624

 voip*CLI

 MFC/R2 call has been accepted on forward channel 32
   -- DAHDI/32-1 is ringing
 MFC/R2 call has been answered on channel 32
   -- DAHDI/32-1 answered DAHDI/1-1
 Chan 32 - Far end disconnected. Reason: Normal Clearing
 MFC/R2 call disconnected on channel 32
   -- Hungup 'DAHDI/32-1'
 == Spawn extension (default, 9624, 3) exited non-zero on 'DAHDI/1-1'
   -- Hungup 'DAHDI/1-1'

 Veja minhas conf:

 [r...@voip ~]# cat /etc/dahdi/system.conf
 loadzone=br
 defaultzone=br

 #Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1
 span=1,0,1,cas,hdb3
 cas=1-15:1101
 cas=17-31:1101

 #Sangoma A102 port 2 [slot:0 bus:48 span:2] wanpipe2
 span=2,0,1,cas,hdb3
 cas=32-46:1101
 cas=48-62:1101


 [r...@voip~]# cat /etc/wanpipe/wanpipe1.conf | grep -v ^#

 [devices]
 wanpipe1 = WAN_AFT_TE1, Comment

 [interfaces]
 w1g1 = wanpipe1, , TDM_VOICE, Comment

 [wanpipe1]
 CARD_TYPE      = AFT
 S514CPU        = A
 CommPort        = PRI
 AUTO_PCISLOT    = NO
 PCISLOT        = 0
 PCIBUS          = 48
 FE_MEDIA        = E1
 FE_LCODE        = HDB3
 FE_FRAME        = NCRC4
 FE_LINE        = 1
 TE_CLOCK        = NORMAL
 TE_REF_CLOCK    = 0
 TE_SIG_MODE    = CAS
 TE_HIGHIMPEDANCE        = NO
 LBO            = 120OH
 FE_TXTRISTATE  = NO
 MTU            = 1500
 UDPPORT        = 9000
 TTL            = 255
 IGNORE_FRONT_END = NO
 TDMV_SPAN      = 1
 TDMV_DCHAN      = 0
 TDMV_HW_DTMF    = NO
 TDMV_HW_FAX_DETECT = NO

 [w1g1]
 ACTIVE_CH      = ALL
 TDMV_HWEC      = YES


 [r...@voip ~]# cat /etc/wanpipe/wanpipe2.conf | grep -v ^#

 [devices]
 wanpipe2 = WAN_AFT_TE1, Comment

 [interfaces]
 w2g1 = wanpipe2, , TDM_VOICE, Comment

 [wanpipe2]
 CARD_TYPE      = AFT
 S514CPU        = A
 CommPort        = PRI
 AUTO_PCISLOT    = NO
 PCISLOT        = 0
 PCIBUS          = 48
 FE_MEDIA        = E1
 FE_LCODE        = HDB3
 FE_FRAME        = NCRC4
 FE_LINE        = 2
 TE_CLOCK        = MASTER
 TE_REF_CLOCK    = 0
 TE_SIG_MODE    = CAS
 TE_HIGHIMPEDANCE        = NO
 LBO            = 120OH
 FE_TXTRISTATE  = NO
 MTU            = 1500
 UDPPORT        = 9000
 TTL            = 255
 IGNORE_FRONT_END = NO
 TDMV_SPAN      = 2
 TDMV_DCHAN      = 0
 TDMV_HW_DTMF    = NO
 TDMV_HW_FAX_DETECT = NO

 [w2g1]
 ACTIVE_CH      = ALL
 TDMV_HWEC      = YES

 [r...@voip ~]# cat /etc/asterisk/chan_dahdi.conf | grep -v ^#

 [channels]

 ;Sangoma A102 port 1 [slot:0 bus:48 span:1] wanpipe1 GVT
 group=0
 callgroup=0
 pickupgroup=0
 rxgain=0.0
 txgain=0.0

 ;Configuracao para MFC/R2
 signalling=mfcr2
 mfcr2_variant=br
 mfcr2_get_ani_first=no
 mfcr2_max_ani=20
 mfcr2_max_dnis=4
 mfcr2_category=national_subscriber
 mfcr2_logdir=span1
 mfcr2_call_files=yes
 mfcr2_logging=all
 mfcr2_mfback_timeout=-1
 

Re: [AsteriskBrasil] OpenR2+Asterisk+Nec

2010-04-17 Por tôpico Matheus Cucoloto
Ainda sem solução, o tecnico do NEC disse que do lado dele ta tudo certo,,,


Vejam só

[r...@mxfone-acim pabx]# cat chan-32-forward-1-20100417152932.call
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - Call started at
Sat Apr 17 15:29:32 2010 on chan 32 [openr2 version 1.3.0, revision
exported]
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - Outgoing call
proceeding: ANI=4321038100, DNIS=9610, Category=National Subscriber
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - CAS Tx  [SEIZE] 0x00
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - CAS Raw Tx  0x01
[15:29:32:542] [Thread: 3072650128] [Chan 32] - M - scheduled timer id
2 (r2_seize)
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Bits changed from
0x08 to 0x0C
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - CAS Rx  [SEIZE ACK] 0x0C
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 2
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - timer id 2 found,
cancelling it now
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - MFC/R2 call acknowledge!
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 9
[15:29:32:602] [Thread: 3072650128] [Chan 32] - M - MF Tx  9 [ON]
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:32:961] [Thread: 3072650128] [Chan 32] - M - MF Tx  9 [OFF]
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 6
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - MF Tx  6 [ON]
[15:29:33:161] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request handled
[15:29:33:301] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:33:301] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:33:301] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:33:301] [Thread: 3072650128] [Chan 32] - M - MF Tx  6 [OFF]
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 1
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - MF Tx  1 [ON]
[15:29:33:481] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request handled
[15:29:33:621] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [ON]
[15:29:33:621] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:33:621] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:33:621] [Thread: 3072650128] [Chan 32] - M - MF Tx  1 [OFF]
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - MF Rx  1 [OFF]
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - Sending DNIS digit 0
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - MF Tx  0 [ON]
[15:29:33:801] [Thread: 3072650128] [Chan 32] - M - Group A DNIS request handled
[15:29:34:301] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:34:301] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:34:301] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:34:301] [Thread: 3072650128] [Chan 32] - M - MF Tx  0 [OFF]
[15:29:34:461] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:34:461] [Thread: 3072650128] [Chan 32] - M - Sending category
National Subscriber
[15:29:34:461] [Thread: 3072650128] [Chan 32] - M - MF Tx  1 [ON]
[15:29:34:581] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:34:581] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:34:581] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:34:581] [Thread: 3072650128] [Chan 32] - M - MF Tx  1 [OFF]
[15:29:34:741] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:34:741] [Thread: 3072650128] [Chan 32] - M - Sending ANI digit 4
[15:29:34:741] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [ON]
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:34:881] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [OFF]
[15:29:35:081] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:35:081] [Thread: 3072650128] [Chan 32] - M - Sending ANI digit 4
[15:29:35:081] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [ON]
[15:29:35:241] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [ON]
[15:29:35:241] [Thread: 3072650128] [Chan 32] - M - Attempting to
cancel timer timer 0
[15:29:35:241] [Thread: 3072650128] [Chan 32] - M - Cannot cancel timer 0
[15:29:35:241] [Thread: 3072650128] [Chan 32] - M - MF Tx  4 [OFF]
[15:29:35:421] [Thread: 3072650128] [Chan 32] - M - MF Rx  5 [OFF]
[15:29:35:421] [Thread: 3072650128] [Chan 32] - M - Sending ANI digit 2
[15:29:35:421] [Thread: 3072650128] [Chan 32] - M - MF Tx  2 [ON]
[15:29:35:581] [Thread: