[asterisk-bugs] [Zaptel 0010353]: [patch] Add pci bus info to zaptel span

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Aug 28 13:13:18 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10353 
====================================================================== 
Reported By:                cybershield
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   10353
Category:                   NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Zaptel Version:             1.4.4  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-01-2007 04:27 CDT
Last Modified:              08-28-2007 13:13 CDT
====================================================================== 
Summary:                    [patch] Add pci bus info to zaptel span
Description: 
Add into struct zt_span and struct zt_spaninfo the pci bus position of
zaptel card. This feature allow to associate a configuration with a zaptel
card.
If you change the disposition of device or add another card, having the
information where the cards is placed. 

You have one Wildcard TE110P placed into pci bus position 0:c.0
If you add another Wildcard TE110P to pci bus position 0:9.0, the
configuration of first Wildcard is assigned to this second card. With the
info of position of device, you can find the problem and modify
zaptel.conf.

Into patch is added lszt command that show the pci bus info.

====================================================================== 

---------------------------------------------------------------------- 
 cybershield - 08-28-07 13:13  
---------------------------------------------------------------------- 
Ok thanks for your note.
I have look zaptel_hardware but it doesn't show the association between
device and span. With zaptel_hardware i don't found the disposition of
span.

Output with zaptel_hardware:
pci:0000:00:09.0        e159:0001 [wcte11xp]
pci:0000:00:0a.0        e159:0001 [wctdm]

Output with lszt:
1       Name: Wildcard TDM400P REV E/F Board 1
        Pci bus: 0000:000a.0
        Local span: 1
        Total channels: 4
        Number channels conf: 4
        Alarms: 00000000 (No alarms)
        Sync: 0 (Internally clocked)

2       Name: Digium Wildcard TE110P T1/E1 Card 0
        Pci bus: 0000:0009.0
        Local span: 1
        Total channels: 31
        Number channels conf: 15
        Alarms: 00000000 (No alarms)
        Sync: 0 (Internally clocked)


The "Wildcard TDM400P" is a span1 and the "Wildcard TE110P" is a span2.
With only zaptel_hardware this info i don't found. For create the
zaptel.conf i need the disposition of span.

Yes, yet another utility is not good .. this my patch is only stub for
found a good solution for this problem.

Ok i will look the branch zaptel/team/tzafrir/sysfs 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-28-07 13:13  cybershield    Note Added: 0069568                          
======================================================================




More information about the asterisk-bugs mailing list