You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio-config-tests/show_flow.pl

24 lines
341 B

#!/usr/bin/env perl
use 5.014;
use strict;
use warnings;
use YAML;
use Cwd 'abs_path';
use Data::Dumper;
if($#ARGV!=0)
{
die "usage: show_flow.pl file.yml\n";
}
my $filename = abs_path($ARGV[0]);
my $ylog = YAML::LoadFile($filename);
foreach my $i (@{$ylog->{'flow'}})
{
foreach my $key (keys %{$i})
{
print "$key\n";
}
}
#EOF