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


Asterisk-Store-Queue documentation  | view source Contained in the Asterisk-Store-Queue distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

ATTRIBUTES

Top

  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

Top

  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

Top

  These methods should not be accessed directly.

SEE ALSO

Top

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

AUTHOR

Top

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

COPYRIGHT AND LICENSE

Top


Asterisk-Store-Queue documentation  | view source Contained in the Asterisk-Store-Queue distribution.