NAME

Asterisk::Store::Queue - Class for Asterisk queue objects

SYNOPSIS

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,
);

...

DESCRIPTION

This module is used to store queue objects such as those returned
from the Asterisk Manager Interface API.

ATTRIBUTES

Base attrubutes, can be extended

queue

Queue name

max

Max number of calls

calls

Number of current calls waiting in queue

abandoned

Number of abandoed calls in queue

holdtime

Current hold time for queue

completed

Number of calls that have been completed in the queue

servicelevel

Current service level

servicelevelperf

Service level performance

weight

Queue weight

members

Queue members -- An array of Asterisk::Store::Queue::Member objects

DEBUG *bool*

Enable debugging by setting bool to true.

PUBLIC METHODS

These are the publicly accesable methods

add_member()

Add a new member object to the queue. Must be a Asterisk::Queue::Member object

usage:
  $queueobj->add_member($memberobj)

PRIVATE METHODS

These methods should not be accessed directly.

SEE ALSO

To be used with: Asterisk::Store::Queue::Member Asterisk::Manager

AUTHOR

Derek Carter, <goozbach@neverblock.com<gt>

COPYRIGHT AND LICENSE

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.