[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:38:33 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:38 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.
======================================================================
----------------------------------------------------------------------
jeffg - 03-03-08 11:38
----------------------------------------------------------------------
It applies partly to 1.4 -- astNumChannels is incorrectly defined in
1.4-HEAD as ASN_INTEGER (should be ASN_GAUGE). astConfigCallsProcessed was
added in pre-1.6 trunk, so it is not present in 1.4.
Issue History
Date Modified Username Field Change
======================================================================
03-03-08 11:38 jeffg Note Added: 0083280
======================================================================
More information about the asterisk-bugs
mailing list