Update Sccp_manager.class.php
Remove unnecessary page code - this version only works with chan-sccp >433
This commit is contained in:
parent
cd0da5b6a3
commit
c1f35ace41
|
@ -383,19 +383,12 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
"buttons" => array(
|
"buttons" => array(
|
||||||
"name" => _("Device Buttons"),
|
"name" => _("Device Buttons"),
|
||||||
"page" => 'views/form.buttons.php'
|
"page" => 'views/form.buttons.php'
|
||||||
));
|
),
|
||||||
if ($this->sccpvalues['sccp_compatible']['data'] < '433') {
|
"advanced" => array(
|
||||||
$this->pagedata["sccpcodec"] = array(
|
|
||||||
"name" => _("Device SCCP Codec"),
|
|
||||||
"page" => 'views/server.codec.php'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if ($this->sccpvalues['sccp_compatible']['data'] >= '433') {
|
|
||||||
$this->pagedata["advanced"] = array(
|
|
||||||
"name" => _("Device SCCP Advanced"),
|
"name" => _("Device SCCP Advanced"),
|
||||||
"page" => 'views/form.devadvanced.php'
|
"page" => 'views/form.devadvanced.php'
|
||||||
);
|
)
|
||||||
}
|
);
|
||||||
break;
|
break;
|
||||||
case "cisco-sip":
|
case "cisco-sip":
|
||||||
$this->pagedata = array(
|
$this->pagedata = array(
|
||||||
|
@ -406,15 +399,8 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
"buttons" => array(
|
"buttons" => array(
|
||||||
"name" => _("Sip device Buttons"),
|
"name" => _("Sip device Buttons"),
|
||||||
"page" => 'views/form.sbuttons.php'
|
"page" => 'views/form.sbuttons.php'
|
||||||
));
|
)
|
||||||
/*
|
);
|
||||||
if ($this->sccpvalues['sccp_compatible']['data'] < '433') {
|
|
||||||
$this->pagedata["sccpcodec"] = array(
|
|
||||||
"name" => _("Device SCCP Codec"),
|
|
||||||
"page" => 'views/server.codec.php'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "r_user":
|
case "r_user":
|
||||||
|
@ -428,7 +414,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
"page" => 'views/form.buttons.php'
|
"page" => 'views/form.buttons.php'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue