1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

asterisk: use eq instead of == for comparing a variable to a string

sumpfralle suggested this change on github, since the comparisons are
meant to be string comparisons.
This commit is contained in:
Gabriel Filion 2019-08-10 21:46:30 -04:00
parent b8eba4d75c
commit e14659d02c

View file

@ -258,7 +258,7 @@ my $voicemail_response = asterisk_command($socket, "voicemail show users");
#2 voicemail users configured. #2 voicemail users configured.
my $meetme_response; my $meetme_response;
if ($meetme_enabled == '1') { if ($meetme_enabled eq '1') {
$meetme_response = asterisk_command($socket, "meetme list"); $meetme_response = asterisk_command($socket, "meetme list");
#Conf Num Parties Marked Activity Creation #Conf Num Parties Marked Activity Creation
#5500 0001 N/A 00:00:03 Static #5500 0001 N/A 00:00:03 Static
@ -266,7 +266,7 @@ if ($meetme_enabled == '1') {
} }
my $confbridge_response; my $confbridge_response;
if ($confbridge_enabled == '1') { if ($confbridge_enabled eq '1') {
$confbridge_response = asterisk_command($socket, "confbridge list"); $confbridge_response = asterisk_command($socket, "confbridge list");
#Conference Bridge Name Users Marked Locked Muted #Conference Bridge Name Users Marked Locked Muted
#================================ ====== ====== ====== ===== #================================ ====== ====== ====== =====