aboutsummaryrefslogtreecommitdiffstats
path: root/res/snmp
AgeCommit message (Collapse)AuthorFilesLines
2009-08-10AST-2009-005tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-17Merge a large set of updates to the Asterisk indications API.russell1-18/+42
This patch includes a number of changes to the indications API. The primary motivation for this work was to improve stability. The object management in this API was significantly flawed, and a number of trivial situations could cause crashes. The changes included are: 1) Remove the module res_indications. This included the critical functionality that actually loaded the indications configuration. I have seen many people have Asterisk problems because they accidentally did not have an indications.conf present and loaded. Now, this code is in the core, and Asterisk will fail to start without indications configuration. There was one part of res_indications, the dialplan applications, which did belong in a module, and have been moved to a new module, app_playtones. 2) Object management has been significantly changed. Tone zones are now managed using astobj2, and it is no longer possible to crash Asterisk by issuing a reload that destroys tone zones while they are in use. 3) The API documentation has been filled out. 4) The API has been updated to follow our naming conventions. 5) Various bits of code throughout the tree have been updated to account for the API update. 6) Configuration parsing has been mostly re-written. 7) "Code cleanup" The code is from svn/asterisk/team/russell/indications/. Review: http://reviewboard.digium.com/r/149/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@176627 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-07Merged revisions 174148 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r174148 | russell | 2009-02-07 10:15:07 -0600 (Sat, 07 Feb 2009) | 2 lines Fix a race condition that could cause a crash. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174149 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-13Merged revisions 168561 via svnmerge from russell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r168561 | russell | 2009-01-13 13:13:05 -0600 (Tue, 13 Jan 2009) | 2 lines Revert unnecessary indications API change from rev 122314 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168562 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-13Use ast_str_strlen() instead of recalculating the string length.seanbright1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164054 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-13nuke another use of the ast_str internals.mvanbaak1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164028 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-10Make res_snmp.so compile on OpenBSD.mvanbaak1-0/+8
OpenBSD uses an old version of gcc which throws an error if you use a macro that's not #defined git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162583 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-02Make res/snmp/agent.c buildmmichelson1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115199 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105572 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105572 | qwell | 2008-03-03 12:06:52 -0600 (Mon, 03 Mar 2008) | 7 lines Fix types for astNumChannels and astConfigCallsProcessed. (closes issue #12114) Reported by: jeffg Patches: 12114.patch uploaded by jeffg (license 192) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26small change to allow this file to compile. No problem if you don't install ↵murf1-1/+1
the libsnmp package. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104301 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-05Convert this file over the new method of getting the Asterisk version.russell1-3/+6
(I don't have this building on this machine, so caio1982 on IRC is going to test it for me. :) ) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96743 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-20modify http://svn.digium.com/view/asterisk?view=rev&rev=93603rizzo1-3/+1
so that paths and filename are writable by asterisk.c without causing segfaults. This involves defining the variables as const char *, and having them point to as static, writable buffer defined in asterisk.c On passing, fix some errors in using these variables in some files in utils/ , and in res/snmp/agent.c which was redefining a variable without using paths.h (not applicable to 1.4) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94168 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-19make netsmp build under AST_DEVMODE. Description, included in the source,rizzo1-0/+29
is below. I should note that the PACKAGE_* macros that asterisk defines in autoconfig.h are not used anywhere in the tree so they should just be removed. /* * There is some collision collision between netsmp and asterisk names, * causing build under AST_DEVMODE to fail. * * The following PACKAGE_* macros are one place. * Also netsnmp has an improper check for HAVE_DMALLOC_H, using * #if HAVE_DMALLOC_H instead of #ifdef HAVE_DMALLOC_H * As a countermeasure we define it to 0, however this will fail * when the proper check is implemented. */ No git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93875 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14Convert ast_verbose to ast_verb.tilghman1-3/+2
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-07Add count of total number of calls processed by asterisk during it's lifetime.qwell1-0/+10
Add number of total calls and current calls to SNMP. Closes issue #10057, patch by jcmoore. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23Fix a typo in the Asterisk MIB and fix astNumChanBridged so it acts as a ↵russell1-3/+5
counter again (closes issue #10118, patch by jeffg) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merge in ast_strftime branch, which changes timestamps to be accurate to the ↵tilghman1-4/+4
microsecond, instead of only to the second git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Simplify some logic and convert spaces to tabsrussell1-143/+97
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69068 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13The variable used for the return value must be declared as static. I brokerussell1-2/+2
this when applying the patch, sorry! (issue #9637, jeffg) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-08Add support for retrieving the number of channels that are currently bridgedrussell1-0/+23
via SNMP. (closes issue #9637, initial patch from jeffg, modified by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25rename the structs struct tone_zone_sound and struct tone_zonerizzo1-2/+2
defined in indications.h to ind_tone_zone_sound and ind_tone_zone, to avoid conflicts with the structs with the same names defined in tonezone.h Hope i haven't missed any instance. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19Update res_snmp to use new API declaration of ↵file1-3/+4
pbx_builtin_serialize_variables (issue #8627 reported by johann8384) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-11make latest header file changes for this file tookpfleming1-14/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33482 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29a bunch of conversion to ast_channel_*lock (issue #7058)russell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30do not export the tzlock and the list head, and introduce a new method,rizzo1-17/+5
ast_walk_indications(), to walk through the list of indications. The new method returns an unlocked record, which is no different from the behaviour of other existing methods in indications.c (i.e. they all need to be fixed, with refcounts or some similar method). Note that ast_walk_indications() uses the pointer argument only as a search key, so its implementation is completely safe. In turn, this change allows the removal of AST_MUTEX_DEFINE_EXPORTED. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16532 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-26Add SNMP support (bug #6439)markster2-0/+885
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11193 f38db490-d61c-443f-a65b-d21fe96a405b