NAME

Asterisk::AMI::Common::Dev - Extends AMI::Common to include functions for the current development branch of asterisk

VERSION

0.2.0

SYNOPSIS

use Asterisk::AMI::Common:Dev;

my $astman = Asterisk::AMI::Common::Dev->new(	PeerAddr	=>	'127.0.0.1',
						PeerPort	=>	'5038',
						Username	=>	'admin',
						Secret		=>	'supersecrect'
				);

die "Unable to connect to asterisk" unless ($astman);

$astman->bridge($channel1, $channel2);

DESCRIPTION

This module extends Asterisk::AMI::Common to include additional functions for working with the development branch of Asterisk. It will also be the launching ground for new functions be they are merged into AMI::Common.

Constructor

new([ARGS])

Creates new a Asterisk::AMI::Common::Dev object which takes the arguments as key-value pairs.

This module inherits all options from the AMI module.

Methods

meetme_list ( [ TIMEOUT ] )

	Returns a hash reference containing all meetme conferences and their members, or undef if an error occurred.
	TIMEOUT is optional.

	Hash reference:
	$hashref->{RoomNum}->{MemberChannels}->{'Muted'}
                                               {'Role'}
                                               {'Event'}
                                               {'Talking'}
                                               {'UserNumber'}
                                               {'CallerIDName'}
                                               {'MarkedUser'}
                                               {'CallerIDNum'}
                                               {'Admin'}
meetme_members ( ROOMNUM [, TIMEOUT ] )

	Returns a hash reference containing all members of a meetme conference, or undef if an error occurred.
	TIMEOUT is optional.

	Hash reference:
	$hashref->{MemberChannels}->{'Muted'}
                                    {'Role'}
                                    {'Event'}
                                    {'Talking'}
                                    {'UserNumber'}
                                    {'CallerIDName'}
                                    {'MarkedUser'}
                                    {'CallerIDNum'}
                                    {'Admin'}

voicemail_list ( [ TIMEOUT ] )

Returns a hash reference of all mailboxes on the system, or undef if an error occurred.
TIMEOUT is optional.

Hash reference:
$hashref->{context}->{mailbox}->{'AttachmentFormat'}
				{'TimeZone'}
				{'Pager'}
				{'SayEnvelope'}
				{'ExitContext'}
				{'AttachMessage'}
				{'SayCID'}
				{'ServerEmail'}
				{'CanReview'}
				{'DeleteMessage'}
				{'UniqueID'}
				{'Email'}
				{'MaxMessageLength'}
				{'CallOperator'}
				{'SayDurationMinimum'}
				{'NewMessageCount'}
				{'Language'}
				{'MaxMessageCount'}
				{'Fullname'}
				{'Callback'}
				{'MailCommand'}
				{'VolumeGain'}
				{'Dialout'}

text ( CHANNEL, MESSAGE [, TIMEOUT ] )

Sends MESSAGE as a text on CHANNEL. Returns 1 on success, 0 on failure, or undef on error or timeout.
TIMEOUT is optional.

attended_transfer ( CHANNEL, EXTEN, CONTEXT [, TIMEOUT ] )

Performs an attended transfer on CHANNEL to EXTEN@CONTEXT. Returns 1 on success, 0 on failure, or undef on
error or timeout. TIMEOUT is optional

bridge ( CHANNEL1, CHANNEL2 [, TIMEOUT ] )

Bridges CHANNEL1 and CHANNEL2. Returns 1 on success, 0 on failure, or undef on error or timeout.
TIMEOUT is optional.

See Also

Asterisk::AMI, Asterisk::AMI::Common

AUTHOR

Ryan Bullock (rrb3942@gmail.com)

BUG REPORTING AND FEEBACK

Please report any bugs or errors to our github issue tracker at http://github.com/rrb3942/perl-Asterisk-AMI/issues or the cpan request tracker at https://rt.cpan.org/Public/Bug/Report.html?Queue=perl-Asterisk-AMI

LICENSE

Copyright (C) 2010 by Ryan Bullock (rrb3942@gmail.com)

This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.