Asterisk::Store::Queue - Class for Asterisk queue objects
use Asterisk::Store::Queue; my $queueobj = Asterisk::Store::Queue->new( queue => 'mainqueue', max => 0, calls => 0, abandoned => 0, holdtime => 0, completed => 0, servicelevel => 0, servicelevelperf => 0, weight => 0, ); ...
This module is used to store queue objects such as those returned from the Asterisk Manager Interface API.
Base attrubutes, can be extended
Queue name
Max number of calls
Number of current calls waiting in queue
Number of abandoed calls in queue
Current hold time for queue
Number of calls that have been completed in the queue
Current service level
Service level performance
Queue weight
Queue members -- An array of Asterisk::Store::Queue::Member objects
Enable debugging by setting bool to true.
These are the publicly accesable methods
Add a new member object to the queue. Must be a Asterisk::Queue::Member object usage: $queueobj->add_member($memberobj)
These methods should not be accessed directly.
To be used with: Asterisk::Store::Queue::Member Asterisk::Manager
Derek Carter, <goozbach@neverblock.com<gt>
Copyright (C) 2007 by Derek Carter
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Asterisk::Store::Queue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Asterisk::Store::Queue
CPAN shell
perl -MCPAN -e shell install Asterisk::Store::Queue
For more information on module installation, please visit the detailed CPAN module installation guide.