Révision b8eba4d7
asterisk: rename options for enabling/disabling graphs
With this "enable_" prefix, it will be clearer to users that those
options are boolean flags.
| plugins/asterisk/asterisk | ||
|---|---|---|
| 30 | 30 |
The following configuration parameters are used by this plugin |
| 31 | 31 |
|
| 32 | 32 |
[asterisk] |
| 33 |
env.host - hostname to connect to |
|
| 34 |
env.port - port number to connect to |
|
| 35 |
env.username - username used for authentication |
|
| 36 |
env.secret - secret used for authentication |
|
| 37 |
env.channels - The channel types to look for |
|
| 38 |
env.codecsx - List of codec IDs (hexadecimal values) |
|
| 39 |
env.codecs - List of codecs names, matching codecsx order |
|
| 40 |
env.meetme - Set to 1 to enable graphs for the MeetMe application |
|
| 41 |
env.confbridge - Set to 1 to enable graphs for the ConfBridge application |
|
| 33 |
env.host - hostname to connect to
|
|
| 34 |
env.port - port number to connect to
|
|
| 35 |
env.username - username used for authentication
|
|
| 36 |
env.secret - secret used for authentication
|
|
| 37 |
env.channels - The channel types to look for
|
|
| 38 |
env.codecsx - List of codec IDs (hexadecimal values)
|
|
| 39 |
env.codecs - List of codecs names, matching codecsx order
|
|
| 40 |
env.enable_meetme - Set to 1 to enable graphs for the MeetMe application
|
|
| 41 |
env.enable_confbridge - Set to 1 to enable graphs for the ConfBridge application
|
|
| 42 | 42 |
|
| 43 | 43 |
The "username" and "secret" parameters are mandatory, and have no |
| 44 | 44 |
defaults. |
| ... | ... | |
| 51 | 51 |
env.channels Zap IAX2 SIP |
| 52 | 52 |
env.codecsx 0x2 0x4 0x8 |
| 53 | 53 |
env.codecs gsm ulaw alaw |
| 54 |
env.meetme 0 |
|
| 55 |
env.confbridge 1 |
|
| 54 |
env.enable_meetme 0
|
|
| 55 |
env.enable_confbridge 1
|
|
| 56 | 56 |
|
| 57 | 57 |
=head2 WILDCARD CONFIGURATION |
| 58 | 58 |
|
| ... | ... | |
| 126 | 126 |
my @CODECS = exists $ENV{'codecs'} ? split ' ',$ENV{'codecs'} : qw(gsm ulaw alaw);
|
| 127 | 127 |
my @CODECSX = exists $ENV{'codecsx'} ? split ' ',$ENV{'codecsx'} : qw(0x2 0x4 0x8);
|
| 128 | 128 |
|
| 129 |
my $meetme_enabled = $ENV{'meetme'} || '0';
|
|
| 130 |
my $confbridge_enabled = $ENV{'confbridge'} || '1';
|
|
| 129 |
my $meetme_enabled = $ENV{'enable_meetme'} || '0';
|
|
| 130 |
my $confbridge_enabled = $ENV{'enable_confbridge'} || '1';
|
|
| 131 | 131 |
|
| 132 | 132 |
my $line, my $error; |
| 133 | 133 |
my $socket = new IO::Socket::INET(PeerAddr => $peeraddr, |
Formats disponibles : Unified diff