[Home]

Summary:ASTERISK-14595: snmp SubAgent does not return channel count for SIP tech
Reporter:Grigoriy Puzankin (boroda)Labels:
Date Opened:2009-08-04 08:38:54Date Closed:2017-05-23 12:10:15
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_snmp
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When requesting list of channel types and their info ASTERISK-MIB::astChanTypeChannels.x entry returns 0 for SIP channels. However it works for other channel types.

****** ADDITIONAL INFORMATION ******

There's a line of code where the comparison is done.
res/snmp/agent.c:572: if (chan->tech == tech)

If I add "->type" for each of "tech" then snmp SubAgent returns count for SIP channels. I don't know if this could be a solution, may be the problem is in SIP module.
Comments:By: Matt Jordan (mjordan) 2013-01-15 12:03:47.177-0600

Please note that {{res_snmp}} is an extended support module and as such development support for it comes from the open source community. Response times may reflect that.

Patches are also always very welcome. :-)

By: Sean Bright (seanbright) 2017-05-23 12:10:16.024-0500

There is no longer any code in {{agent.c}} that resembles the problematic check that you pointed out. If you are able to reproduce this in Asterisk 13 or newer, please feel free to reopen.