[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 17:29:42 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
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 17:29 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0132104) mspiceland (administrator) - 2011-02-17 17:29
 https://issues.asterisk.org/view.php?id=18832#c132104 
---------------------------------------------------------------------- 
I did some more testing but this time with a timing cable.  It appears that
this does not fix the ClockSource from /proc in that case.  The patch will
have to be enhanced to also fix the case where a timing cable is used. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-17 17:29 mspiceland     Note Added: 0132104                          
======================================================================




More information about the asterisk-bugs mailing list