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

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Aug 22 00:51:10 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-22-2007 00:51 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.

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

---------------------------------------------------------------------- 
 tzafrir - 08-22-07 00:51  
---------------------------------------------------------------------- 
USB devices, such as the wcusb, don't have a PCI bus ID. They do have a USB
bus ID.

Furthermore, ztdynamic spans might have totally different ID. ztdummy is a
single system-wide "device".

Hence we're talking here about a "connector" and not a "PCI bus ID".
The xpp driver already reports this on its own (in e.g:
/proc/xpp/xbussesand in the new sysfs interface). zaptel_hardware (from
xpp/utils) already does some guesswork (based on a list of PCI IDs , the
output of lspci and sysfs).

So it would indeed make sense to add a "connector" field to the span.

But instead of creating yet another utility to show it, we need a generic
way to show information about spans. The /proc/zaptel interface is not good
enough because you just can't add fields there.

Hence I suggest sysfs. See the branch zaptel/team/tzafrir/sysfs . 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-22-07 00:51  tzafrir        Note Added: 0069226                          
======================================================================




More information about the asterisk-bugs mailing list