[HELP] Sangoma A101 E1 configuration

Hi,

I want a Sangoma A101 card in NT mode to simulate a public E1 line, but I can’t get it to work properly.

I’ve been testing it with a E1 controller in a Cisco 2801 configured as a CallManager Express and it won’t work. When the C2801 is connected to the telco’s E1 it does work. When I use the C2801 as a gateway to a CallManager it does work with both the A101 and the telco E1.

Pri-debugging in Asterisk has the following output:

When setting up a call from Asterisk, the following is sent to the C2801:

1 > Protocol Discriminator: Q.931 (8)  len=45
1 > Call Ref: len= 2 (reference 16/0x10) (Originator)
1 > Message type: SETUP (5)
1 > [1 041  031  801  901  a31 ]
1 > Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
1 >                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
1 >                              Ext: 1  User information layer 1: A-Law (35)
1 > [1 181  041  e11  801  831  811 ]
1 > Channel ID (len= 6) [ Ext: 1  IntID: Explicit, PRI Spare: 0, Preferred Dchan: 0
1 >                        ChanSel: Reserved
1 >                       Ext: 1  DS1 Identifier: 0
1 >                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
1 >                       Ext: 1  Channel: 1 ]
1 > [1 281  051  541  651  731  741  311 ]
1 > Display (len= 5) [ Test1 ]
1 > [1 6c1  0d1  001  811  331  311  321  301  351  361  301  381  361  361  311 ]
1 > Calling Number (len=15) [ Ext: 0  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)
1 >                           Presentation: Presentation permitted, user number passed network screening (1) '31205608661' ]
1 > [1 701  041  801  361  341  371 ]
1 > Called Number (len= 6) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0) '647' ]
1 > [1 a11 ]
1 > Sending Complete (len= 1)

When the C2801 is a gateway for the CM, it replies:

1 < Protocol Discriminator: Q.931 (8)  len=10
1 < Call Ref: len= 2 (reference 14/0xE) (Terminator)
1 < Message type: CALL PROCEEDING (2)
1 < [1 181  031  a91  831  8d1 ]
1 < Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0
1 <                        ChanSel: Reserved
1 <                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
1 <                       Ext: 1  Channel: 13 ]

When the C2801 is configured as CME, it replies:

1 < Protocol Discriminator: Q.931 (8)  len=10
1 < Call Ref: len= 2 (reference 16/0x10) (Terminator)
1 < Message type: RELEASE COMPLETE (90)
1 < [1 081  031  801  e41  181 ]
1 < Cause (len= 5) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0   Location: User (0)
1 <                  Ext: 1  Cause: Unknown (100), class = Protocol Error (6) ]
1 <              Cause data 1: 18 (24)

I’m using bristuff-0.3.0-PRE-1l (asterisk-1.2.4 / zaptel-1.2.3 / libpri-1.2.2) and wanpipe-2.3.3-3 for Sangoma card. Running on CentOS, kernel 2.6.9-34.EL. Some of the config files:
wanpipe1.conf:

[devices]
wanpipe1 = WAN_AFT, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE       = AFT
S514CPU         = A
CommPort        = PRI
AUTO_PCISLOT    = YES
PCISLOT         = 0
PCIBUS          = 0
FE_MEDIA        = E1
FE_LCODE        = HDB3
FE_FRAME        = NCRC4
FE_LINE         = 1
TE_CLOCK        = MASTER
TE_REF_CLOCK    = 0
ACTIVE_CH       = ALL
TE_HIGHIMPEDANCE        = NO
FE_TXTRISTATE   = NO
MTU             = 1500
UDPPORT         = 9000
TTL             = 255
IGNORE_FRONT_END = NO
TDMV_SPAN       = 1
TDMV_DCHAN      = 16

[w1g1]
ACTIVE_CH       = 1-14
TDMV_ECHO_OFF   = NO

zaptel.conf:

loadzone = nl
defaultzone=nl

span=1,0,0,ccs,hdb3
bchan=1-14
dchan=16

zapata.conf

[trunkgroups]
trunkgroup => 1,16
spanmap => 1,1

[channels]
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
priindication = outofband
context=pri
group = 1
signalling=pri_net
channel => 1-14