[asterisk-bugs] [Asterisk 0012114]: [patch] Wrong type for astConfigCallsProcessed and astNumChannels

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Mar 3 11:27:17 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12114 
====================================================================== 
Reported By:                jeffg
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12114
Category:                   Resources/res_snmp
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 105548 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-01-2008 12:32 CST
Last Modified:              03-03-2008 11:27 CST
====================================================================== 
Summary:                    [patch] Wrong type for astConfigCallsProcessed and
astNumChannels
Description: 
res_snmp answers with the wrong ASN.1 type for these two OIDs.  Example:

[jeffg at barbrady ~]$ snmpget -m ALL -v1 -c public mrscrabtree
astNumChannels.0 astConfigCallsProcessed.0
ASTERISK-MIB::astNumChannels.0 = Wrong Type (should be Gauge32 or
Unsigned32): INTEGER: 3
ASTERISK-MIB::astConfigCallsProcessed.0 = Wrong Type (should be
Counter32): INTEGER: 52

The cause of these messages is that the definitions of these variables in
res/snmp/agent.c:init_asterisk_mib() both specify ASN_INTEGER when they
should be ASN_GAUGE and ASN_COUNTER respectively.
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 03-03-08 11:27  
---------------------------------------------------------------------- 
Does this apply to 1.4 as well? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-03-08 11:27  qwell          Note Added: 0083278                          
======================================================================




More information about the asterisk-bugs mailing list