| 1 | package Asterisk::Conf::MeetMe; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | require 5.004; | |||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | =head1 NAME | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | Asterisk::Config::MeetMe - MeetMe configuration stuff | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | =head1 SYNOPSIS | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | stuff goes here | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | =head1 DESCRIPTION | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | description | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | =over 4 | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | =cut | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 1 | ▶ | use Asterisk; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 22 | 1 | ▶ | use Asterisk::Conf; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 23 | 1 | @ISA = ('Asterisk::Conf'); | |||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | 1 | $VERSION = '0.01'; | |||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 1 | $DEBUG = 5; | |||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||
| 30 | 1 | my ($class, %args) = @_; | |||||||||||||||||||
| 31 | 1 | my $self = {}; | |||||||||||||||||||
| 32 | 1 | $self->{'name'} = 'MeetMe'; | |||||||||||||||||||
| 33 | 1 | $self->{'description'} = 'MeetMe Configuration'; | |||||||||||||||||||
| 34 | 1 | $self->{'configfile'} = '/etc/asterisk/meetme.conf'; | |||||||||||||||||||
| 35 | 1 | $self->{'config'} = {}; | |||||||||||||||||||
| 36 | 1 | $self->{'configtemp'} = {}; | |||||||||||||||||||
| 37 | 1 | $self->{'contextorder'} = ( 'rooms' ); | |||||||||||||||||||
| 38 | 1 | $self->{'channelgroup'} = {}; | |||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 1 | $self->{'variables'} = { | |||||||||||||||||||
| 41 | #this stuff can only be in general context | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | #need to put together some list of codecs somewhere | ||||||||||||||||||||
| 44 | 'conf' => { 'default' => undef, 'type' => 'multitext', 'regex' => '^\w*$' }, | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | }; | ||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 1 | ▶ | bless $self, ref $class || $class; | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 50 | 1 | return $self; | |||||||||||||||||||
| 51 | } | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 1 | 1; | |||||||||||||||||||