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

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Mar 3 12:03:18 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12114 
====================================================================== 
Reported By:                jeffg
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12114
Category:                   Resources/res_snmp
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
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 12:03 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.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 03-03-08 12:03  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 105572

U   branches/1.4/res/snmp/agent.c

------------------------------------------------------------------------
r105572 | qwell | 2008-03-03 12:03:03 -0600 (Mon, 03 Mar 2008) | 7 lines

Fix type for astNumChannels.

(closes issue http://bugs.digium.com/view.php?id=12114)
Reported by: jeffg
Patches:
      12114.patch uploaded by jeffg (license 192)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=105572 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-03-08 12:03  svnbot         Note Added: 0083288                          
03-03-08 12:03  svnbot         Status                   new => assigned     
03-03-08 12:03  svnbot         Assigned To               => qwell           
======================================================================




More information about the asterisk-bugs mailing list