[asterisk-r2] Invalid CAS

Oscar Carriles ocarriles at eolos.la
Mon Jun 13 05:38:24 CDT 2011


Sam,

Give a try to

cas=x-y:1101
This let's the lines to start in a valid CAS blocked state. After that,
Far end channels can init smoothly its channels

Oscar




xin liu escribió:
> Hi everyone,
>     I am a newby on MFC/R2. I installed it successfully, But I always 
> get the Error notices on screen.
> The more detail information as follow:
>  
> Software
> ------------------------------------
> libpri-1.4.11.tar.gz
> dahdi-linux-complete-2.4.0+2.4.0.tar.gz
> openr2-1.3.1.tar.gz
> asterisk-1.8.0.tar.gz
> asterisk-addons-1.6.2.3.tar.gz
> ------------------------------------
>  
> configuration files:
>  
> system.conf
> ------------------------------------------------------------------------------------------------------------
> # Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" HDB3/ BLUE RED
> span=1,1,0,cas,hdb3
> # termtype: te
> cas=1-15:1111
> cas=17-31:1111
> dchan=16
> #echocanceller=mg2,1-15,17-31
> # Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" (MASTER) HDB3/ BLUE RED
> span=2,2,0,cas,hdb3
> # termtype: te
> cas=32-46:1111
> cas=48-62:1111
> dchan=47
> #echocanceller=mg2,32-46,48-62
> ------------------------------------------------------------------------------------------------------------
> chan_dahdi.conf
> ------------------------------------------------------------------------------------------------------------
> [trunkgroups]
> [channels]
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=20
> mfcr2_max_dnis=7
> mfcr2_category=national_subscriber
> mfcr2_logdir=span
> mfcr2_logging=all
> mfcr2_allow_collect_calls=no
> mfcr2_double_answer=yes
> context=from-mfcr2
> group=0
> acountcode=0
> channel => 1-15,17-31
> channel => 32-46,48-62
> ------------------------------------------------------------------------------------------------------------
> [root at bogon src]# dahdi_cfg -vv
> DAHDI Tools Version - 2.4.0
> DAHDI Version: 2.4.0
> Echo Canceller(s):
> Configuration
> ======================
> SPAN 1: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
> SPAN 2: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
> Channel map:
> Channel 01: CAS / User (Default) (Echo Canceler: none) (Slaves: 01)
> Channel 02: CAS / User (Default) (Echo Canceler: none) (Slaves: 02)
> Channel 03: CAS / User (Default) (Echo Canceler: none) (Slaves: 03)
> Channel 04: CAS / User (Default) (Echo Canceler: none) (Slaves: 04)
> Channel 05: CAS / User (Default) (Echo Canceler: none) (Slaves: 05)
> Channel 06: CAS / User (Default) (Echo Canceler: none) (Slaves: 06)
> Channel 07: CAS / User (Default) (Echo Canceler: none) (Slaves: 07)
> Channel 08: CAS / User (Default) (Echo Canceler: none) (Slaves: 08)
> Channel 09: CAS / User (Default) (Echo Canceler: none) (Slaves: 09)
> Channel 10: CAS / User (Default) (Echo Canceler: none) (Slaves: 10)
> Channel 11: CAS / User (Default) (Echo Canceler: none) (Slaves: 11)
> Channel 12: CAS / User (Default) (Echo Canceler: none) (Slaves: 12)
> Channel 13: CAS / User (Default) (Echo Canceler: none) (Slaves: 13)
> Channel 14: CAS / User (Default) (Echo Canceler: none) (Slaves: 14)
> Channel 15: CAS / User (Default) (Echo Canceler: none) (Slaves: 15)
> Channel 16: D-channel (Default) (Echo Canceler: none) (Slaves: 16)
> Channel 17: CAS / User (Default) (Echo Canceler: none) (Slaves: 17)
> Channel 18: CAS / User (Default) (Echo Canceler: none) (Slaves: 18)
> Channel 19: CAS / User (Default) (Echo Canceler: none) (Slaves: 19)
> Channel 20: CAS / User (Default) (Echo Canceler: none) (Slaves: 20)
> Channel 21: CAS / User (Default) (Echo Canceler: none) (Slaves: 21)
> Channel 22: CAS / User (Default) (Echo Canceler: none) (Slaves: 22)
> Channel 23: CAS / User (Default) (Echo Canceler: none) (Slaves: 23)
> Channel 24: CAS / User (Default) (Echo Canceler: none) (Slaves: 24)
> Channel 25: CAS / User (Default) (Echo Canceler: none) (Slaves: 25)
> Channel 26: CAS / User (Default) (Echo Canceler: none) (Slaves: 26)
> Channel 27: CAS / User (Default) (Echo Canceler: none) (Slaves: 27)
> Channel 28: CAS / User (Default) (Echo Canceler: none) (Slaves: 28)
> Channel 29: CAS / User (Default) (Echo Canceler: none) (Slaves: 29)
> Channel 30: CAS / User (Default) (Echo Canceler: none) (Slaves: 30)
> Channel 31: CAS / User (Default) (Echo Canceler: none) (Slaves: 31)
> Channel 32: CAS / User (Default) (Echo Canceler: none) (Slaves: 32)
> Channel 33: CAS / User (Default) (Echo Canceler: none) (Slaves: 33)
> Channel 34: CAS / User (Default) (Echo Canceler: none) (Slaves: 34)
> Channel 35: CAS / User (Default) (Echo Canceler: none) (Slaves: 35)
> Channel 36: CAS / User (Default) (Echo Canceler: none) (Slaves: 36)
> Channel 37: CAS / User (Default) (Echo Canceler: none) (Slaves: 37)
> Channel 38: CAS / User (Default) (Echo Canceler: none) (Slaves: 38)
> Channel 39: CAS / User (Default) (Echo Canceler: none) (Slaves: 39)
> Channel 40: CAS / User (Default) (Echo Canceler: none) (Slaves: 40)
> Channel 41: CAS / User (Default) (Echo Canceler: none) (Slaves: 41)
> Channel 42: CAS / User (Default) (Echo Canceler: none) (Slaves: 42)
> Channel 43: CAS / User (Default) (Echo Canceler: none) (Slaves: 43)
> Channel 44: CAS / User (Default) (Echo Canceler: none) (Slaves: 44)
> Channel 45: CAS / User (Default) (Echo Canceler: none) (Slaves: 45)
> Channel 46: CAS / User (Default) (Echo Canceler: none) (Slaves: 46)
> Channel 47: D-channel (Default) (Echo Canceler: none) (Slaves: 47)
> Channel 48: CAS / User (Default) (Echo Canceler: none) (Slaves: 48)
> Channel 49: CAS / User (Default) (Echo Canceler: none) (Slaves: 49)
> Channel 50: CAS / User (Default) (Echo Canceler: none) (Slaves: 50)
> Channel 51: CAS / User (Default) (Echo Canceler: none) (Slaves: 51)
> Channel 52: CAS / User (Default) (Echo Canceler: none) (Slaves: 52)
> Channel 53: CAS / User (Default) (Echo Canceler: none) (Slaves: 53)
> Channel 54: CAS / User (Default) (Echo Canceler: none) (Slaves: 54)
> Channel 55: CAS / User (Default) (Echo Canceler: none) (Slaves: 55)
> Channel 56: CAS / User (Default) (Echo Canceler: none) (Slaves: 56)
> Channel 57: CAS / User (Default) (Echo Canceler: none) (Slaves: 57)
> Channel 58: CAS / User (Default) (Echo Canceler: none) (Slaves: 58)
> Channel 59: CAS / User (Default) (Echo Canceler: none) (Slaves: 59)
> Channel 60: CAS / User (Default) (Echo Canceler: none) (Slaves: 60)
> Channel 61: CAS / User (Default) (Echo Canceler: none) (Slaves: 61)
> Channel 62: CAS / User (Default) (Echo Canceler: none) (Slaves: 62)
>
> ----------------------------------------------------------------------------------------------------------
>  
> After that, I connected the first E1 port to second E1 port with PRI 
> cross line(1245----4512) to make a loopback test. Unfortunately, the 
> screen putout the error information as following:

