Кому интересно, все получилось - вот код. Cpan rules! #!/usr/bin/perl use Modern::Perl; use Data::Dumper; use Asterisk::AMI; use warnings; my $astman = Asterisk::AMI->new(PeerAddr => 'ваш ip', PeerPort => '5038', Events => 'on', Username => 'admin', Secret => 'пароль' );die "Unable to connect t...