[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp

lizhong zhu zhulizhongum at yahoo.com.cn
Wed Nov 12 03:55:29 CST 2008


hello:
thanks for Tzafrir Cohen for dahdi testing. 
I installed dahdi-2.1-r3c svn code and asterisk1-6 
for testing OpenVox B400P and junghans card. i fund that there is bug (i think) to dectect NT or TE mode. actually on the board, 
i set it as TE mode, but after start wcb4xxp, but 
it show the port is NT mode. to detect the TE mode, I modefy the code in base.c 
============================================
 static void hfc_init_all_st(struct b4xxp *b4)
   1386 {
   1387         int i, gpio, nt;
   1388         struct b4xxp_span *s;
   1389
   1390         gpio = b4xxp_getreg8(b4, R_GPI_IN3);
   1391
   1392         for (i=0; i < 4; i++) {
   1393                 s = &b4->spans[i];
   1394                 s->parent = b4;
   1395                 s->port = i;
   1396
   1397                 nt = ((gpio & (1 << (i + 4))) != 0);            /* GPIO=0 = NT mode change ==0 to !=0 */
   1398                 s->te_mode = !nt;
   1399
   1400                 dev_info(b4->dev, "Port %d: %s mode\n", i + 1, (nt ? "NT" : "TE"));
   1401
   1402                 hfc_reset_st(s);
   1403                 hfc_start_st(s);
   1404         }
   1405 }
============================================
beside that, i stil can not make calls. the driver starts up and loaded into asterisk, run the command: misdn show status:
============================
*CLI> dahdi  show status
Description                              Alarms  IRQ    bpviol CRC4   Fra Codi Options  LBO
B4XXP (PCI) Card 0 Span 1                RED     0      0      0      CCS AMI  YEL      399-533 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2                RED     0      0      0      CCS AMI  YEL      399-533 feet (DSX-1)
B4XXP (PCI) Card 0 Span 3                OK      0      0      0      CCS AMI  YEL      399-533 feet (DSX-1)
B4XXP (PCI) Card 0 Span 4                RED     0      0      0      CCS AMI  YEL      399-533 feet (DSX-1)
*CLI>
==================================
i add more PCI for wcb4xxp:
==========================================
 static struct pci_device_id b4xx_ids[] __devinitdata =
   2625 {
   2626         { 0xd161, 0xb410, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long)&wcb4xxp },
   2627         {0x1397, 0x08b4, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp},
   2628          {0x1397, 0xe888, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp},
   2629
   2630         { 0, }
   2631 };
============================================
the dmesg shows:
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13709 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13708 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13708 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13709 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13708 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01
printk: 13705 messages suppressed.
wcb4xxp 0000:02:02.0: ec_write: Wrote 0x64 to register 0x1ab of VPM 0 but got back 0x01
============================
system.conf:
loadzone=us
defaultzone=us
span=1,1,3,ccs,ami
span=2,2,3,ccs,ami
span=3,3,3,ccs,ami
span=4,4,3,ccs,ami

bchan=1,2
dchan=3
bchan=4,5
dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12
==========
chan_dahdi.conf:


[channels]
;
; Default language
;
;language=en
;
; Default context
;
;
switchtype = euroisdn

; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode)
signalling = bri_cpe_ptmp
; p2p TE mode (for connecting ISDN lines in point-to-point mode)
;signalling = bri_cpe
; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode)
;signalling = bri_net_ptmp
; p2p NT mode (for connecting an ISDN pbx in point-to-point mode)
;signalling = bri_net

pridialplan = local
prilocaldialplan = dynamic
nationalprefix = 0
internationalprefix = 00

priindication = passthrough

echocancel = yes

context=demo
group = 1
; S/T port 1
channel => 1-2

group = 2
; S/T port 2
channel => 4-5

group = 3
; S/T port 3
channel => 7-8

group = 4
; S/T port 4
channel => 10-11
anyone knows that? no incoming calls and only three leds are on. i will make further study on that. 
thanks!
james.zhu





      ___________________________________________________________ 
 雅虎邮箱,您的终生邮箱! 
http://cn.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081112/fed2e05b/attachment.htm 


More information about the asterisk-users mailing list