Archive for June, 2010

Q.921 statistic counters

Q.921 statistic counters are finally useable now:

freeswitch@konata> oz isdn counters 1 q921

=================================================================================
 Q.921 statistic counters for span 1 (cumulative)
=================================================================================
   Name   |     Value     | Flags |                Description                   
---------------------------------------------------------------------------------
ST04      |             1 |       | State: changed to TEI Assigned              
ST05      |             1 |       | State: changed to Awaiting Establishment    
ST06      |             0 |       | State: changed to Awaiting Release          
ST07      |             0 |       | State: changed to Multiple Frame Established
ST08      |             0 |   E   | State: changed to Timer Recovery            
T200      |             4 |       | Timer: T200 Timeouts                        
T201      |             0 |       | Timer: T201 Timeouts                        
T202      |             0 |  G    | Timer: T202 Timeouts                        
T203      |             0 |       | Timer: T203 Timeouts                        
TM01      |             0 |       | Timer: TM01 Timeouts                        
N200      |             1 |   EA  | Limit: Max. retransmit exceeded             
N201      |             0 |  GE   | Limit: Max. frame size exceeded             
N202      |             0 |   E   | Limit: Max. PtMP TE retransmit exceeded     
---=== TX / RX Counters: ===-----------------------------------------------------
TX-S      |             0 |       | TX: S frames sent                           
TX-U      |             5 |       | TX: U frames sent                           
TX-I      |             0 |       | TX: I frames sent                           
TX-DISC   |             0 |       | TX: Disconnect                              
TX-DM     |             0 |       | TX: Disconnected-Mode                       
TX-REJ    |             0 |   E   | TX: Reject                                  
TX-RR     |             0 |       | TX: Receiver-Ready                          
TX-RNR    |             0 |       | TX: Receiver-Not-Ready                      
TX-SABME  |             5 |       | TX: Set Asynchronous Balanced Mode Extended 
TX-UA     |             0 |       | TX: Unnumbered Acknowledgement              
TX-UN     |             0 |       | TX: Unnumbered Information                  
RX-S      |             0 |       | RX: S frames received                       
RX-U      |             0 |       | RX: U frames received                       
RX-I      |             0 |       | RX: I frames received                       
RX-DISC   |             0 |       | RX: Disconnect                              
RX-DM     |             0 |       | RX: Disconnected-Mode                       
RX-REJ    |             0 |   E   | RX: Reject                                  
RX-RNR    |             0 |       | RX: Receiver-Not-Ready                      
RX-RR     |             0 |       | RX: Receiver-Ready                          
RX-SABME  |             0 |       | RX: Set Asynchronous Balanced Mode Extended 
RX-UA     |             0 |       | RX: Unnumbered Acknowledgement              
RX-UN     |             0 |       | RX: Unnumbered Information                  
RX-INV-S  |             0 |   E   | RX: Invalid S frames received               
RX-INV-U  |             0 |   E   | RX: Invalid U frames received               
RX-INV-I  |             0 |   E   | RX: Invalid I frames received               
---------------------------------------------------------------------------------
 Flag description: G = Global counter | E = Error condition | A = Alert
-----------------------------------------------------------------[ 38 counter ]--
+OK

This is from a back-to-back E1 PRI line of my current test setup, Point-To-Multipoint (BRI) lines have a few more counters due to TEI management being active. (Yes, the red marker for actual errors is in the CLI too.)

I’m in the middle of some larger code changes, so it will take a while for this and other improvements to hit any publicly-visible repository.