2 # Copyright (C) 2006-2008 Georgia Public Library Service
4 # Author: David J. Fiander
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 package Sip::Configuration::Institution;
26 my ($class, $obj) = @_;
27 my $type = ref($class) || $class;
29 if (ref($obj) eq "HASH") {
30 return bless $obj, $type; # Just bless the object
33 return bless {}, $type;
41 sub relais_extensions_to_msg24 {
44 exists $self->{'relais_extensions_to_msg24'} &&
45 $self->{'relais_extensions_to_msg24'}->{'enabled'} =~ /true|yes|enabled/i
49 sub phone_ext_to_msg10 {
52 exists $self->{'phone_ext_to_msg10'} &&
53 $self->{'phone_ext_to_msg10'}->{'enabled'} =~ /true|yes|enabled/i