The following issues are fixed by lelutin:
* line ending matching does not match for lines that only use \n as
line ending
* iteration is broken because the index for setting values in the
codecs accounting array is never reset to 0 before new loops.
* iax channels don't use a codec hex value, but rather their names
(sip still uses the hex values as far as I can see)
see https://github.com/munin-monitoring/contrib/issues/699
The fourth graph (asterisk_codecs) replaces both asterisk_sipchannels
and asterisk_codecs, as the latter already included the data from the
first. If we want to get more details we could have sub-multigraphs
for a breakdown of the codecs per channel type, but right now it feels
unneeded.
Instead of having a dumb readreply, already drop some of the unneeded
lines of the command when sending the request, and handle errors in
place.
This simplifies the code a little, even though it requires a few more
"discard loops" in the code (to avoid garbage in Asterisk's logs).
This is a bit trickier, since the voicemail might not be enabled
anywhere. Unfortunately it's not easy to set this up during
autoconfig, as voicemails can be added on the fly.
This plugin is targeting to enter main distribution in 2.1 to remove
the multiple Asterisk plugins present in 2.0.
It features full autoconfiguration support, multigraph capabilities,
and less error-prone code.
For the moment, it only implements a replacement for asterisk_channels.