Compiled asterisk and dahdi complete along with libpri from scratch on a freshly yummed SME 8 with all the devel libs.
Since a "make install" does not provide any rpms and entries in the rpm database, SAIL fails to install. Only a "--nodeps" forces it to install.
Extension length in the
System -> Globals -> Extension Length menu is not being allowed to be edited even when there are no extensions created.
An
earlier post referred to a template expansion from the SME CLI - is that the preferred method?
The actual error is at line 334 in
/opt/sark/php/sarkglobal/view.php where the logic is inverted. Lines 333-340:
$this->myPanel->aLabelFor('extlen');
if ( $extensions ) {
$this->myPanel->selected = $global['EXTLEN'];
$this->myPanel->popUp('EXTLEN', array('3','4'));
}
else {
echo '<input type="text" name="EXTLEN" size="1" style = "background-color: lightgrey" readonly="readonly" id="EXTLEN" value="' . $global['EXTLEN'] . '" />' . PHP_EOL;
}
should be
$this->myPanel->aLabelFor('extlen');
if ( ! $extensions ) {
$this->myPanel->selected = $global['EXTLEN'];
$this->myPanel->popUp('EXTLEN', array('3','4'));
}
else {
echo '<input type="text" name="EXTLEN" size="1" style = "background-color: lightgrey" readonly="readonly" id="EXTLEN" value="' . $global['EXTLEN'] . '" />' . PHP_EOL;
}
This problem appears to have come when code was converted from
Perl in SAIL v3.1.1-22 (
/opt/sark/www/cgi-bin/sarkglobals.pl) to
PHP in SAIL v4.0.0-43 (
/opt/sark/php/sarkglobal/view.php) with the "
unless" Perl Statement being an
inverted logic of the PHP's "
if" statement. The corresponding lines 914-930 in SAIL v3.1.1-22's /opt/sark/www/cgi-bin/sarkglobals.pl that stands correct are:
print SarkSubs::aLabelFor('extlen');
unless (@Extensions) {
print $q->popup_menu (
-name => 'EXTLEN',
-values => ['3','4'],
-default => $extlen,
-style => "Color: $hashColorDefaults{EXTLEN}",
-size => 1);
}
else {
print $q->textfield (
-name => 'EXTLEN',
-default => $extlen,
-readonly =>'readonly',
-style =>'background-color: lightgrey',
-size => 1);
}
It will hence be pertinent to check all conversions from "unless" to "if" from SAIL v3.1.1 to SAIL 4.0.0.