[asterisk-bugs] [DAHDI-linux 0018832]: [patch] proc does not show ClockSource when using multiple cards that are not connected by a timing cable

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 17 15:35:48 CST 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18832 
====================================================================== 
Reported By:                mspiceland
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   18832
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2011-02-17 15:35 CST
Last Modified:              2011-02-17 15:35 CST
====================================================================== 
Summary:                    [patch] proc does not show ClockSource when using
multiple cards that are not connected by a timing cable
Description: 
In my specific case, I have two quad T1/E1 TE405P cards in a system and
they are not connected with a timing cable.  The /proc output for dahdi
appends a "ClockSource" designator to show which span is the currently
selected timing source.  When using multiple cards without a timing cable,
each of the cards has its own independent clock source.  There is an issue
for this case where only the ClockSource for the first card is shown.  This
change resolves this issue and it is now show for each card in the system.

Before this change:

# cat /proc/dahdi/* | grep -i span
Span 1: TE4/1/1 "T4XXP (PCI) Card 1 Span 1" (MASTER) B8ZS/ESF ClockSource

Span 2: TE4/1/2 "T4XXP (PCI) Card 1 Span 2" B8ZS/ESF 
Span 3: TE4/1/3 "T4XXP (PCI) Card 1 Span 3" B8ZS/ESF 
Span 4: TE4/1/4 "T4XXP (PCI) Card 1 Span 4" B8ZS/ESF 
Span 5: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" B8ZS/ESF 
Span 6: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" B8ZS/ESF 
Span 7: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" B8ZS/ESF 
Span 8: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" B8ZS/ESF

After this change:
# cat /proc/dahdi/* | grep -i span
Span 1: TE4/1/1 "T4XXP (PCI) Card 1 Span 1" (MASTER) B8ZS/ESF ClockSource

Span 2: TE4/1/2 "T4XXP (PCI) Card 1 Span 2" B8ZS/ESF 
Span 3: TE4/1/3 "T4XXP (PCI) Card 1 Span 3" B8ZS/ESF 
Span 4: TE4/1/4 "T4XXP (PCI) Card 1 Span 4" B8ZS/ESF 
Span 5: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" B8ZS/ESF ClockSource 
Span 6: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" B8ZS/ESF 
Span 7: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" B8ZS/ESF 
Span 8: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" B8ZS/ESF 

I tested this change while unplugging and replugging spans to ensure it
works as expected for my case.  I'm sharing this in case someone wants to
test with different hardware (e.g. B410P, HA8, etc) because this is in
dahdi-base.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-17 15:35 mspiceland     Summary                  proc does not show
ClockSource when using multiple cards that are not connected by a timing cable
=> [patch] proc does not show ClockSource when using multiple cards that are not
connected by a timing cable
======================================================================




More information about the asterisk-bugs mailing list