diff --git a/bin/config_debug.pl b/bin/config_debug.pl index 10fef5a7..2af6d65f 100755 --- a/bin/config_debug.pl +++ b/bin/config_debug.pl @@ -100,7 +100,7 @@ if (lc($action) eq "off") else { copy($file, $file.".orig") or die "Copy failed: $ERRNO" unless(-e $file.".orig"); - $yaml = LoadFile($file) or die "File $file could not be read"; + $yaml = LoadFile($file); $yaml->{kamailio}{lb}{cfgt} = 'yes'; $yaml->{kamailio}{lb}{use_dns_cache} = 'off'; $yaml->{kamailio}{proxy}{children} = 1; @@ -113,8 +113,7 @@ else if ( -e $group_yml_file ) { print "load $group_yml_file config file\n"; - my $group_yml = LoadFile($group_yml_file) or - die "File $group_yml_file could not be read"; + my $group_yml = LoadFile($group_yml_file); my $hm = Hash::Merge->new('RIGHT_PRECEDENT'); my $config = {}; $config = $hm->merge( $config, $yaml); @@ -139,7 +138,7 @@ else } untie @array; } - DumpFile($file, $yaml) or die "Could not write YAML to $file"; + DumpFile($file, $yaml); } #EOF diff --git a/scenarios/invite_allowip_soundset/soundsets.yml b/scenarios/invite_allowip_soundset/soundsets.yml index b22ee0e3..966a5ed3 100644 --- a/scenarios/invite_allowip_soundset/soundsets.yml +++ b/scenarios/invite_allowip_soundset/soundsets.yml @@ -4,4 +4,4 @@ soundsets: sounds: unauth_caller_ip: filename: sounds/no_sh.wav - loopplay: false + loopplay: 'false'