[asterisk-r2] dahdi_cfg trouble with R2

Joel Franco Guzmán - Oryon TI joel at oryonti.com.br
Sat May 25 16:45:35 CDT 2013


Hi,

I'm setting up a E1 R2 from GVT (Brazil) with a Digium TE220.

The software:
- freepbx 3.2.11.63-8 64 bit (freepbx 2.11, asterisk 11, CentOS 6.3, 
linux 2.6.32)
- DAHDI 2.6.1
- libopenr2 1.3.2

The conf:

[root at pabxip ~]# cat /etc/dahdi/system.conf | egrep '^[^# ]'
span=1,1,0,cas,hdb3
cas=1-15,17-31:1101
echocanceller=mg2,1-15,17-31
loadzone    = br
defaultzone    = br

[root at pabxip ~]# cat /etc/asterisk/chan_dahdi.conf | egrep '^[^; ]'
[channels]
context=from-pstn
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=11
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_logdir=span1
mfcr2_call_files=yes
mfcr2_logging=all
mfcr2_allow_collect_calls=no
group=0
channel => 1-15,17-31
[root at pabxip ~]#

All runs fine at Asterisk startup:

pabxip*CLI> mfcr2 show channels
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
    1 BR      11      4        No        No               IDLE IDLE
    2 BR      11      4        No        No               IDLE IDLE
    3 BR      11      4        No        No               IDLE IDLE
    4 BR      11      4        No        No               IDLE IDLE
    5 BR      11      4        No        No               IDLE IDLE
    6 BR      11      4        No        No               IDLE IDLE
    7 BR      11      4        No        No               IDLE IDLE
    8 BR      11      4        No        No               IDLE IDLE
    9 BR      11      4        No        No               IDLE IDLE
   10 BR      11      4        No        No               IDLE IDLE
   11 BR      11      4        No        No               IDLE IDLE
   12 BR      11      4        No        No               IDLE IDLE
   13 BR      11      4        No        No               IDLE IDLE
   14 BR      11      4        No        No               IDLE IDLE
   15 BR      11      4        No        No               IDLE IDLE
   17 BR      11      4        No        No               IDLE IDLE
   18 BR      11      4        No        No               IDLE IDLE
   19 BR      11      4        No        No               IDLE IDLE
   20 BR      11      4        No        No               IDLE IDLE
   21 BR      11      4        No        No               IDLE IDLE
   22 BR      11      4        No        No               IDLE IDLE
   23 BR      11      4        No        No               IDLE IDLE
   24 BR      11      4        No        No               IDLE IDLE
   25 BR      11      4        No        No               IDLE IDLE
   26 BR      11      4        No        No               IDLE IDLE
   27 BR      11      4        No        No               IDLE IDLE
   28 BR      11      4        No        No               IDLE IDLE
   29 BR      11      4        No        No               IDLE IDLE
   30 BR      11      4        No        No               IDLE IDLE
   31 BR      11      4        No        No               IDLE IDLE


However when I run dahdi_cfg, it appears to conflict with the R2 
protocol and get into a "SEIZE" locked state as below.

pabxip*CLI> mfcr2 show channels
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
    1 BR      11      4        No        No               IDLE IDLE
    2 BR      11      4        No        No               IDLE IDLE
    3 BR      11      4        No        No               IDLE IDLE
    4 BR      11      4        No        No               IDLE IDLE
    5 BR      11      4        No        No               IDLE IDLE
    6 BR      11      4        No        No               IDLE IDLE
    7 BR      11      4        No        No               IDLE IDLE
    8 BR      11      4        No        No               IDLE IDLE
    9 BR      11      4        No        No               IDLE IDLE
   10 BR      11      4        No        No               IDLE IDLE
   11 BR      11      4        No        No               IDLE IDLE
   12 BR      11      4        No        No               IDLE IDLE
   13 BR      11      4        No        No               IDLE IDLE
   14 BR      11      4        No        No               IDLE IDLE
   15 BR      11      4        No        No               IDLE IDLE
   17 BR      11      4        No        No               IDLE IDLE
   18 BR      11      4        No        No               IDLE IDLE
   19 BR      11      4        No        No               IDLE IDLE
   20 BR      11      4        No        No               IDLE IDLE
   21 BR      11      4        No        No               IDLE IDLE
   22 BR      11      4        No        No               IDLE IDLE
   23 BR      11      4        No        No               IDLE IDLE
   24 BR      11      4        No        No               IDLE IDLE
   25 BR      11      4        No        No               IDLE IDLE
   26 BR      11      4        No        No               IDLE IDLE
   27 BR      11      4        No        No               IDLE IDLE
   28 BR      11      4        No        No               IDLE IDLE
   29 BR      11      4        No        No               IDLE IDLE
   30 BR      11      4        No        No               IDLE IDLE
   31 BR      11      4        No        No               IDLE IDLE
