[asterisk-r2] Erros MFC/R2

Mc GRATH Ricardo mcgrathr at mail2web.com
Wed Dec 23 15:34:47 CST 2015


Heros

No problem, by the way you can share and contribute your experience and case solution.
Best regards.

Mc GRATH Ricardo


________________________________
From: asterisk-r2-bounces at lists.digium.com [asterisk-r2-bounces at lists.digium.com] On Behalf Of Heros Amaral [heros.amaral at gmail.com]
Sent: 23 December 2015 15:21
To: asterisk-r2 at lists.digium.com
Subject: Re: [asterisk-r2] Erros MFC/R2

Okay, Ricardo Mcgrath

Already managed to settle here, I had error in /etc/dahdi/system.conf file

thank,

Heros Santos Amaral Filho
+55 61 8609-8600
+55 61 9243-7457
heros.amaral at gmail.com<mailto:heros.amaral at gmail.com>

[http://api.qrserver.com/v1/create-qr-code/?data=BEGIN%3AVCARD%0AVERSION%3A2.1%0AFN%3AHeros%20Santos%20Amaral%20Filho%0AN%3A%3BHeros%20Santos%20Amaral%20Filho%0ATEL%3BCELL%3A%2B556193070835%0AEMAIL%3BHOME%3BINTERNET%3Aheros.amaral%40gmail.com%0AURL%3Abr.linkedin.com%2Fin%2Fherosamaral%2F%0AADR%3A%3B%3B%3BBrasilia%3B%3B%3BBrasil%0AEND%3AVCARD%0A&size=250x250]

2015-12-23 16:10 GMT-02:00 Mc GRATH Ricardo <mcgrathr at mail2web.com<mailto:mcgrathr at mail2web.com>>:
Hi Amaral

If you are looking for help should post in english, otherwise it will be hard to someone could answer or help you.
By the way before make any call,  check with the following command channels state.
mfcr2 show channels

should report something like these;

Chan Variant ............................................ Tx CAS   Rx CAS
 1     BR    ............................................  IDLE     IDLE



Good luck!

Mc GRATH Ricardo


________________________________
From: asterisk-r2-bounces at lists.digium.com<mailto:asterisk-r2-bounces at lists.digium.com> [asterisk-r2-bounces at lists.digium.com<mailto:asterisk-r2-bounces at lists.digium.com>] On Behalf Of Heros Amaral [heros.amaral at gmail.com<mailto:heros.amaral at gmail.com>]
Sent: 23 December 2015 07:42
To: asterisk-r2 at lists.digium.com<mailto:asterisk-r2 at lists.digium.com>
Subject: [asterisk-r2] Erros MFC/R2

Bom dia,

A minha conexão com a operadora de telefonia são 8 (oito) links R2 Digital, para o asterisk eu uso uma máquina virtual no VMWare com sistema operacional GNU / Linux CentOS 7.0, Asterisk 13, Dahdi 2.10.2 e 1.3.3 OpenR2, uso dois gateways da RedFone (Fonebridge2), a minha conecção com o gateway é feita através de uma VLAN para cada interface do gateway, mas sempre quando eu tento fazer uma ligação o seguinte erro é apresentado:


[Nov 20 17:37:30] WARNING[2287]: chan_dahdi.c:3882 dahdi_r2_write_log: Chan 1 - Seize Timeout Expired!

[Nov 20 17:37:30] ERROR[2287]: chan_dahdi.c:3885 dahdi_r2_write_log: Chan 1 - Protocol error. Reason = Seize Timeout, R2 State = Clear Forward Transmitted, MF state = MF Engine Off, MF Group = Forward MF init, CAS = 0x08

DNIS = 92437457, ANI = 9994, MF = 0x20

[Nov 20 17:37:30] ERROR[2287]: chan_dahdi.c:3646 dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 1: Seize Timeout

Abaixo seguem meus arquivos de configuração:

/etc/dahdi/system.conf

dynamic=ethmf,eno50338560/00:50:c2:65:e3:44/0,31,0
dynamic=ethmf,eno50338560/00:50:c2:65:e3:44/1,31,1
#
dynamic=ethmf,eno83889152/00:50:c2:65:e3:42/0,31,0
dynamic=ethmf,eno83889152/00:50:c2:65:e3:42/1,31,1
#
dynamic=ethmf,eno100668416/00:50:c2:65:e3:2c/0,31,0
dynamic=ethmf,eno100668416/00:50:c2:65:e3:2c/1,31,1
#
dynamic=ethmf,eno117447680/00:50:c2:65:e3:2e/0,31,0
dynamic=ethmf,eno117447680/00:50:c2:65:e3:2e/1,31,1
#
cas=1-15:1101
dchan=16
cas=17-31:1101
alaw=1-30
#
cas=32-46:1101
dchan=47
cas=48-62:1101
alaw=32-62
#
cas=63-77:1101
dchan=78
cas=79-93:1101
alaw=63-93
#
cas=94-108:1101
dchan=109
cas=110-124:1101
alaw=94-124
#
cas=125-139:1101
dchan=140
cas=141-155:1101
alaw=125-155
#
cas=156-170:1101
dchan=171
cas=172-186:1101
alaw=156-186
#
cas=187-201:1101
dchan=202
cas=203-217:1101
alaw=187-217
#
cas=218-232:1101
dchan=233
cas=234-248:1101
alaw=218-248

loadzone=br
defaultzone=br

/etc/redfone_01.conf

[globals]
fb=192.168.1.254
port=1
server=00:50:56:8a:1e:83
priorities=0,1,2,3
#
[span1]
framing=cas
encoding=hdb3
rbs
master
#
[span2]
framing=cas
encoding=hdb3
rbs
master
#
[span3]
framing=cas
encoding=hdb3
rbs
master
#
[span4]
framing=cas
encoding=hdb3
master

/etc/asterisk/chan_dahdi.conf

[trunkgroups]

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
;group=0
callgroup=1
pickupgroup=1
context=from-pstn
signalling=mfcr2
mfcr2_variant=br
mfcr2_mfback_timeout=4000
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
; The next three params are for debuging, you can disable when in production
mfcr2_call_files=yes
mfcr2_logdir=GVT
mfcr2_logging=all

group=0
context=default
signalling=mfcr2
channel => 1-15,17-31
channel => 32-46,48-62

group=1
context=default
signalling=mfcr2
channel => 63-77,79-93
channel => 94-108,110-124

group=2
context=default
signalling=mfcr2
channel => 125-139,141-155
channel => 156-170,172-186

group=3
context=default
signalling=mfcr2
channel => 187-201,203-217
channel => 218-232,234-248

Já realizei diversos testes e nenhum fez efeito, gostaria de saber se alguém poderia me dá um apoio?

Heros Santos Amaral Filho
+55 61 9243-7457<tel:%2B55%2061%209243-7457>
heros.amaral at gmail.com<mailto:heros.amaral at gmail.com>

[http://api.qrserver.com/v1/create-qr-code/?data=BEGIN%3AVCARD%0AVERSION%3A2.1%0AFN%3AHeros%20Santos%20Amaral%20Filho%0AN%3A%3BHeros%20Santos%20Amaral%20Filho%0ATEL%3BCELL%3A%2B556193070835%0AEMAIL%3BHOME%3BINTERNET%3Aheros.amaral%40gmail.com%0AURL%3Abr.linkedin.com%2Fin%2Fherosamaral%2F%0AADR%3A%3B%3B%3BBrasilia%3B%3B%3BBrasil%0AEND%3AVCARD%0A&size=250x250]

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-r2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20151223/9fc384f9/attachment.html>


More information about the asterisk-r2 mailing list