3 # This file reads a SIPServer xml-format configuration file and dumps it
4 # to stdout. Just to see what the structures look like.
6 # The 'new XML::Simple' option must agree exactly with the configuration
7 # in Sip::Configuration.pm
12 use XML::Simple qw(:strict);
15 my $parser = new XML::Simple( KeyAttr => { login => '+id',
17 service => '+port', },
18 GroupTags => { listeners => 'service',
20 institutions => 'institution', },
21 ForceArray=> [ 'service',
24 ValueAttr => { 'error-detect' => 'enabled',
25 'min_servers' => 'value',
26 'max_servers' => 'value'} );
28 my $ref = $parser->XMLin(@ARGV ? shift : 'SIPconfig.xml');