| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | =head1 NAME | 
| 4 |  |  |  |  |  |  |  | 
| 5 |  |  |  |  |  |  | Asterisk::AMI::Common::Dev - Extends Asterisk::AMI::Common to include functions for the current development branch of asterisk | 
| 6 |  |  |  |  |  |  |  | 
| 7 |  |  |  |  |  |  | =head1 VERSION | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | 0.2.7_1 | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | use Asterisk::AMI::Common:Dev; | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | my $astman = Asterisk::AMI::Common::Dev->new(	PeerAddr	=>	'127.0.0.1', | 
| 16 |  |  |  |  |  |  | PeerPort	=>	'5038', | 
| 17 |  |  |  |  |  |  | Username	=>	'admin', | 
| 18 |  |  |  |  |  |  | Secret		=>	'supersecrect' | 
| 19 |  |  |  |  |  |  | ); | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | die "Unable to connect to asterisk" unless ($astman); | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | $astman->bridge($channel1, $channel2); | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | This module extends Asterisk::AMI::Common to include additional functions for working with the development branch of Asterisk. | 
| 28 |  |  |  |  |  |  | It will also be the launching ground for new functions be they are merged into AMI::Common. | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | =head2 Constructor | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | =head3 new([ARGS]) | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | Creates new a Asterisk::AMI::Common::Dev object which takes the arguments as key-value pairs. | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | This module inherits all options from the AMI module. | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | =head2 Methods | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | This module currently does not provide any additional methods. | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | =head1 See Also | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | Asterisk::AMI, Asterisk::AMI::Common | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =head1 AUTHOR | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | Ryan Bullock (rrb3942@gmail.com) | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | =head1 BUG REPORTING AND FEEBACK | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | Please report any bugs or errors to our github issue tracker at http://github.com/rrb3942/perl-Asterisk-AMI/issues | 
| 53 |  |  |  |  |  |  | or the cpan request tracker at https://rt.cpan.org/Public/Bug/Report.html?Queue=perl-Asterisk-AMI | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =head1 LICENSE | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | Copyright (C) 2011 by Ryan Bullock (rrb3942@gmail.com) | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | This module is free software.  You can redistribute it and/or | 
| 60 |  |  |  |  |  |  | modify it under the terms of the Artistic License 2.0. | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | This program is distributed in the hope that it will be useful, | 
| 63 |  |  |  |  |  |  | but without any warranty; without even the implied warranty of | 
| 64 |  |  |  |  |  |  | merchantability or fitness for a particular purpose. | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =cut | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | package Asterisk::AMI::Common::Dev; | 
| 69 |  |  |  |  |  |  |  | 
| 70 | 1 |  |  | 1 |  | 1658 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 38 |  | 
| 71 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 37 |  | 
| 72 | 1 |  |  | 1 |  | 5 | use parent qw(Asterisk::AMI::Common); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 7 |  | 
| 73 |  |  |  |  |  |  |  | 
| 74 | 1 |  |  | 1 |  | 66 | use version 0.77; our $VERSION = version->declare("v0.2.7_1"); | 
|  | 1 |  |  |  |  | 45 |  | 
|  | 1 |  |  |  |  | 10 |  | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | sub new { | 
| 77 | 0 |  |  | 0 | 1 |  | my ($class, %options) = @_; | 
| 78 |  |  |  |  |  |  |  | 
| 79 | 0 |  |  |  |  |  | return $class->SUPER::new(%options); | 
| 80 |  |  |  |  |  |  | } | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | 1; |