<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hello:<br>thanks for Tzafrir Cohen for dahdi testing. <br>I installed dahdi-2.1-r3c svn code and asterisk1-6 <br>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, <br>i set it as TE mode, but after start wcb4xxp, but <br>it show the port is NT mode. to detect the TE mode, I modefy the code in base.c <br>============================================<br> static void hfc_init_all_st(struct b4xxp *b4)<br> 1386 {<br> 1387 int i, gpio, nt;<br> 1388 struct b4xxp_span *s;<br> 1389<br> 1390 gpio = b4xxp_getreg8(b4, R_GPI_IN3);<br> 1391<br>
1392 for (i=0; i < 4; i++) {<br> 1393 s = &b4->spans[i];<br> 1394 s->parent = b4;<br> 1395 s->port = i;<br> 1396<br> 1397 <span style="font-weight: bold;">nt = ((gpio & (1 << (i + 4))) != 0); /* GPIO=0 = NT mode change ==0 to !=0 */</span><br> 1398 s->te_mode =
!nt;<br> 1399<br> 1400 dev_info(b4->dev, "Port %d: %s mode\n", i + 1, (nt ? "NT" : "TE"));<br> 1401<br> 1402 hfc_reset_st(s);<br> 1403 hfc_start_st(s);<br> 1404 }<br> 1405 }<br>============================================<br>beside that, i stil can not make calls. the driver starts up and loaded into asterisk, run the command: misdn show status:<br>============================<br>*CLI> dahdi show
status<br>Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO<br>B4XXP (PCI) Card 0 Span 1 RED 0 0 0 CCS AMI YEL 399-533 feet (DSX-1)<br>B4XXP (PCI) Card 0 Span 2 RED 0 0 0 CCS AMI YEL 399-533 feet (DSX-1)<br>B4XXP (PCI) Card 0 Span
3 OK 0 0 0 CCS AMI YEL 399-533 feet (DSX-1)<br>B4XXP (PCI) Card 0 Span 4 RED 0 0 0 CCS AMI YEL 399-533 feet (DSX-1)<br>*CLI><br>==================================<br>i add more PCI for wcb4xxp:<br>==========================================<br> static struct pci_device_id b4xx_ids[] __devinitdata =<br> 2625 {<br> 2626 { 0xd161, 0xb410, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long)&wcb4xxp
},<br> 2627 {0x1397, 0x08b4, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp},<br> 2628 {0x1397, 0xe888, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp},<br> 2629<br> 2630 { 0, }<br> 2631 };<br>============================================<br>the dmesg shows:<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01<br>printk: 13709 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01<br>printk: 13708 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01<br>printk: 13708 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back
0x01<br>printk: 13709 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01<br>printk: 13708 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01<br>printk: 13705 messages suppressed.<br>wcb4xxp 0000:02:02.0: ec_write: Wrote 0x64 to register 0x1ab of VPM 0 but got back 0x01<br>============================<br>system.conf:<br>loadzone=us<br>defaultzone=us<br>span=1,1,3,ccs,ami<br>span=2,2,3,ccs,ami<br>span=3,3,3,ccs,ami<br>span=4,4,3,ccs,ami<br><br>bchan=1,2<br>dchan=3<br>bchan=4,5<br>dchan=6<br>bchan=7,8<br>dchan=9<br>bchan=10,11<br>dchan=12<br>==========<br>chan_dahdi.conf:<br><br><br>[channels]<br>;<br>; Default language<br>;<br>;language=en<br>;<br>; Default context<br>;<br>;<br>switchtype = euroisdn<br><br>; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode)<br>signalling = bri_cpe_ptmp<br>; p2p TE mode (for
connecting ISDN lines in point-to-point mode)<br>;signalling = bri_cpe<br>; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode)<br>;signalling = bri_net_ptmp<br>; p2p NT mode (for connecting an ISDN pbx in point-to-point mode)<br>;signalling = bri_net<br><br>pridialplan = local<br>prilocaldialplan = dynamic<br>nationalprefix = 0<br>internationalprefix = 00<br><br>priindication = passthrough<br><br>echocancel = yes<br><br>context=demo<br>group = 1<br>; S/T port 1<br>channel => 1-2<br><br>group = 2<br>; S/T port 2<br>channel => 4-5<br><br>group = 3<br>; S/T port 3<br>channel => 7-8<br><br>group = 4<br>; S/T port 4<br>channel => 10-11<br>anyone knows that? no incoming calls and only three leds are on. i will make further study on that. <br>thanks!<br>james.zhu<br><br><br></td></tr></table><br>
<hr size=1><a href="http://cn.mail.yahoo.com/"> 雅虎邮箱,您的终生邮箱!</a>