> ----------------------------------------------------------------------------------------------
> bogon*CLI> mfcr2 show channels
> Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS   Rx CAS
>    1 CN      20      7        No        No               IDLE     0x04
>    2 CN      20      7        No        No               IDLE     0x04
>    3 CN      20      7        No        No               IDLE     0x04
>    4 CN      20      7        No        No               IDLE     0x04
>    5 CN      20      7        No        No               IDLE     0x04
>    6 CN      20      7        No        No               IDLE     0x04
>    7 CN      20      7        No        No               IDLE     0x04
>    8 CN      20      7        No        No               IDLE     0x04
>    9 CN      20      7        No        No               IDLE     0x04
>   10 CN      20      7        No        No               IDLE     0x04
>   11 CN      20      7        No        No               IDLE     0x04
>   12 CN      20      7        No        No               IDLE     0x04
>   13 CN      20      7        No        No               IDLE     0x04
>   14 CN      20      7        No        No               IDLE     0x04
>   15 CN      20      7        No        No               IDLE     0x04
>   17 CN      20      7        No        No               IDLE     BLOCK
>   18 CN      20      7        No        No               IDLE     0x04
>   19 CN      20      7        No        No               IDLE     BLOCK
>   20 CN      20      7        No        No               IDLE     BLOCK
>   21 CN      20      7        No        No               IDLE     BLOCK
>   22 CN      20      7        No        No               IDLE     BLOCK
>   23 CN      20      7        No        No               IDLE     BLOCK
>   24 CN      20      7        No        No               IDLE     BLOCK
>   25 CN      20      7        No        No               IDLE     BLOCK
>   26 CN      20      7        No        No               IDLE     BLOCK
>   27 CN      20      7        No        No               IDLE     BLOCK
>   28 CN      20      7        No        No               IDLE     BLOCK
>   29 CN      20      7        No        No               IDLE     BLOCK
>   30 CN      20      7        No        No               IDLE     BLOCK
>   31 CN      20      7        No        No               IDLE     BLOCK
>   32 CN      20      7        No        No               IDLE     0x04
>   33 CN      20      7        No        No               IDLE     0x04
>   34 CN      20      7        No        No               IDLE     0x04
>   35 CN      20      7        No        No               IDLE     0x04
>   36 CN      20      7        No        No               IDLE     0x04
>   37 CN      20      7        No        No               IDLE     0x04
>   38 CN      20      7        No        No               IDLE     0x04
>   39 CN      20      7        No        No               IDLE     0x04
>   40 CN      20      7        No        No               IDLE     0x04
>   41 CN      20      7        No        No               IDLE     0x04
>   42 CN      20      7        No        No               IDLE     0x04
>   43 CN      20      7        No        No               IDLE     0x04
>   44 CN      20      7        No        No               IDLE     0x04
>   45 CN      20      7        No        No               IDLE     0x04
>   46 CN      20      7        No        No               IDLE     0x04
>   48 CN      20      7        No        No               IDLE     BLOCK
>   49 CN      20      7        No        No               IDLE     BLOCK
>   50 CN      20      7        No        No               IDLE     BLOCK
>   51 CN      20      7        No        No               IDLE     BLOCK
>   52 CN      20      7        No        No               IDLE     BLOCK
>   53 CN      20      7        No        No               IDLE     BLOCK
>   54 CN      20      7        No        No               IDLE     BLOCK
>   55 CN      20      7        No        No               IDLE     BLOCK
>   56 CN      20      7        No        No               IDLE     BLOCK
>   57 CN      20      7        No        No               IDLE     BLOCK
>   58 CN      20      7        No        No               IDLE     BLOCK
>   59 CN      20      7        No        No               IDLE     BLOCK
>   60 CN      20      7        No        No               IDLE     BLOCK
>   61 CN      20      7        No        No               IDLE     BLOCK
>   62 CN      20      7        No        No               IDLE     BLOCK
> [Jun 13 11:03:53] NOTICE[6004]: chan_skinny.c:7156 config_load: 
> Configuring skinny from skinny.conf
> [Jun 13 11:03:53] WARNING[6004]: res_config_curl.c:625 reload_module: 
> [globals] not found in res_curl.conf
> [Jun 13 11:03:53] NOTICE[6004]: app_queue.c:6292 reload_queue_rules: 
> queuerules.conf has not changed since it was last loaded. Not taking 
> any action.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:122 pbx_load_module: 
> Starting AEL load process.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:135 pbx_load_module: AEL 
> load process: parsed config file name '/etc/asterisk/extensions.ael'.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:138 pbx_load_module: AEL 
> load process: checked config file name '/etc/asterisk/extensions.ael'.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:145 pbx_load_module: AEL 
> load process: compiled config file name '/etc/asterisk/extensions.ael'.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:150 pbx_load_module: AEL 
> load process: merged config file name '/etc/asterisk/extensions.ael'.
> [Jun 13 11:03:53] NOTICE[6004]: pbx_ael.c:153 pbx_load_module: AEL 
> load process: verified config file name '/etc/asterisk/extensions.ael'.
> [Jun 13 11:03:53] NOTICE[6004]: res_config_ldap.c:1628 parse_config: 
> No directory user found, anonymous binding as default.
> [Jun 13 11:03:53] ERROR[6004]: res_config_ldap.c:1654 parse_config: No 
> directory URL or host found.
> [Jun 13 11:03:53] NOTICE[6004]: res_config_ldap.c:1588 reload: Cannot 
> reload LDAP RealTime driver.
> [Jun 13 11:03:57] ERROR[5879]: chan_dahdi.c:3932 dahdi_r2_write_log: 
> Chan 17 - Protocol error. Reason = Invalid CAS, R2 State = Idle, MF 
> state = MF Engine Off, MF Group = No Group, CAS = 0x04
> DNIS = , ANI = , MF = 0x20
> [Jun 13 11:03:57] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:03:57] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
>  [Jun 13 11:05:02] ERROR[5879]: chan_dahdi.c:3932 dahdi_r2_write_log: 
> Chan 17 - Protocol error. Reason = Invalid CAS, R2 State = Idle, MF 
> state = MF Engine Off, MF Group = No Group, CAS = 0x04
> DNIS = , ANI = , MF = 0x20
> [Jun 13 11:05:02] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:05:02] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
> [Jun 13 11:05:06] ERROR[5879]: chan_dahdi.c:3932 dahdi_r2_write_log: 
> Chan 17 - Protocol error. Reason = Invalid CAS, R2 State = Idle, MF 
> state = MF Engine Off, MF Group = No Group, CAS = 0x04
> DNIS = , ANI = , MF = 0x20
> [Jun 13 11:05:06] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:05:06] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
> [Jun 13 11:06:55] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:06:55] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
> [Jun 13 11:07:09] ERROR[5879]: chan_dahdi.c:3932 dahdi_r2_write_log: 
> Chan 17 - Protocol error. Reason = Invalid CAS, R2 State = Idle, MF 
> state = MF Engine Off, MF Group = No Group, CAS = 0x04
> DNIS = , ANI = , MF = 0x20
> [Jun 13 11:07:09] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:07:09] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
> [Jun 13 11:07:12] ERROR[5879]: chan_dahdi.c:3932 dahdi_r2_write_log: 
> Chan 17 - Protocol error. Reason = Invalid CAS, R2 State = Idle, MF 
> state = MF Engine Off, MF Group = No Group, CAS = 0x04
> DNIS = , ANI = , MF = 0x20
> [Jun 13 11:07:12] ERROR[5879]: chan_dahdi.c:3717 
> dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 17: Invalid CAS
> [Jun 13 11:07:12] NOTICE[5879]: chan_dahdi.c:3954 
> dahdi_r2_on_line_blocked: Far end blocked on chan 17
>  
> I donot know where the problem was. Can anyone help me?
> Thank you!
> Best Regards!
> Sam
>    
>
> ------------------------------------------------------------------------
>
> --
> _____________________________________________________________________
> -- 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



More information about the asterisk-r2 mailing list