[asterisk-users] BRI card(B800P) doesn's work with DAHDI(wcb4xxp) in NT mode
Michael
voipuser at yeah.net
Wed May 26 22:12:05 CDT 2010
Dear Supports,
I was attempting to install BRI Card(OpenVox B800P) with wcb4xxp in NT mode .But I can not make it worked!
Could you please give me some hints? Thanks in advance!
Here are my environments:
------------------------------
CentOS-5.3
Kernel-2.6.18-164.el5
asterisk-1.6.1.6
dahdi-linux-complete-2.3.0+2.3.0
libpri-1.4.10.2
OpenVox-B800P(the first port is spliting into two lines, I set the first one into NT mode,and others are TE mode)
patch- manual_te_nt.patch(which download from:http://www.openvox.cn/bbs/viewthread.php?tid=992, and posted by Dmitry)
-----------------------------
I make a fresh OS and yum install all the dependent packages, like bison,bison-devel,gnults-devel,gcc,gcc-c++, and so on.
And download all the same versions of DAHDI-linux-complete-2.3.0+2.3.0, asterisk-1.6.1.6, libpri-1.4.10.2 from asterisk official website:http://downloads.asterisk.org/pub/telephony/.
Completely plugs the card and start to compile and install those packages. Here are my installation steps:
A.Libpri: make-->make install --(no errors)
B.Patch file /usr/src/dahdi-linux-complete-2.3.0+2.3.0/linux/drivers/dahdi/wcb4xxp/base.c with this method:
patch p0 < manual_te_nt.patch
C.DAHDI: make-->make install-->make config --(no errors)
D.Edit and insert this line at the buttom of file /etc/modprobe.d/dahdi.conf(only this step is different from yours)
options wcb4xxp te_nt_override=0xFE
E.Start dahdi and automatically configure the channels with: modprobe dahdi-->modprobe wcb4xxp debug=16-->dahdi_scan-->dahdi_genconf-->dahdi_cfg -vvvvvvvvv (no errors and all the channels are showing there)
----------------------------------------------------------------------------
[root at localhost modprobe.d]# dahdi_cfg -vvvvvvvv
DAHDI Tools Version - 2.3.0
DAHDI Version: 2.3.0
Echo Canceller(s):
Configuration
======================
SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 5: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 6: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 7: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 8: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: none) (Slaves: 08)
Channel 09: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: none) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: none) (Slaves: 11)
Channel 12: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 12)
Channel 13: Clear channel (Default) (Echo Canceler: none) (Slaves: 13)
Channel 14: Clear channel (Default) (Echo Canceler: none) (Slaves: 14)
Channel 15: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 15)
Channel 16: Clear channel (Default) (Echo Canceler: none) (Slaves: 16)
Channel 17: Clear channel (Default) (Echo Canceler: none) (Slaves: 17)
Channel 18: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 18)
Channel 19: Clear channel (Default) (Echo Canceler: none) (Slaves: 19)
Channel 20: Clear channel (Default) (Echo Canceler: none) (Slaves: 20)
Channel 21: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 21)
Channel 22: Clear channel (Default) (Echo Canceler: none) (Slaves: 22)
Channel 23: Clear channel (Default) (Echo Canceler: none) (Slaves: 23)
Channel 24: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 24)
24 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none
Setting echocan for channel 5 to none
Setting echocan for channel 6 to none
Setting echocan for channel 7 to none
Setting echocan for channel 8 to none
Setting echocan for channel 9 to none
Setting echocan for channel 10 to none
Setting echocan for channel 11 to none
Setting echocan for channel 12 to none
Setting echocan for channel 13 to none
Setting echocan for channel 14 to none
Setting echocan for channel 15 to none
Setting echocan for channel 16 to none
Setting echocan for channel 17 to none
Setting echocan for channel 18 to none
Setting echocan for channel 19 to none
Setting echocan for channel 20 to none
Setting echocan for channel 21 to none
Setting echocan for channel 22 to none
Setting echocan for channel 23 to none
Setting echocan for channel 24 to none
------------------------------------------------------------------------
Everything seems very good so far as!
F.Asterisk, ./configure-->make-->make install-->make samples --(no errors)
G.As you said before, NT mode with wcb4xxp only supports nt_ptp,and nt_ptmp is not work right now. So I set dahdi-channels.conf like this:
------------------------------------------------------------------------
; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_net
channel => 1-2
context = default
group = 63
; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
context = default
group = 63
; Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" RED
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 7-8
context = default
group = 63
; Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" RED
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 10-11
context = default
group = 63
-----------------------------------------------------------------------
and other spans 5,6,7,8 are the same as span 2.
H. After this modification, the dmesg information shows like this:
----------------------------------------------------------------------
dahdi: Version: 2.3.0
wcb4xxp 0000:02:0c.0: probe called for b4xx...
PCI: Enabling device 0000:02:0c.0 (0100 -> 0103)
ACPI: PCI Interrupt 0000:02:0c.0[A] -> GSI 20 (level, low) -> IRQ 217
wcb4xxp 0000:02:0c.0: Identified OpenVox B800P (controller rev 1) at 0001dff0, IRQ 217
wcb4xxp 0000:02:0c.0: NOTE: hardware echo cancellation has been disabled
wcb4xxp 0000:02:0c.0: Port 1: NT mode manually set
wcb4xxp 0000:02:0c.0: Port 2: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 3: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 4: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 5: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 6: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 7: TE mode manually set
wcb4xxp 0000:02:0c.0: Port 8: TE mode manually set
--------------------------------------------------------------------
Base on this information,it seems that the patch is working, so far so good!
I. Start asterisk with asterisk -vvvvvvvvvvvvgc.and run command "pri show spans", but shows like this:
*CLI> pri show spans
PRI span 1/0: Provisioned, Down, Active
PRI span 2/0: Provisioned, In Alarm, Down, Active
PRI span 3/0: Provisioned, In Alarm, Down, Active
PRI span 4/0: Provisioned, In Alarm, Down, Active
PRI span 5/0: Provisioned, In Alarm, Down, Active
PRI span 6/0: Provisioned, In Alarm, Down, Active
PRI span 7/0: Provisioned, In Alarm, Down, Active
PRI span 8/0: Provisioned, In Alarm, Down, Active
-------------------------------------------------------------------
*CLI> pri show span 1
Primary D-channel: 3
Status: Provisioned, Down, Active
Switchtype: EuroISDN
Type: Network
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
Logical Channel Mapping: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T309 Timer: -1
T313 Timer: 4000
N200 Counter: 3
Overlap Recv: No
------------------------------------------------------------------------
I have plugged the ISDN phone into the first port,and LED is turn to green and not blinking,but when I offhook, nothing dial tone there,and this channel is always under DOWN status.
J. But sometimes it sharply turn to UP status. Under that situation,I was attempting to make some calls from softphone to it, but I can not hear any voice between them(softphone or ISDN phone)
localhost*CLI> pri show spans
PRI span 1/0: Provisioned, Up, Active
PRI span 2/0: Provisioned, In Alarm, Down, Active
PRI span 3/0: Provisioned, In Alarm, Down, Active
PRI span 4/0: Provisioned, In Alarm, Down, Active
PRI span 5/0: Provisioned, In Alarm, Down, Active
PRI span 6/0: Provisioned, In Alarm, Down, Active
PRI span 7/0: Provisioned, In Alarm, Down, Active
PRI span 8/0: Provisioned, In Alarm, Down, Active
Any helps will be appreciated!
Best Wishes!
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100527/1f0f7412/attachment.htm
More information about the asterisk-users
mailing list