diff --git a/plugins/asterisk/asterisk b/plugins/asterisk/asterisk index 8d278b94..5b6d72ce 100755 --- a/plugins/asterisk/asterisk +++ b/plugins/asterisk/asterisk @@ -30,13 +30,15 @@ This plugin will produce multiple graphs showing: The following configuration parameters are used by this plugin [asterisk] - env.host - hostname to connect to - env.port - port number to connect to - env.username - username used for authentication - env.secret - secret used for authentication - env.channels - The channel types to look for - env.codecsx - List of codec IDs (hexadecimal values) - env.codecs - List of codecs names, matching codecsx order + env.host - hostname to connect to + env.port - port number to connect to + env.username - username used for authentication + env.secret - secret used for authentication + env.channels - The channel types to look for + env.codecsx - List of codec IDs (hexadecimal values) + env.codecs - List of codecs names, matching codecsx order + env.meetme - Set to 1 to enable graphs for the MeetMe application + env.confbridge - Set to 1 to enable graphs for the ConfBridge application The "username" and "secret" parameters are mandatory, and have no defaults. @@ -49,6 +51,8 @@ defaults. env.channels Zap IAX2 SIP env.codecsx 0x2 0x4 0x8 env.codecs gsm ulaw alaw + env.meetme 0 + env.confbridge 1 =head2 WILDCARD CONFIGURATION @@ -122,6 +126,9 @@ my @CHANNELS = exists $ENV{'channels'} ? split ' ',$ENV{'channels'} : qw(Zap IAX my @CODECS = exists $ENV{'codecs'} ? split ' ',$ENV{'codecs'} : qw(gsm ulaw alaw); my @CODECSX = exists $ENV{'codecsx'} ? split ' ',$ENV{'codecsx'} : qw(0x2 0x4 0x8); +my $meetme_enabled = $ENV{'meetme'} || '0'; +my $confbridge_enabled = $ENV{'confbridge'} || '1'; + my $line, my $error; my $socket = new IO::Socket::INET(PeerAddr => $peeraddr, PeerPort => $peerport, @@ -182,7 +189,8 @@ graph_category voip total.label Total messages END -print <