New MFC/R2 call detected on chan 11.
New MFC/R2 call detected on chan 22.
New MFC/R2 call detected on chan 23.
New MFC/R2 call detected on chan 24.
New MFC/R2 call detected on chan 25.
New MFC/R2 call detected on chan 12.
New MFC/R2 call detected on chan 6.
New MFC/R2 call detected on chan 26.
New MFC/R2 call detected on chan 13.
New MFC/R2 call detected on chan 7.
New MFC/R2 call detected on chan 27.
New MFC/R2 call detected on chan 14.
New MFC/R2 call detected on chan 8.
New MFC/R2 call detected on chan 15.
New MFC/R2 call detected on chan 9.
New MFC/R2 call detected on chan 28.
New MFC/R2 call detected on chan 17.
New MFC/R2 call detected on chan 10.
New MFC/R2 call detected on chan 18.
New MFC/R2 call detected on chan 29.
New MFC/R2 call detected on chan 19.
New MFC/R2 call detected on chan 20.
New MFC/R2 call detected on chan 21.
New MFC/R2 call detected on chan 1.
New MFC/R2 call detected on chan 30.
New MFC/R2 call detected on chan 2.
New MFC/R2 call detected on chan 3.
New MFC/R2 call detected on chan 4.
New MFC/R2 call detected on chan 5.
New MFC/R2 call detected on chan 31.

pabxip*CLI> mfcr2 show channels
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
    1 BR      11      4        No        No               SEIZE AC SEIZE
    2 BR      11      4        No        No               SEIZE AC SEIZE
    3 BR      11      4        No        No               SEIZE AC SEIZE
    4 BR      11      4        No        No               SEIZE AC SEIZE
    5 BR      11      4        No        No               SEIZE AC SEIZE
    6 BR      11      4        No        No               SEIZE AC SEIZE
    7 BR      11      4        No        No               SEIZE AC SEIZE
    8 BR      11      4        No        No               SEIZE AC SEIZE
    9 BR      11      4        No        No               SEIZE AC SEIZE
   10 BR      11      4        No        No               SEIZE AC SEIZE
   11 BR      11      4        No        No               SEIZE AC SEIZE
   12 BR      11      4        No        No               SEIZE AC SEIZE
   13 BR      11      4        No        No               SEIZE AC SEIZE
   14 BR      11      4        No        No               SEIZE AC SEIZE
   15 BR      11      4        No        No               SEIZE AC SEIZE
   17 BR      11      4        No        No               SEIZE AC SEIZE
   18 BR      11      4        No        No               SEIZE AC SEIZE
   19 BR      11      4        No        No               SEIZE AC SEIZE
   20 BR      11      4        No        No               SEIZE AC SEIZE
   21 BR      11      4        No        No               SEIZE AC SEIZE
   22 BR      11      4        No        No               SEIZE AC SEIZE
   23 BR      11      4        No        No               SEIZE AC SEIZE
   24 BR      11      4        No        No               SEIZE AC SEIZE
   25 BR      11      4        No        No               SEIZE AC SEIZE
   26 BR      11      4        No        No               SEIZE AC SEIZE
   27 BR      11      4        No        No               SEIZE AC SEIZE
   28 BR      11      4        No        No               SEIZE AC SEIZE
   29 BR      11      4        No        No               SEIZE AC SEIZE
   30 BR      11      4        No        No               SEIZE AC SEIZE
   31 BR      11      4        No        No               SEIZE AC SEIZE


Then i don't get to make nor receive calls and the only way to solve it 
is restart asterisk:

amportal restart

Someone can please help me?

Thank you

-- 
Joel Franco Guzmán




More information about the asterisk-r2 mailing list